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.
Posts made by z3dev
-
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
-
RE: AI in JSCAD for Generative AI
@Jason-Sprouse Love the idea! There are lots of reasons to use AI, and most are for research or learning purposes.
You might want to start with some examples. Such as "show me how to use JSCAD circles?" Or even more complex examples.
-
RE: Is the cli package also included in the web version?
@Jason-Sprouse what you installed was the WHOLE project, which requires NODEJS, NPM, etc. you will find the code for the CLI and the WEBUI. Once setup, you can change the code, run tests, add new functionality, etc. The packages are linked together.
The CLI can be installed directly from NPM. See the README for the CLI.
https://github.com/jscad/OpenJSCAD.org/tree/master/packages/cli
-
How about a new design?
We (developers) have been pounded by new requests, improvements, and bugs. So, there must be something happening out there.
Does anyone have a new design to share?
-
Release : 2023 JUN 27
Release : 2023 JUN 27
There's a new release of JSCAD, including changes from several pull requests.
Bug Fixes
- modeling: add missing extrudeHelical typing definition
- x3d-serializer: added specular highlights and conversion of shape names
Features
- cli: added options to output designs as individual parts, and create zip archive of parts
- modeling: allow zero size in primitives
Performance
- modeling: performance improvements for retessellate as part of booleans
BIG THANKS to @achirita for the performance improvement to the booleans
BIG THANKS to @tsdexter for the cool improvements to the CLI (command line interface)
THANKS to @andreasplesch for the nice improvements to the X3D serializer.
THANKS to @Loosetooth for the TS corrections
And of course, thanks to @platypii for the nice changes to the primitivesSuccessfully published:
- @jscad/cli@2.3.0
- @jscad/core@2.6.7
- @jscad/3mf-serializer@2.1.9
- @jscad/amf-deserializer@2.3.5
- @jscad/amf-serializer@2.1.15
- @jscad/dxf-deserializer@2.3.22
- @jscad/dxf-serializer@2.1.15
- @jscad/io-utils@2.0.25
- @jscad/io@2.4.6
- @jscad/json-deserializer@2.0.26
- @jscad/json-serializer@2.0.25
- @jscad/obj-deserializer@2.0.25
- @jscad/obj-serializer@2.1.15
- @jscad/stl-deserializer@2.1.22
- @jscad/stl-serializer@2.1.15
- @jscad/svg-deserializer@2.5.6
- @jscad/svg-serializer@2.3.13
- @jscad/x3d-deserializer@2.2.5
- @jscad/x3d-serializer@2.4.5
- @jscad/modeling@2.12.0
- @jscad/regl-renderer@2.6.7
- @jscad/vtree@2.0.26
- @jscad/web@2.6.5
lerna success published 23 packages
-
RE: vectorChar vs. vectorText
@rozek hope that you are still using JSCAD.
there are some changes to vectorChar and vectorText, which will become part of V3 JSCAD. if you have time then please take a look.
-
RE: Interoperability with URDF / Gazebo and modelling of Robots
@RelatingData Cool stuff! I'm sure there are a few robot fans in the user group.
And hopefully, JSCAD can help to put together some cool tools. Please let us know of anything needs to change, or if some extra functionality would be helpful
-
Release : 2023 APR 30
Release : 2023 APR 30
There's a new release of JSCAD, including changes from several pull requests.
Bug Fixes
- cli: corrected CLI help messages
- svg-deserializer: fix conversions of quadratic bezier paths
- x3d-serializer: corrected color and transparency conversions
- x3d-serializer: corrected colors, orientation of scene to Y up, and added new option for smoothing
- modeling: added length and arcLengthToT functions to bezier curves
- modeling: export retessellate from modifiers
- modeling: fix line2.closestPoint
BIG THANKS to @andreasplesch for the nice improvements to the X3D serializer.
BIG THANKS to @achirita for the nice improvements to bezier curves.
And of course, thanks to @platypii for the fixes to CLI, modeling and SVG deserializer.Successfully published:
- @jscad/cli@2.2.26
- @jscad/core@2.6.6
- @jscad/3mf-serializer@2.1.8
- @jscad/amf-deserializer@2.3.4
- @jscad/amf-serializer@2.1.14
- @jscad/dxf-deserializer@2.3.21
- @jscad/dxf-serializer@2.1.14
- @jscad/io-utils@2.0.24
- @jscad/io@2.4.5
- @jscad/json-deserializer@2.0.25
- @jscad/json-serializer@2.0.24
- @jscad/obj-deserializer@2.0.24
- @jscad/obj-serializer@2.1.14
- @jscad/stl-deserializer@2.1.21
- @jscad/stl-serializer@2.1.14
- @jscad/svg-deserializer@2.5.5
- @jscad/svg-serializer@2.3.12
- @jscad/x3d-deserializer@2.2.4
- @jscad/x3d-serializer@2.4.4
- @jscad/modeling@2.11.1
- @jscad/regl-renderer@2.6.6
- @jscad/vtree@2.0.25
- @jscad/web@2.6.4
lerna success published 23 packages
-
RE: updating jscad for website integration
@Richard-Rouse Welcome to the user group.
Looks like you have integrated parts of the V1 website into your custom website. It must have been a fun project.
V1 is still available, but this version is not being maintained any more. If you really need it then check out the V1 branch.
V2 is the currently available, and maintained version. This is totally different and you will have to start again. Sorry.
There's a super small viewer available in the regl-renderer directory. Please see the README for additional information.
Let us know if you have questions. There are several people who have created custom websites.
-
RE: Default JSCAD script (index.js) for self-hosted website
@tjw25425 here's one of the most advanced websites. And very cool too.
-
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.