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
    • Cid Zhang

      [Christmas Update!]New application of JSCAD: Fully 3D-printed music box
      General Discussions • • Cid Zhang

      6
      2
      Votes
      6
      Posts
      924
      Views

      platypii

      Wow very cool! Hard to imagine how that would even be possible with traditional CAD software 🙂

    • hrgdavor

      threejs integration
      General Discussions • • hrgdavor

      11
      0
      Votes
      11
      Posts
      2509
      Views

      hrgdavor

      @platypii @danmarshall I think both of will be able use your preferred engine, and get specific benefits depending on a task at hand. Actually I am planning to split the necessary code so that it becomes rather easy to use any of the 3 engines I found to be interesting (regl, threejs, babylon)

      regl it is the current engine and is compact CON: lack proper WEBGL2 support and there are NO plans for supporting it in the future example for extremely compact page that has jscad script and render and all under 99kb is great example why regl is still very useful 🙂 by @platypii https://paradr.one/ threejs and babylon larger but can be cut down for basic rendering (I managed to get 400k version of threejs that works with jscad) support wegl2 instancing can bring performance regl just will not ever be able with webgl1 are working actively on great next thing: WebGPU WebGPU might be the future for jscad if we can come up with ways to utilize compute shaders for performance having also these big engines as an option is good for when we want build fancy stuff and ake advantage of huge knowhow of their communities

      you have likely already seen my instancing demo: http://3d.hrg.hr/jscad/three/threejscad2.html?uri=model.logos.js in threejs

      you can track progress of my new prototype that is supposed to provide the mentioned integrations of all 3 engines I found interesting.
      https://github.com/jscad/OpenJSCAD.org/discussions/944 ... I will post a topic as soon I have any rendering integrated .. it is still in testing of some ui concepts phase

    • hrgdavor

      jscad utility function to preview booleans while developing
      Development Discussions • • hrgdavor

      1
      0
      Votes
      1
      Posts
      252
      Views

      No one has replied

    • Ashish

      2d line length (or perimeter)
      General Discussions • • Ashish

      7
      0
      Votes
      7
      Posts
      767
      Views

      z3dev

      You seem to be stuck in the old documentation.

      Please see the new website at www.openjscad.xyz, and from the help there are links to the User Guide and the API documentation.

    • z3dev

      Release : 2021 NOV 07
      Announcements • • z3dev

      1
      0
      Votes
      1
      Posts
      181
      Views

      No one has replied

    • Ashish

      help: Import DXF and calculate bounding box
      General Discussions • • Ashish

      4
      0
      Votes
      4
      Posts
      678
      Views

      z3dev

      Sorry… that documentation is not complete. We will have to make some updates. 😞

      There’s slightly better documentation here.

      Basically, your design needs to call measureBoudingBox(shape), which returns an array of points, lower and upper bounds.

    • z3dev

      Contributions to JSCAD
      Announcements • • z3dev

      3
      0
      Votes
      3
      Posts
      420
      Views

      z3dev

      I'm glad to announce that another new monthly contributor has joined.

      Welcome, @TargetedwebT. And thanks a lot for the support!

    • gilboonet

      V2 feedback
      Development Discussions • • gilboonet

      9
      0
      Votes
      9
      Posts
      1272
      Views

      gilboonet

      @hrgdavor Thank you, that's very nice. It's not that I like folding things but it's a process I use to build them with cardboard

    • z3dev

      Release : 2021 OCT 17
      Announcements • • z3dev

      1
      0
      Votes
      1
      Posts
      146
      Views

      No one has replied

    • hrgdavor

      jscad V1 site backup with remote url support
      Development Discussions • • hrgdavor

      1
      0
      Votes
      1
      Posts
      234
      Views

      No one has replied

    • H

      proxyUrl setting
      General Discussions • • hamade

      14
      0
      Votes
      14
      Posts
      1379
      Views

      H

      @z3dev
      I am using a rental server of general settings, nothing special, I think.
      I did no configuration of the web server.
      I did not changed anything on setting when installing the web site.

      Thanks to all of you related,
      I have uploaded the page.
      https://www.fablab-shinagawa.org/archive/index.html
      when you click "パラメトリック" - which means "parametric"- tab,
      you would see the list of our parametric designs, and again when you click a design,
      you would link to the page includes openjscad model.

    • gilboonet

      using an exported STL into a script
      Design Discussions • • gilboonet

      17
      0
      Votes
      17
      Posts
      1869
      Views

      hrgdavor

      this will soon be fixed https://github.com/jscad/OpenJSCAD.org/issues/935

    • gilboonet

      Video of an integrated tool (from 2016) using OpenJSCAD v0.4
      Comments & Feedback • • gilboonet

      5
      0
      Votes
      5
      Posts
      948
      Views

      gilboonet

      @jess-yan Hello, the point selection is made with an external tool, Openscad Simple Polygon Editor. I modified it so that I could use it along with OpenJSCAD. But it was with a very old version and with v2 I don't see how to do the same.

    • z3dev

      Release : 2021 OCT 04
      Announcements • • z3dev

      1
      2
      Votes
      1
      Posts
      239
      Views

      No one has replied

    • Ion 0

      Exporting format for CNCs
      General Discussions • • Ion 0

      6
      0
      Votes
      6
      Posts
      840
      Views

      Ion 0

      Researching cnc workings better, seems like the conversion process is more involved and that DXF is a suitable format for generating CNC g-code from. DXF export from jscad is very reliable so far. thanks all for the replies

    • hrgdavor

      ScriptCAD.org
      General Discussions • • hrgdavor

      5
      0
      Votes
      5
      Posts
      615
      Views

      hrgdavor

      @jess-yan threejs has this ready-made somewhere(taking mouse point and returning meshes under it),

      I will most definitely post it on the forum here when I have this feature.
      This MAY require a shift away from how jscad works now, but hopefuly can be done with current jscad setup.

      The idea I have for now is to run a AST transform to inject line number information into the script and then run the modified script. This is something I am able to do, but I have other stuff in the pipeline before this 🙂

    • jess yan

      How to get the coordinate value through the mouse?
      Development Discussions • • jess yan

      2
      0
      Votes
      2
      Posts
      394
      Views

      jess yan

      I use camera-unproject to do coordinate mapping, but the obtained coordinates are obviously wrong.

      code:

      const regl = this.$el const handleMouseDown = (e) => { const x = 1 - (e.offsetX / regl.clientWidth) * 2 const y = (e.offsetY / regl.clientHeight) * 2 - 1 const point = vec3.fromValues(x, y, 0.5) const { projection, view, viewport } = this.camera const combinedProjView = mat4.multiply([], projection, view) const invProjView = mat4.invert([], combinedProjView) const result = unproject([], point, viewport, invProjView) console.log('convasSize: ', [regl.clientWidth, regl.clientHeight]) console.log('viewport: ', viewport) console.log('clickPoint: ', [x, y]) console.log('unproject result:', result) } this.$el.addEventListener('mousedown', handleMouseDown.bind(this))

      4a0979ad-ef8d-4af6-80d6-b7a52f92e8f9-image.png
      Could it be that I did something wrong?

    • jess yan

      A questions about project()
      Development Discussions • • jess yan

      3
      0
      Votes
      3
      Posts
      509
      Views

      jess yan

      @z3dev
      Ok, I have submitted an issue on github.
      https://github.com/jscad/OpenJSCAD.org/issues/916

    • z3dev

      Release : 2021 SEP 27
      Announcements • • z3dev

      1
      0
      Votes
      1
      Posts
      144
      Views

      No one has replied

    • jess yan

      AutoCAD Text conversion fails
      Development Discussions • • jess yan

      2
      0
      Votes
      2
      Posts
      349
      Views

      z3dev

      @jess-yan DXF is a old nasty file format so don’t expect much. JSCAD only converts certain DXF entities. Please see the README here…

      https://github.com/jscad/OpenJSCAD.org/tree/master/packages/io/dxf-deserializer

      There’s a nice library that will convert from DXF to SVG.

      https://github.com/bjnortier/dxf