V2 Update 2021 Jan 02
Please get the latest version of JSCAD V2, as there have been some changes as well as bug fixes.
web: initial implementation of the built-in editor
modeling: corrected calculation of plane for complex slices
modeling: re-implemented poly2.isPointInside to correct issues in expand/offset
web: fix instant update
web: corrected shortcuts for reloading scripts
core: corrected logic of applyParameterDefinitions to retain parameter values when no definition is found
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!
Have a great and safe 2021!!!
@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?
@Dinther At a smaller scale than a sketch library, I wrote a little function to make patterns with V1, but only for polygons (mostly regular but also not ones). It is very simple, you drop a polygon, then attach another one to one of its sides and continue as long as needed. Maybe it could help you.
It can be tested here : https://openjscad.org/#https://raw.githubusercontent.com/gilboonet/designs/master/make_pattern.jscad
z3dev last edited by z3dev
@Dinther Thanks for the nice compliments.
The path definition module would be a huge enhancement to JSCAD (And discussed often as a future project.) Please let us know when you need some reviews or hands-on testing. And if it fits nicely into the JSCAD API...
Here's some thoughts on the subject...
Thank you so much for pushing this project along. I have spend a lot of time with OpenSCAD and was blown away how much sense it makes to describe parametric models in code.
I choose it over Fusion360 because I feel much more in control. I am working on a sketch library which will bring quick path definition to jsCAD similar to how path works in SVG but a little fancier.
WolfgangFahl last edited by
I have never seen or used v2 yet. It it avaiable online somewhere? It would be great if https://www.openjscad.org/ would have a v2 link and especially a simple switch to see the same code in v1/v2.
@z3dev Here is what I have with my 4K screen :
It might be useful to be able to reduce editor width, here it could easily be three times narrower, but at the same time it would be nice to be able to have a bigger font size (using navigator zoom would do that but also for parameters and render). Code folding would be a great addition, and the pinnacle that I'm looking for for a long time would be multi-column, but there's very little chance for that. There's no need for search/replace as navigator already provide them.
gilboonet last edited by gilboonet
I made a very simple 7 segments display script that uses union and if it still has holes when exported to wings 3d, it is the first time that those holes are easy to repair using only wings3d option for that (body mode, select the model, face mode, right click, select hole option, right click)
Thanks a lot, that's very nice to have this built-in editor. I was already accustomed to use my external editor, but to explain to non IT specialist users how to use jscad, it is nice to have it as simple as possible.