@tjw25425 here's one of the most advanced websites. And very cool too.
-
RE: Default JSCAD script (index.js) for self-hosted website
-
RE: Getting values from a geometry
@gilboonet geom2.toSides() should be called to obtain the sides. however, the sides are not ordered like a path. if you need ordering then a better option is calling toOutlines() which will provide each outline as a set of ordered points.
-
RE: Default JSCAD script (index.js) for self-hosted website
@tjw25425 Welcome
There are numerous websites using JSCAD, using the modeling library to create models, and then rendering. At this point, I haven't seen a website that interacts with the model via touch/mouse. Most websites use a custom built script to control the rendering and modeling.
-
RE: How to use vec2/3 classes
@gilboonet the example looks fine. You can create, rotate, transform all the math objects..
Now comes the fun part... curves, distances, etc. There are little tidbits of logic throughout the library. You can find some of the basic calculations in the primitives, I.e. arc, circle, sphere, etc.
And of course, let us know if you have questions.
-
RE: Designing with text
For those looking for support for fonts, there's a little library that can be used in projects.
-
RE: A project for rendering JSCAD in JupyterLab
@TerryGeng WOW! Thanks for the really nice introduce to Jupyterlab, and the new JSCAD plugin.
Hopefully some of the members will try this out. I know there are some members using VSCode, and Jupyterlab may be a nice alternative.
Just a question... can existing designs be imported into Jupyterlab easily?
-
Release : 2023 JAN 09
Release : 2023 JAN 09
There's a new release of JSCAD, including changes from several pull requests.
Bug Fixes
- regl-renderer: corrected rendering of overlapping transparent solid objects
- web: add render hotkey message in editor
Thanks to @Loosetooth and @hrgdavor for the fixes.
As well as @ntrrgc for the document improvements.Successfully published:
- @jscad/regl-renderer@2.6.5
- @jscad/web@2.6.3
lerna success published 2 packages
-
Release : 2022 NOV 26
Release : 2022 NOV 26
There's a new release of JSCAD, including changes from several pull requests.
Features
- modeling: added extrudeHelical
Bug Fixes
- modeling: added TS definitions for missing measurement functions
Thanks to @Loosetooth for the new extrudeHelical() functionality.
Thanks to @atkinchris for the TS definition fixes.
Thanks to @Jamesgt for some documentation improvements.
AND THANKS TO EVERYONE FOR THE GREAT FEEDBACK AND SUPPORT. IT'S BEEN A SUPER 2022!!!
Successfully published:
- @jscad/cli@2.2.25
- @jscad/core@2.6.5
- @jscad/3mf-serializer@2.1.7
- @jscad/amf-deserializer@2.3.3
- @jscad/amf-serializer@2.1.13
- @jscad/dxf-deserializer@2.3.20
- @jscad/dxf-serializer@2.1.13
- @jscad/io-utils@2.0.23
- @jscad/io@2.4.4
- @jscad/json-deserializer@2.0.24
- @jscad/json-serializer@2.0.23
- @jscad/obj-deserializer@2.0.23
- @jscad/obj-serializer@2.1.13
- @jscad/stl-deserializer@2.1.20
- @jscad/stl-serializer@2.1.13
- @jscad/svg-deserializer@2.5.4
- @jscad/svg-serializer@2.3.11
- @jscad/x3d-deserializer@2.2.3
- @jscad/x3d-serializer@2.4.3
- @jscad/modeling@2.11.0
- @jscad/regl-renderer@2.6.4
- @jscad/vtree@2.0.24
- @jscad/web@2.6.2
lerna success published 23 packages
-
Release : 2022 SEP 23
Release : 2022 SEP 23
There's a new release of JSCAD, including changes from several pull requests.
Bug Fixes
- svg-deserializer: corrected logic to allow path start == end point
Thanks to @hrgdavor for the nice fixes.
Successfully published:
- @jscad/cli@2.2.24
- @jscad/core@2.6.4
- @jscad/io@2.4.3
- @jscad/svg-deserializer@2.5.3
- @jscad/web@2.6.1
lerna success published 5 packages
Please note that support for Node.js 12 will be removed soon. Node.js 14, 16 and 18 are the maintained versions.
-
RE: Transform a 2D rectangle to a L shape
@Antoine-Guillaume thanks for joining!
You won't be able to precisely mimic the bending of steel plates. Maybe
You can use offset to create a round bend. First, create a path for the L, then offset the path to create rounded corners. And finally, extrude linearly to create the plate.
Please experiment. I think that you can find an answer.
There are other ways as well, so let us know if you need more help.
By the way, we have many members so please us you favorite language.