JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Recent
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • Nathan Apter

      Didn't there used to be examples you could click on?
      General Discussions • • Nathan Apter

      2
      0
      Votes
      2
      Posts
      325
      Views

      z3dev

      @Nathan-Apter welcome

      Please try www.openjscad.xyz

      The examples can be found by clicking on the ? In the top right corner.

      Keep those questions coming!

    • R

      Best way to get started with JSCAD
      General Discussions • • RunningUtes

      5
      1
      Votes
      5
      Posts
      626
      Views

      hrgdavor

      If you start with a simple file design.js, save it in a folder and use editor of your choice.

      open https://openjscad.xyz/ and make sure you check the option "Enable Auto-reload"
      drag and drop the file into the window and you will see the model

      change your js file and save, changes will be picked-up automatically.
      openjscad checks for changes every second, but if you want to see changes even faster you can use livereload.

      one way to use livereload is via nodejs
      if you have nodejs just run
      npm -g install livereload
      go to the folder with your design and run:
      livereload

      you must do the livereload step before you drag and drop design into openjscad window.

    • Maria Alzate

      3d to 2d
      General Discussions • • Maria Alzate

      6
      0
      Votes
      6
      Posts
      774
      Views

      z3dev

      @Maria-Alzate Just for your information, as part of the last release, there's a new project() function which can project a 3D shape to a 2D shape.

    • geobruce

      Can't find command for 3D to 2D Projection
      General Discussions • • geobruce

      3
      0
      Votes
      3
      Posts
      1069
      Views

      z3dev

      @geobruce Just for your information, as part of the last release, there's a new project() function which can project a 3D shape to a 2D shape.

    • Alasdair McAndrew

      Two questions about projections
      General Discussions • projection orientation key commands webinterface • • Alasdair McAndrew

      4
      0
      Votes
      4
      Posts
      714
      Views

      z3dev

      @Alasdair-McAndrew Just for your information, as part of the last release, there's a new project() function which can project a 3D shape to a 2D shape.

    • Dunk Fordyce

      Beginner Questions
      General Discussions • • Dunk Fordyce

      23
      0
      Votes
      23
      Posts
      3831
      Views

      z3dev

      @Dunk-Fordyce I really like this concept of a preconfigured project. It would be a great addition to the JSCAD project.

      Probably, there are a few different styles of projects. So, maybe a little repository of starting projects could be created.

      Interested?

    • gilboonet

      designs for blade cutter (svg)
      General Discussions • • gilboonet

      7
      0
      Votes
      7
      Posts
      441
      Views

      gilboonet

      @hrgdavor Yes that's this one. (the Maker comes with a fine-point blade and a rotary blade)

    • K

      Does //!OpenSCAD no longer work?
      General Discussions • • ksanger

      2
      0
      Votes
      2
      Posts
      320
      Views

      z3dev

      @ksanger welcome

      Correct. The 'OpenSCAD' conversion to JSCAD has been decommissioned. The code is very old and needs some extensive maintenance / enhancements.

      Your students should be able to use the new website easily; www.openjscad.xyz

      The 'syntax' to create a new design is slightly different but there's plenty of documentation.

      User Guide API reference
    • Pippo LoVe

      Texture rendering
      General Discussions • • Pippo LoVe

      3
      0
      Votes
      3
      Posts
      462
      Views

      z3dev

      @Pippo-LoVe as mentioned, JSCAD focuses on designs for 3D printing, and therefore colors are essential. Colors are assigned to a geometry / shape after completing all operations.

      Colors can also be assigned to individual polygons on 3D geometries.

      Having said the above, textures may be possible. But there have not been many requests for this support.

    • hrgdavor

      three.js integration part2 (threejscad)
      General Discussions • • hrgdavor

      1
      1
      Votes
      1
      Posts
      724
      Views

      No one has replied

    • WolfgangFahl

      Proposal to move to github discussions
      General Discussions • • WolfgangFahl

      3
      0
      Votes
      3
      Posts
      558
      Views

      jfo8000

      I love the idea of putting all the docs in markdown in the git repo itself.

      The original site could also be hosted in gh-pages branch. There are a bunch of tools to convert markdown to html, so they could be optionally embedded in the app.

      As a stopgap, for anyone needing V1 - there's a copy over at https://creator.buildbee.com

      JFo

    • irevdev

      Show and tell - I'm after examples of JSCAD projects
      General Discussions • • irevdev

      2
      0
      Votes
      2
      Posts
      368
      Views

      jfo8000

      Nice collection! Might have a look at JSCAD hardware and MakerJS.

      Some parts of JSCAD hardware have been included in Buildbee MakeCode (which is V1 JSCad based).

      JFo

    • D

      Newbie question: Write 2D drawing to SVG file?
      General Discussions • • dburt

      2
      0
      Votes
      2
      Posts
      329
      Views

      z3dev

      @dburt welcome

      Yes. You can make that example work. You might want to take a look at this project, which uses the JSCAD CLI (command line interface) for compiling the design and exporting SVG. Specifically, the 'localfont' project.

      https://github.com/jscad-community/jscad-text

      If you are going to work with other JavaScript libraries, especially those using async functions or promises then take a look at the 'googlefont' project.

    • gilboonet

      Volume unflattening with jscad
      General Discussions • • gilboonet

      7
      0
      Votes
      7
      Posts
      539
      Views

      gilboonet

      @z3dev 'class' element for sure is interesting as it will ease styling. About 'id', yes it must be used carefully to ensure that each object has its unique id, generally I use names forged from data (line between triangle 23 and 111 has id 'L_23_111', etc.). 'name' is deprecated so it's maybe wise to avoid it, on very old js code I remember i used 'tag', as svg doesn't use it, as svg can use custom attributes, it can be anything. And it would be really great to have exported svg from jscad with such fine details, because it will allow rework those outputs with great ease. I tried to use localStorage from a jscad script and it doesn't work, so my only other possibility would be to output to console.

    • veysel özer

      Expand Geom2 Self Intersecting
      General Discussions • • veysel özer

      2
      0
      Votes
      2
      Posts
      301
      Views

      z3dev

      @veysel-özer thanks for the nice examples.

      yeah. this is the behavior of V2. it's probably a BUG when contracting 2D geometries, as 2D geometry must have non-crossing outlines by definition.

      a fix can be done in the next version. when that will happen is a big question as everything is on hold waiting for the websites to be restored.

      if you have time then please create a new issue at GitHub.

    • R

      Newbie Here. (yet another) 3d to 2d question
      General Discussions • • retroglyph

      5
      0
      Votes
      5
      Posts
      506
      Views

      gilboonet

      @z3dev Apparently the temporary v2 website doesn't handle links like those of examples, it may be easier to wait for the original website to be online.

    • T

      As jscad.xyz is down, where to get more doc?
      General Discussions • • tubaro1

      9
      0
      Votes
      9
      Posts
      1579
      Views

      danmarshall

      @z3dev thank you, that is really helpful!

    • rich-27

      Auto-reload and external editor workflows
      General Discussions • • rich-27

      12
      0
      Votes
      12
      Posts
      1861
      Views

      hrgdavor

      @rich-27 thanks for the feedback 🙂 ... it is nice see more people join the community. Have fun and create more cool stuff 🙂

    • wildjerry

      Why am I getting "Uncaught TypeError: CSG.Path2d is not a constructor"?
      General Discussions • • wildjerry

      5
      0
      Votes
      5
      Posts
      691
      Views

      gilboonet

      V1 color syntax is color("Red", extrudes[0])

    • Cid Zhang

      A collection of jscad projects on Github
      General Discussions • • Cid Zhang

      6
      1
      Votes
      6
      Posts
      1158
      Views

      hrgdavor

      e5879128-809f-40e8-b4c3-4c43237b4aef-image.png
      https://jscad.xyz/#https://gist.githubusercontent.com/hrgdavor/c63e34f862aab00cf9253daf2e071812/raw/acbefbcbbb47d7c0e4daf41c5c9be3d43062c56c/tesseract.jscad