It seems that you hit the bug as mentioned here.
There’s an issue with Lerna on Windows. Luckily, there’s a work around mentioned at the end of the issue.
This design seems to be composed of both functional API (Old OpenSCAD API) and object API (CSG / CAG objects).
This is one of the reasons that V2 has changed. It just became too UGLY for users. And unmaintainable.
I have a couple of suggestions...
First, you can run through the code and change the signatures of function calls to match V2. This may take some time, as you need to align shapes appropriately.
Second, you can implement helper functions for this design. For example, ‘cube’. Your ‘cube’ function can provide the same functionality as the old OpenSCAD API, and place the cube to align the corner at 0,0,0.
Hope that helps.
We have been posting to this thread.
You can find some really interesting projects by following the Used By links on the right side of the Github project.
@receter Very Cool! I hope there will be several versions of galleries / part libraries, so please search around.
FYI, there’s another REACT based component for V1 JSCAD at https://github.com/aeksco/openjscad-react
I believe @aeksco will be porting to V2 in the near future. Maybe you can collaborate with him.
V2 JSCAD is solidifying nicely now, and all objectives of V2 have been reached, and more. Thanks to everyone for the feedback on the last year or more.
It's now time to think about the release of V2 JSCAD. There are some ramifications of making a major release, and everyone must be prepared.
If a NPM based project is using V1 JSCAD then please make sure to use a specific version number for the packages. The latest versions can be found at NPM @jscad.
Warning: NPM projects using the 'latest' version in configurations will break!!!
Another subject is the two websites; www.openjscad.org and www.jscad.xyz
Support for V1 JSCAD at www.openjscad.org has already been stopped. However, there are still lots of folks using V1 JSCAD so this website will continue to exist.
But for how long?
Also, there's some feature creep happening now, so releasing V2 JSCAD will help everyone to make the jump forward. Then incremental releases can start, which should be very rapid going forward.
@Dinther Excellent! I didn’t know about constraints as well. Interesting...
But the example is horrid to read, and even worse to understand.
Maybe that’s why SVG has adopted a more simple approach to defining paths. Simple is best and even better if it actually makes sense to ordinary people.
Having said that... the underlying implementation could use a constraints based object, and there could be a simple API above that. For example, users don’t use mat4 (matrix) but the transforms create matrices for all operations on geometry.
Please get the latest version of JSCAD V2, as there have been some changes as well as bug fixes.
modeling: adding new class of operations to modeling; modifiers
modeling: enhanced options to extrudeFromSlices
core: changed serializeSolids to apply transforms before serializing, correcting issues with mirroring
web: corrected remote fetching of binary formats ([#764])
web: corrected theme names ([#764])
BIG NOTE: The V2 website is also using this release.
There's on-line documentation as well for those needing additional information about the modeling API.
For those using a local copy of JSCAD V2, be sure to run the following commands.
git pull npm run clean (and answer Y) npm run bootstrap
Both CLI and WEB UI are usable for creating designs. In the WEB UI, it's best to drag-n-drop project folders to the window, and work with the pieces via a favorite editor. If "Enable auto reload" is checked then changes will be detected, and rendered again.
For those wanting to get hold of JSCAD V2, it's still in 'early adoption' mode. But you can get started here.
And a BIG THANKS for everyone that has provided feedback. Keep those comments coming!
@z3dev Thanks for that. I have a few thoughts penned down myself and I see gilboonet posted his ideas too.
Would it be prudent if I start a new topic called "Sketcher" on the forum?
Please. Looking forward to the discussion and ideas.
In errors, what is the blob url? Going to them just yields a 404.
Probably a different topic would be better but... I think you mean these error messages.
TypeError: cag._toCSGWall is not a function Line: 10713,col: 0 (blob:https://openjscad.org/2c5b9973-25f7-4c49-9e61-8b632a209931)