JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Popular
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month
    • Hermann-SW

      openscad.xyz support for "data:" URI scheme would be cool
      Development Discussions • • Hermann-SW

      4
      0
      Votes
      4
      Posts
      663
      Views

      z3dev

      @Hermann-SW Good questions...

      The website has a little Perl script that does the download of the requested file, and checks the content. This does two things; only know file types are allowed, and this goes around CORS.

      https://github.com/jscad/OpenJSCAD.org/blob/master/packages/web/remote.pl

      I guess that supporting data URL would be possible, but there would have to be some similar checks for data type, etc.

    • Hermann-SW

      Are there JSCAD user callbacks?
      Development Discussions • • Hermann-SW

      4
      0
      Votes
      4
      Posts
      762
      Views

      Jason Sprouse

      @Hermann-SW said in Are there JSCAD user callbacks?:

      tionality?

      Wouldn't that also be displayed in the browser stack trace?

    • hrgdavor

      Reusable OrbitControls and camera gizmo
      Development Discussions • • hrgdavor

      4
      0
      Votes
      4
      Posts
      642
      Views

      hrgdavor

      default colors and transforms for babylon
      febb97cd-3c8c-425f-a7b4-703746fd89f4-image.png

    • TerryGeng

      A project for rendering JSCAD in JupyterLab
      General Discussions • • TerryGeng

      4
      1
      Votes
      4
      Posts
      530
      Views

      hrgdavor

      It is nice to see more users and a new enviroment. @z3dev we should think about adding a section on jscad website with links to projects like this so other users that are interested in this way of interacting with jscad can find it.

      @TerryGeng there are few of jscad fans also on discord, you may share your plugin there too. https://discord.gg/AaqGskur93

    • Peter Birch

      jscad examples on github
      General Discussions • • Peter Birch

      4
      0
      Votes
      4
      Posts
      559
      Views

      Peter Birch

      @z3dev
      Thanks!

    • Zachary Keim

      API documentation links broken
      Comments & Feedback • • Zachary Keim

      4
      0
      Votes
      4
      Posts
      430
      Views

      hrgdavor

      @Zachary-Keim good to hear. Guess it was a temporary issue 🙂

    • hrgdavor

      Jscad.app prototype desktop app
      Development Discussions • • hrgdavor

      4
      0
      Votes
      4
      Posts
      871
      Views

      z3dev

      An application also has shortfalls. There's the problem of documentation as well as upgrades. Applications usually include a huge and often critic user manual. And applications will only receive the latest patches if the user notices and applies the fix. This is why the website is so appealing... it's easy.

    • WolfgangFahl

      remote.pl for dockerized openjscad
      Development Discussions • • WolfgangFahl

      3
      0
      Votes
      3
      Posts
      2342
      Views

      WolfgangFahl

      Thank you kaosat-dev for looking into this. I added the issue:

      https://github.com/jscad/OpenJSCAD.org/issues/438

      to more clearly show what the problem is. Locally I can work with the drag&drop solution or with the workspace-mounting approach of the dockerized OpenJSCAD at https://github.com/BITPlan/docker-openjscad

    • gilboonet

      Multicolor (by faces) model
      Comments & Feedback • • gilboonet

      3
      0
      Votes
      3
      Posts
      1805
      Views

      gilboonet

      My code (obj2jscad) only reads a very simple OBJ file (only triangular without normals or textures) and take use of its facets materials groups. Materials are described into another file that I don't use but it could be done to read colors as materials simplest expression can be colors. True OBJ format is much more complex than that.

    • gilboonet

      Regular polygons example
      Comments & Feedback • • gilboonet

      3
      0
      Votes
      3
      Posts
      1834
      Views

      gilboonet

      This new star primitive looks promising. Thank you for the code sample, I will try to use .fromAngleRadians().

    • gilboonet

      Polyhedron : order of a face vertices
      Development Discussions • • gilboonet

      3
      0
      Votes
      3
      Posts
      1624
      Views

      No one has replied

    • WillAdams

      Having trouble with variables in the Block design option
      Comments & Feedback • • WillAdams

      3
      0
      Votes
      3
      Posts
      1859
      Views

      z3dev

      It seems to me that the ‘Code’ tab in the upper right exposes the code in BlocksCAD. I was able to select and copy the code.

    • gilboonet

      Design with random values
      Comments & Feedback • • gilboonet

      3
      0
      Votes
      3
      Posts
      1708
      Views

      gilboonet

      Thank you. I will try something similar, it just needs to add a parameter to choose a design number, if the table of random values doesn't have values for this number they are randomly feeded, else they are used for the rendering. Such "mechanism" could be handy for designs using both random values and more than one viewing mode.

    • I

      simple hull fonction
      Development Discussions • • imkael

      3
      0
      Votes
      3
      Posts
      1442
      Views

      I

      @z3dev thanks for your answer, i will check that. Any idea of the release date of the V2?
      Thanks again.
      Best regards

    • geobruce

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

      3
      0
      Votes
      3
      Posts
      1056
      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.

    • drewpear

      Openscad to JSCAD Refinement
      Development Discussions • • drewpear

      3
      0
      Votes
      3
      Posts
      1082
      Views

      drewpear

      @gilboonet
      thank you for that.
      after a few mis-steps and with the guidance of editor prompts, i came up with this which seems to work for the sphere with a sound hole.
      i'm tickled pink because i had wanted to provide form fields for the parameters also, but due to my newbieness, thought it would be additional html/javascripting.

      function
      main(params) {

      var sr = params.sphereradius; var sh = params.soundhole; var wt = params.wallthickness; var fn = params.fragmentnumber; return [ difference(sphere({r:sr+wt, center:true, fn:fn}), sphere({r:sr, center:true, fn:fn}), cylinder ({r:sh, h:-(sr+wt)})) ];

      }

      function getParameterDefinitions() {
      return [
      { name: 'sphereradius', type: 'number', initial: 47, caption: 'Sphere Radius' },
      { name: 'soundhole', type: 'number', initial: 15, caption: 'Sound Hole Radius' },
      { name: 'wallthickness', type: 'number', initial: 2, caption: 'Wall Thickness' },
      { name: 'fragmentnumber', type: 'number', initial: 100, caption: 'Fragment Number' },
      ];
      }

    • gilboonet

      Flattening 3d triangle
      Development Discussions • • gilboonet

      3
      0
      Votes
      3
      Posts
      336
      Views

      gilboonet

      Thank you. I only work with triangulated models for coding simplicity, even if later (for designs clarity) I usually remove walls between co-planar neighbours. I will certainly soon start to make V2 versions of my code, was only missing this, but for the moment I'm making a vanilla JS pattern editor.

    • Maria Alzate

      Symmetrical Json Deserializers
      Development Discussions • • Maria Alzate

      3
      0
      Votes
      3
      Posts
      402
      Views

      Maria Alzate

      Awesome! Thank you!

    • BarbourSmith

      V2 .xyz bug
      Development Discussions • • BarbourSmith

      3
      0
      Votes
      3
      Posts
      340
      Views

      z3dev

      See more information on the Node.js modules here: https://nodejs.org/dist/latest-v12.x/docs/api/modules.html#modules_folders_as_modules

    • z3dev

      V2 JSCAD Packages Available!
      Announcements • • z3dev

      3
      1
      Votes
      3
      Posts
      369
      Views

      z3dev

      @BarbourSmith Thanks.

      I noticed that as well. For now, you'll have to manually switch the version to 'alpha'.