JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. General Discussions
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • irevdev

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

      2
      0
      Votes
      2
      Posts
      88
      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?
      • dburt

      2
      0
      Votes
      2
      Posts
      73
      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
      • gilboonet

      7
      0
      Votes
      7
      Posts
      63
      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
      • veysel özer

      2
      0
      Votes
      2
      Posts
      56
      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
      • retroglyph

      5
      0
      Votes
      5
      Posts
      80
      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?
      • tubaro1

      9
      0
      Votes
      9
      Posts
      165
      Views

      danmarshall

      @z3dev thank you, that is really helpful!

    • rich-27

      Auto-reload and external editor workflows
      • rich-27

      12
      0
      Votes
      12
      Posts
      211
      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"?
      • wildjerry

      5
      0
      Votes
      5
      Posts
      103
      Views

      gilboonet

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

    • Cid Zhang

      A collection of jscad projects on Github
      • Cid Zhang

      6
      1
      Votes
      6
      Posts
      281
      Views

      hrgdavor

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

    • Alasdair McAndrew

      Cylinder between points?
      cylinder v2 primitives • • Alasdair McAndrew

      6
      1
      Votes
      6
      Posts
      201
      Views

      hrgdavor

      I have sth with this function 🙂

      https://jscad.xyz/#https://gist.githubusercontent.com/hrgdavor/c63e34f862aab00cf9253daf2e071812/raw/acbefbcbbb47d7c0e4daf41c5c9be3d43062c56c/tesseract.jscad

      124e5f29-a4fb-40da-b9da-b2b044565b11-image.png

    • gilboonet

      A simple pattern generator (for cardboard Butaï)
      • gilboonet

      3
      0
      Votes
      3
      Posts
      53
      Views

      hrgdavor

      awesome 🙂

    • crysislinux

      Could you share some book names to learn modeling with math?
      • crysislinux

      3
      0
      Votes
      3
      Posts
      75
      Views

      z3dev

      @crysislinux another very good area for some nice documentation.

      Currently, the 2D curves are based on Bezier curves. And the IO libraries convert various curve definitions into bezier curve definitions.

      SVG paths can define bezier curves as well.

      You'll find lots of online tutorials on how to create bezier curves. And hopefully, you will be able to apply some of those examples within JSCAD.

      P.S. 3D bezier curves are called NURBS.

    • Cid Zhang

      I made a site for sharing my Jscad designs. Please tell me how you think about it
      • Cid Zhang

      4
      0
      Votes
      4
      Posts
      401
      Views

      Cid Zhang

      @WolfgangFahl Thanks for your comment!
      Since I'm not a professional web developer , my current goal is much smaller than yours, which is limited to exhibiting my designs on a static site.
      The version of the core jscad file remains the same and the file is reused over and over again.

      It would take a lot of effort when it comes to hosting a website which can receive and exhibit designs from multiple creators.

    • Charlie Funk

      converting .scad to .stl
      • Charlie Funk

      3
      0
      Votes
      3
      Posts
      56
      Views

      z3dev

      @Charlie-Funk Welcome!

      The best option is to use OpenSCAD application.

      JSCAD V1 (www.openjscad.org) supports a subset of the OpenSCAD functionality, and you can just drag and drog the file onto the lower white space (It says "Drag and drop file here...")

      I hope that you have copy of the original .scad file. It's just a text file, so you can open and check the contents with various applications.

    • gilboonet

      Holes when using star primitive with extrusion and boolean operation
      • gilboonet

      4
      0
      Votes
      4
      Posts
      67
      Views

      gilboonet

      @z3dev I already tried to use a branch locally but didn't managed to make it work, so I stick to web version at https://jscad.xyz/

    • Drew Pear

      Online versus offline functionality
      • Drew Pear

      6
      0
      Votes
      6
      Posts
      281
      Views

      z3dev

      @drewpear strange indeed.

      sorry, but i don't have any suggestions at this time. i will post again if i think of something.

      by the way, i just submitted a pull request to enable the editor again for the V2 website. this should be available in the next 'alpha' release.

      i also opened a new issue for changing the shortcuts for the 'reload' of designs. this will be important for mobile devices which has soft keyboards.

    • I

      Is jscad a viable solution for extruding formatted text within the contraints of a design?
      • inleftfield

      2
      0
      Votes
      2
      Posts
      51
      Views

      z3dev

      @inleftfield welcome to the user group.

      there have been several posts where outline fonts have been used in designs. hopefully, you will be able to find those easily.

      there's a small community project called 'jscad-text' which should provide enough information to get started.

      also, some recent changes to V2 JSCAD allow designs to load and access fonts.

    • gilboonet

      some feedback
      • gilboonet

      3
      0
      Votes
      3
      Posts
      62
      Views

      gilboonet

      @z3dev I just tested again in order to write the issue, but apparently there is no more problem with text parameter, it was maybe a problem of cache (I'm using web version).

    • gilboonet

      little feedback on how jscad v2 helps a "maker"
      • gilboonet

      5
      1
      Votes
      5
      Posts
      106
      Views

      gilboonet

      @z3dev yes, examples I mentionned come from "vue-components" project

    • hrgdavor

      Call for examples: large projects that become slow to reload
      • hrgdavor

      1
      0
      Votes
      1
      Posts
      68
      Views

      No one has replied

    Powered by NodeBB | Contributors