This is a way too cool project to create JSCAD designs in VSCODE. But there's also a nice like webserver for those that want to use another external editor.
-
RE: Create JSCAD Designs
-
Create JSCAD Designs
An NPX starter template designed to kickstart your JsCad projects using TypeScript and Hot Reload preview. This tool simplifies the process of setting up a JsCad project, allowing you to focus on creating fully parametric CAD drawings with ease.
-
RE: jscad examples on github
@Peter-Birch Welcome!
The User Guide explains how to start, and explains most of the functions as well. You might want to look this over.
-
RE: How do I code directly in VSCode and preview the result on my web page?
@ucimo Welcome!
There are several users using JSCAD with TypeScript. Hopefully, someone will provide a few tips.
There's also an extension for VSCode to review designs. I haven't seen any updates but @crysislinux has been actively in this user group before.
-
Release : 2024 FEB 18
Release : 2024 FEB 18
There's a new release of JSCAD V2, including changes from several pull requests.
Bug Fixes
- svg-serializer: fix conversion of alpha colors to SVG RGBA opacity
- x3d-deserializer: corrected to accept commas as MF value delimiters
- modeling: added fromNoisyPoints() to plane
- modeling: added orientation option to polygon
- modeling: corrected geom2 mirroring transform
- regl-renderer: define the entity type and corrected TS definitions
THANKS to @btakita for the fix to the SVG serialier
THANKS to @andreasplesch for the fixes to the X3D deserialier
THANKS to @platypil for the geom2 fixes
THANKS to @bruceborrett for the new TS definitionsSuccessfully published:
- @jscad/cli@2.3.1
- @jscad/core@2.6.8
- @jscad/3mf-serializer@2.1.10
- @jscad/amf-deserializer@2.3.6
- @jscad/amf-serializer@2.1.16
- @jscad/dxf-deserializer@2.3.23
- @jscad/dxf-serializer@2.1.16
- @jscad/io-utils@2.0.26
- @jscad/io@2.4.7
- @jscad/json-deserializer@2.0.27
- @jscad/json-serializer@2.0.26
- @jscad/obj-deserializer@2.0.26
- @jscad/obj-serializer@2.1.16
- @jscad/stl-deserializer@2.1.23
- @jscad/stl-serializer@2.1.16
- @jscad/svg-deserializer@2.5.7
- @jscad/svg-serializer@2.3.14
- @jscad/x3d-deserializer@2.2.6
- @jscad/x3d-serializer@2.4.6
- @jscad/modeling@2.12.1
- @jscad/regl-renderer@2.6.8
- @jscad/vtree@2.0.27
- @jscad/web@2.6.6
lerna success published 23 packages
-
RE: Load DXF
@LucaNitti Welcome!
There are a couple of ways to use DXF files. You can convert the DXF to another format, like SVG. Or you can import the DXF, and use the shapes to create different designs.
You can convert using the JSCAD CLI command.
If you want to use the shapes from the DXF file in designs then a project is required.
https://openjscad.xyz/dokuwiki/doku.php?id=en:design_guide_projects
-
RE: can not import c:/jscad/whatever.stl on windows
@DBJDBJ Welcome!
From the message, it seems that you are using a 'project' which contains the STL file. Is that correct?
-
RE: fetch() in a design
Correct. There are several reasons but in general any kind of fetching has security issues. Be careful what you wish for.
If you believe that designs are secure then a fetch/evaluate could be performed. But there should be an option to 'believe'.
For those wondering what should be allowed. Create a project (with multiple source files or external formats), and drag-n-drop to the website. In this case, you control the content 100%.
https://openjscad.xyz/dokuwiki/doku.php?id=en:design_guide_anatomy
-
RE: Is the cli package also included in the web version?
@Jason-Sprouse hmm...
The website doesn't have a backend service/process. Everything is handled by the browser, including loading designs.
The only trick is for designs provided an a URL parameter. In this case, the URL is posted to a little script that reads the contents, stores the file locally, and returns the URL to the local file.
Of course, some other backend service could be added.
-
RE: Interoperability with URDF / Gazebo and modelling of Robots
@Jason-Sprouse Not a problem. As you mentioned, the engine has to be taught first. How can we make that happen?
FYI, if the results are saved and made available on the web, then the design can be posted to the JSCAD website. I do this for my designs at Thingiverse.
https://www.openjscad.xyz/?uri=https://www.thingiverse.com/download:9621826