• How do you single step your code?

    4
    0 Votes
    4 Posts
    2k Views
    z3devZ
    @David-Bolt The latest release has a change which retains the webworker thread. So, debugging should be easier now.
  • Can not get View type: Orthographic to work.

    5
    0 Votes
    5 Posts
    2k Views
    Ion 0I
    @david-bolt one suggestion from what i've tried could be to set the camera position for regular perspective camera further away as an orthographic camera is just a perspective camera at infinity
  • import/export of .obj file

    8
    1
    0 Votes
    8 Posts
    2k Views
    gilboonetG
    @platypii Thank you for this investigation. I remember that I tried to get JSCAD to union those groups but then it loses colors. I use Wings 3d to colorize my models, and it does not split them into separate objects (on my screenshot I have only one geometry), only materials are separated into groups. [image: 1655194392922-capture-d-%C3%A9cran-du-2022-06-14-10-11-33.png] [image: 1655196467063-capture-d-%C3%A9cran-du-2022-06-14-10-29-42.png] I splitted the model into 3 geometries and then exported it to .obj and the difference is that it contains 3 lines starting with "o " that defines start of an object. Maybe for the moment JSCAD translate lines starting with "g " like "o ".
  • A camera without gimbal lock

    3
    0 Votes
    3 Posts
    1k Views
    hrgdavorH
    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
  • JSCAD geometry engine project

    2
    4 Votes
    2 Posts
    1k Views
    z3devZ
    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.
  • new JSCAD prototype progress 2022-01

    1
    1
    2 Votes
    1 Posts
    734 Views
    No one has replied
  • Unfolder V2, test on Ubuntu with Chromium

    3
    1
    0 Votes
    3 Posts
    651 Views
    hrgdavorH
    @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
  • Is it possible to group (in 2d output) unconnected lines ?

    10
    1
    0 Votes
    10 Posts
    2k Views
    gilboonetG
    @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.
  • Does anyone use jscad on iPhone ?

    10
    1
    0 Votes
    10 Posts
    2k Views
    gilboonetG
    @z3dev You can also change the model, Venus has 1000 triangles and takes 30 sec. on my laptop to unfold (ubuntu with Firefox).
  • Union on multi-color imported obj file lose colors

    7
    1
    0 Votes
    7 Posts
    1k Views
    gilboonetG
    @z3dev Sadly, lines already have a color (red for cuts, maroon for mountain fold and green for valley fold). [image: 1642928915791-capture-d-%C3%A9cran-de-2022-01-23-10-07-15.png]
  • dynamic parameters caption works oddly

    3
    1
    0 Votes
    3 Posts
    688 Views
    hrgdavorH
    @gilboonet it is nice to see a multilingual script
  • If loading stl binary file

    7
    1
    0 Votes
    7 Posts
    1k Views
    Sea-DH1S
    @z3dev new issue https://github.com/jscad/OpenJSCAD.org/issues/972
  • The Case of the Missing Triangles

    4
    1
    0 Votes
    4 Posts
    807 Views
    z3devZ
    @neonsnowcat Please try the latest version via www.openjscad.xyz Hopefully, those missing triangles have returned to earth.
  • function to create regular polygon

    3
    0 Votes
    3 Posts
    621 Views
    gilboonetG
    @hrgdavor Thanks a lot that's exactly what I needed, [image: 1638354289644-capture-d-%C3%A9cran-de-2021-12-01-11-24-28.png]
  • jscad utility function to preview booleans while developing

    1
    2
    0 Votes
    1 Posts
    585 Views
    No one has replied
  • V2 feedback

    9
    0 Votes
    9 Posts
    2k Views
    gilboonetG
    @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
  • jscad V1 site backup with remote url support

    1
    0 Votes
    1 Posts
    443 Views
    No one has replied
  • How to get the coordinate value through the mouse?

    2
    1
    0 Votes
    2 Posts
    893 Views
    jess yanJ
    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)) [image: 1632904246061-4a0979ad-ef8d-4af6-80d6-b7a52f92e8f9-image.png] Could it be that I did something wrong?
  • A questions about project()

    3
    2
    0 Votes
    3 Posts
    1k Views
    jess yanJ
    @z3dev Ok, I have submitted an issue on github. https://github.com/jscad/OpenJSCAD.org/issues/916
  • AutoCAD Text conversion fails

    2
    0 Votes
    2 Posts
    918 Views
    z3devZ
    @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