JSCAD User Group

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

      A camera without gimbal lock
      • settinger

      3
      0
      Votes
      3
      Posts
      572
      Views

      hrgdavor

      progress of the mentioned prototype with suport for different wegl libs can be found here:
      https://github.com/jscad/OpenJSCAD.org/discussions/944

      I have just made another step forward: mesh support (but with some quirks ATM)
      I have some lighting to fix, and also babylonjs for some weird rason uses left handed system (this adds a bit of complexity to the worker to support it properly)

      Also when switching viewers, if they are different orioentation currently I need to run the script again manually to get properly oriented triangles

      https://user-images.githubusercontent.com/2480762/162638934-7a945625-420d-4041-98fc-5735fcc34c6b.mp4

    • platypii

      JSCAD geometry engine project
      • platypii

      2
      4
      Votes
      2
      Posts
      499
      Views

      z3dev

      For those wondering, @platypii is a new member of the development team. He’s already put together some super nice fixes. In addition, he never sleeps so things are moving along at light speed. 😎

      So, please let him know if there’s something missing from JSCAD.

    • hrgdavor

      new JSCAD prototype progress 2022-01
      • hrgdavor

      1
      2
      Votes
      1
      Posts
      325
      Views

      No one has replied

    • gilboonet

      Unfolder V2, test on Ubuntu with Chromium
      • gilboonet

      3
      0
      Votes
      3
      Posts
      289
      Views

      hrgdavor

      @gilboonet yes, specification for sort functions is to

      return zero if a==b return neg or positive number depending if u want to sort ASC or DESC
    • gilboonet

      Is it possible to group (in 2d output) unconnected lines ?
      • gilboonet

      10
      0
      Votes
      10
      Posts
      1124
      Views

      gilboonet

      @gilboonet I finally take advantage of geometries id and class preservation, and created a small js node script that creates a group for all paths having the same class, and at the same time I solve another annoyance that was the impossibility to search by numbers by creating id. That's very nice.

    • gilboonet

      Does anyone use jscad on iPhone ?
      • gilboonet

      10
      0
      Votes
      10
      Posts
      971
      Views

      gilboonet

      @z3dev You can also change the model, Venus has 1000 triangles and takes 30 sec. on my laptop to unfold (ubuntu with Firefox).

    • gilboonet

      Union on multi-color imported obj file lose colors
      • gilboonet

      7
      0
      Votes
      7
      Posts
      528
      Views

      gilboonet

      @z3dev Sadly, lines already have a color (red for cuts, maroon for mountain fold and green for valley fold).
      Capture d’écran de 2022-01-23 10-07-15.png

    • gilboonet

      dynamic parameters caption works oddly
      • gilboonet

      3
      0
      Votes
      3
      Posts
      319
      Views

      hrgdavor

      @gilboonet it is nice to see a multilingual script 🙂

    • Sea-DH1

      If loading stl binary file
      • Sea-DH1

      7
      0
      Votes
      7
      Posts
      622
      Views

      Sea-DH1

      @z3dev
      new issue
      https://github.com/jscad/OpenJSCAD.org/issues/972

    • neonsnowcat

      The Case of the Missing Triangles
      • neonsnowcat

      4
      0
      Votes
      4
      Posts
      374
      Views

      z3dev

      @neonsnowcat Please try the latest version via www.openjscad.xyz

      Hopefully, those missing triangles have returned to earth.

    • gilboonet

      function to create regular polygon
      • gilboonet

      3
      0
      Votes
      3
      Posts
      255
      Views

      gilboonet

      @hrgdavor Thanks a lot that's exactly what I needed,
      Capture d’écran de 2021-12-01 11-24-28.png

    • hrgdavor

      jscad utility function to preview booleans while developing
      • hrgdavor

      1
      0
      Votes
      1
      Posts
      236
      Views

      No one has replied

    • gilboonet

      V2 feedback
      • gilboonet

      9
      0
      Votes
      9
      Posts
      1165
      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

    • hrgdavor

      jscad V1 site backup with remote url support
      • hrgdavor

      1
      0
      Votes
      1
      Posts
      215
      Views

      No one has replied

    • jess yan

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

      2
      0
      Votes
      2
      Posts
      352
      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()
      • jess yan

      3
      0
      Votes
      3
      Posts
      466
      Views

      jess yan

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

    • jess yan

      AutoCAD Text conversion fails
      • jess yan

      2
      0
      Votes
      2
      Posts
      316
      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

    • hrgdavor

      3D glasses support
      • hrgdavor

      1
      0
      Votes
      1
      Posts
      183
      Views

      No one has replied

    • jess yan

      How to select the rendered model with the mouse?
      • jess yan

      5
      0
      Votes
      5
      Posts
      588
      Views

      hrgdavor

      @z3dev @jess-yan yup. it is not implemented right now. But such feature has a lot more to consider to be implemented.

      It may be beneficial to start a discussion on git to see what would be expectation of such functionality and what it would take to implement it.

    • jess yan

      How to edit the converted model
      • jess yan

      2
      0
      Votes
      2
      Posts
      323
      Views

      z3dev

      @jess-yan another good question!

      there's an issue with the internal logic of the WEB UI that prevents the 'script' to be shown. it's not that easy to fix either.

      you can use the CLI (command line) application to convert the DXF file to a script.

      you can find instructions on how to use the CLI in the README file at...

      https://github.com/jscad/OpenJSCAD.org/tree/master/packages/cli

    Powered by NodeBB | Contributors