JSCAD User Group

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

      Click to item for Callback/Event functionality
      • DavidLyon66

      12
      0
      Votes
      12
      Posts
      6216
      Views

      DavidLyon66

      @z3dev said in Click to item for Callback/Event functionality:

      the focus of JSCAD is still 3D printing

      Yes, that aligns with what I am doing.

      2b434c15-360f-4ba4-a8e1-de0c65509bd5-image.png

      The reason that I was querying this capability is that in the above picture of a drill-tray example, made from a photo-scan, I want to put in different options for the hinge and lid made by clicking on the parts in the jscad ui.

      It's no big deal if it's not easy to achieve (as explained by @hrgdavor) in jscad at this point in time. I can resolve this some other way. I just thought it might be easy*

      Interestingly, I was able to find that there is a component that does what I need for gltf but I haven't been able to locate an Open-Source equivalent just yet. https://iconscout.com/gltf-3d-editor provides a simple click+transform+rotate component for their platform that does what I was looking for.

    • z3dev

      Create JSCAD Designs
      • z3dev

      2
      1
      Votes
      2
      Posts
      692
      Views

      z3dev

      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.

    • Hermann-SW

      Can "openjscad.xyz/?uri=..." support "data" protocol in addition to "http(s)"?
      • Hermann-SW

      5
      0
      Votes
      5
      Posts
      634
      Views

      Hermann-SW

      @hrgdavor Thanks, done:
      https://github.com/jscad/OpenJSCAD.org/issues/1318

    • A

      fetch() in a design
      • Andreas Plesch

      15
      0
      Votes
      15
      Posts
      1781
      Views

      hrgdavor

      @Andreas-Plesch jscad.app is just a new prototype, not yet part of official jscad, I did not implement /remote ... it is meant for fetching remote scripts you can report issues on jscadui git or ask on discord.

    • gilboonet

      Starting reusing JSCAD for unfolding projects
      • gilboonet

      2
      1
      Votes
      2
      Posts
      421
      Views

      hrgdavor

      @gilboonet cool, combining it into single app would be awesome one day

    • z3dev

      How about a new design?
      • z3dev

      2
      0
      Votes
      2
      Posts
      461
      Views

      hrgdavor

      @z3dev I periodically mention discord channel to ppl, so we could from time to time also mention this forum to users on those git tickets.

    • gilboonet

      Use case issues
      • gilboonet

      2
      0
      Votes
      2
      Posts
      418
      Views

      gilboonet

      Thanks to the browser cache I was able to run the script again and it already had all values loaded and I only needed to change the slider that was badly positioned.

    • gilboonet

      export colored model to .obj
      • gilboonet

      6
      0
      Votes
      6
      Posts
      749
      Views

      hrgdavor

      @gilboonet vool 🙂 . Nice to see it working

    • gilboonet

      Getting values from a geometry
      • gilboonet

      3
      0
      Votes
      3
      Posts
      454
      Views

      gilboonet

      @z3dev I finally resolved it by not using transforms and directly compute the center of the rectangles, that way the geometry sides were ok without any need to transform. I hope to be able to reuse that code for same kind of simple designs.
      Capture d’écran du 2023-03-05 10-58-47.png

    • gilboonet

      How to use vec2/3 classes
      • gilboonet

      3
      0
      Votes
      3
      Posts
      414
      Views

      z3dev

      @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.

    • gilboonet

      Designing with text
      • gilboonet

      12
      0
      Votes
      12
      Posts
      1343
      Views

      gilboonet

      @hrgdavor That would be great. For the moment I'm certainly going to try to do the same thing using svg into vanilla js.

    • Antoine Guillaume

      Transform a 2D rectangle to a L shape
      • Antoine Guillaume

      8
      0
      Votes
      8
      Posts
      1013
      Views

      Antoine Guillaume

      @z3dev Bonjour,
      j'ai bien réussi à créer cette forme avec les "paths / expand / offset".
      mais cela me pose beaucoup de problÚmes pour la suite, à savoir, le positionnement des perçages. En effet c'est compliqué car l'angle de pliage peut varier en fonction des utilisateurs.

      J'ai trouvé une fonction OPENSCAD qui effectue exactement ce que je souhaite. Est-il possible de mettre cela en place sur JSCAD
      https://www.youtube.com/watch?v=3xTjyYKtv4A
      Je n'arrive pas bien à comprendre la logique de son code qui est "en vrac" dans la description de la vidéo.

      Je vous remercie pour le temps que vous consacrerez Ă  ma demande.

    • Hermann-SW

      JSCAD preview faster than "same" model OpenSCAD preview
      • Hermann-SW

      2
      1
      Votes
      2
      Posts
      647
      Views

      z3dev

      @Hermann-SW Thanks for all the super insights to your designs. It has been great to see you continue and improve the designs, and finally have a great base for more designs.

      I haven't seen anyone compare JSCAD to OpenSCAD viewers. We continue to improve the viewer (and modeling library) so it's really nice to have some complements. 😃

      We have had some recent performance improvements, based on @platypii and @briansturgill changes. And we have more planned ahead.

    • Hermann-SW

      How to generate JSCAD model in browser JS and display like demo.html?
      • Hermann-SW

      7
      0
      Votes
      7
      Posts
      1572
      Views

      Hermann-SW

      @hrgdavor I tried that with openjscad.xyz and it did not work. But it does work with locally hosted demo.html !
      Thanks, until now I had browser console open right, editor in middle and only half of 3D view left. After drag and drop, I can close the editor and see new graphs whenever I run node.tetra.js to produce a different x.jscad. So much easier to work now ...

    • Hermann-SW

      JSCAD for planar graph embeddings onto (unit) sphere
      • Hermann-SW

      10
      0
      Votes
      10
      Posts
      1388
      Views

      Hermann-SW

      I implemented optional JSCAD output for planar graph playground "node.tetra.js", details here:
      https://forums.raspberrypi.com/viewtopic.php?p=2030546#p2030546

      Until now I played with C20 hand edited for JSCAD, this is newly created C60 fullerene with 60 vertices and 90 edges:
      https://www.openjscad.xyz/?uri=https://stamm-wilbrandt.de/en/forum/JSCAD.C60_vtype.js

      More vertices and edges than for C20, but design regeneration still done in less than 10 seconds on Intel it Linux Chrome!
      https://forums.raspberrypi.com/download/file.php?id=56198

    • Hermann-SW

      Problem with "subtract()"ing "hull()", is this a bug?
      • Hermann-SW

      4
      0
      Votes
      4
      Posts
      679
      Views

      Hermann-SW

      Forgot to post the "answer" link for viewing in browser:
      https://openjscad.xyz/?uri=https://stamm-wilbrandt.de/en/forum/A.JSCAD.vertex_edge2.sp_tria.js

    • z3dev

      polygonjs
      • z3dev

      1
      2
      Votes
      1
      Posts
      467
      Views

      No one has replied

    • ajw1970

      Using JSCAD to build meshes for BabylonJS
      • ajw1970

      10
      0
      Votes
      10
      Posts
      1308
      Views

      z3dev

      @ajw1970 super!

      I'm interested in the final application. Why did you want to use Babylon for rendering? And do you further plans to create some online designs?

    • Antoine Guillaume

      Rectangle with multiple style corner
      • Antoine Guillaume

      3
      0
      Votes
      3
      Posts
      558
      Views

      Antoine Guillaume

      @z3dev ok, thank you very much for your feedback

    • gilboonet

      Build a specialized graphical editor
      • gilboonet

      3
      0
      Votes
      3
      Posts
      600
      Views

      gilboonet

      @hrgdavor Thank you, I will try from this demo.html file. I already used that file at early stage of V2 to take snapshots of a scene to create an animation, but I'm not sure I understood it all.

    Powered by NodeBB | Contributors