Olivier Chafik
Olivier Chafik
So, I've pushed a color-enabled WASM build of https://github.com/openscad/openscad/pull/5180 to this [web playground demo](https://ochafik.com/openscad3/#%7B%22params%22%3A%7B%22sourcePath%22%3A%22%2Fplayground.scad%22%2C%22source%22%3A%22%2F*%5Cn%20%20Hello%20there!%5Cn%5Cn%20%20If%20you're%20new%20to%20OpenSCAD%2C%20please%20learn%20the%20basics%20here%3A%5Cn%20%20https%3A%2F%2Fopenscad.org%2Fdocumentation.html%5Cn%5Cn%20%20There%20are%20lots%20of%20amazing%20libraries%20in%20the%20OpenSCAD%20ecosystem%5Cn%20%20(see%20this%20list%3A%20https%3A%2F%2Fopenscad.org%2Flibraries.html).%5Cn%5Cn%20%20Some%20of%20these%20libraries%20are%20bundled%20with%20this%20playground%5Cn%20%20(search%20for%20%5C%22demo%5C%22%20or%20%5C%22example%5C%22%20in%20the%20file%20explorer%20above)%5Cn%20%20and%20can%20be%20included%20directly%20from%20your%20models.%5Cn%5Cn%20%20Any%20bugs%20(this%20is%20an%20Alpha!)%20or%20ideas%20of%20features%3F%5Cn%20%20https%3A%2F%2Fgithub.com%2Fopenscad%2Fopenscad-playground%2Fissues%2Fnew%5Cn*%2F%5Cn%5Cn%2F%2F%20Click%20on%20Render%20or%20hit%20F6%20to%20do%20a%20fine-grained%20rendering.%5Cn%24fn%3D%24preview%20%3F%2020%20%3A%20100%3B%5Cn%5Cncolor(%5C%22red%5C%22)%5Cntranslate(%5B-24%2C0%2C0%5D)%20%7B%5Cn%20%20union()%20%7B%5Cn%20%20%20%20cube(15%2C%20center%3Dtrue)%3B%5Cn%20%20%20%20sphere(10)%3B%5Cn%20%20%7D%5Cn%7D%5Cn%5Cncolor(%5C%22green%5C%22)%5Cnintersection()%20%7B%5Cn%20%20cube(15%2C%20center%3Dtrue)%3B%5Cn%20%20sphere(10)%3B%5Cn%7D%5Cn%5Cncolor(%5C%22blue%5C%22)%5Cntranslate(%5B24%2C0%2C0%5D)%20%7B%5Cn%20%20difference()%20%7B%5Cn%20%20%20%20cube(15%2C%20center%3Dtrue)%3B%5Cn%20%20%20%20sphere(10)%3B%5Cn%20%20%7D%5Cn%7D%5Cn%5Cncolor(%5C%22black%5C%22)%5Cntranslate(%5B0%2C%20-30%2C%20-12%5D)%5Cn%20%20linear_extrude(1)%5Cn%20%20%20%20text(%5C%22OpenSCAD%20Playground%5C%22%2C%20halign%3D%5C%22center%5C%22%2C%20valign%3D%5C%22center%5C%22)%3B%5Cn%5Cn%22%2C%22features%22%3A%5B%22manifold%22%2C%22fast-csg%22%2C%22lazy-union%22%2C%22assimp%22%5D%2C%22renderFormat%22%3A%22glb%22%7D%2C%22view%22%3A%7B%22layout%22%3A%7B%22mode%22%3A%22multi%22%2C%22editor%22%3Atrue%2C%22viewer%22%3Atrue%2C%22customizer%22%3Afalse%7D%2C%22color%22%3A%22%23f9d72c%22%2C%22showAxes%22%3Atrue%2C%22showShadows%22%3Atrue%7D%7D) I uses the fast face coloring / Manifold OriginalID mechanism for previews, and my experimental hacky...
Did a tiny bit of digging re/ outputting surface colors and letting slicers turn them into multimaterial prints. PrusaSlicer (& BambuStudio) store the [multimaterial face painting](https://help.prusa3d.com/article/multi-material-painting_262620) data in each triangle...
FYI the upcoming version of the web demo now has full color support (and [full Customizer UI](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Customizer) as icing on the cake): https://ochafik.com/openscad3 I've implemented a crude color -> extruder...
Ah, `dartanalyzer` doesn't see this either! I just ran `dartdevc -o out test.dart`.
Notwithstanding the upcoming nullability-awareness of the type system, we could easily detect non-nullable locals and drop lots of notNull checks (see [this branch](https://github.com/dart-lang/dev_compiler/compare/master...notnull-with-assignments-analysis)). Going further, we could eliminate the cost...
Clearly defining field values that aren't used is a code smell (especially if creating that value has side-effects), but I guess it's not completely unlikely to happen in the presence...
Split SIMPLE out to #312 (note: that does the ES5 lowering), and filed first-of-many tree-shaking issue for signatures (#313).
Some background: - [Groovy asserts](http://docs.groovy-lang.org/latest/html/documentation/core-testing-guide.html) - [expecty](https://github.com/pniederw/expecty) - [scalatest.DiagrammedAssertions](http://doc.scalatest.org/2.2.1/index.html#org.scalatest.DiagrammedAssertions)
DDC can now compile to node modules with the `--modules=node` option (including its sdk packages), but we don't package our runtime as a node module yet by default (should be...