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
    • gilboonet

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

      7
      0
      Votes
      7
      Posts
      72
      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
      84
      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
      125
      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
      103
      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
      71
      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
      93
      Views

      No one has replied

    • gilboonet

      V2 feedback
      • gilboonet

      9
      0
      Votes
      9
      Posts
      384
      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
      69
      Views

      No one has replied

    • jess yan

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

      2
      0
      Votes
      2
      Posts
      70
      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
      90
      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
      55
      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
      58
      Views

      No one has replied

    • jess yan

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

      5
      0
      Votes
      5
      Posts
      92
      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
      64
      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

    • hrgdavor

      cadhub.xyz integration is now live !
      • hrgdavor

      1
      1
      Votes
      1
      Posts
      85
      Views

      No one has replied

    • jess yan

      Use jscad in vue
      • jess yan

      8
      0
      Votes
      8
      Posts
      131
      Views

      z3dev

      @jess-yan Super! Please let us know when a working website is available. There are many of us that want to extend JSCAD in various ways.

    • hrgdavor

      cadhub.xyz integration
      • hrgdavor

      4
      1
      Votes
      4
      Posts
      111
      Views

      hrgdavor

      @z3dev hope you are well and refreshed, and ready to smash some PR's ... also a reminder that CadHub is waiting for your feedback to continue formally with jscad integration.

    • W

      Using Jscad in a web project
      • walt

      5
      0
      Votes
      5
      Posts
      134
      Views

      hrgdavor

      check this post https://openjscad.nodebb.com/topic/248/react-library-v2

      or this https://github.com/jscad/OpenJSCAD.org/discussions/895

    • ?

      Regl renderer mouse selection
      • A Former User

      7
      0
      Votes
      7
      Posts
      97
      Views

      hrgdavor

      @kenianbei sad to see you leave. I do have pieces of code that convert jscad output to threejs meshes and it is now working wihout hacks in cadhub and integrated into react-three fiber

    • Robert Olson

      how to compile a JsCad script from string instead of file?
      • Robert Olson

      6
      0
      Votes
      6
      Posts
      122
      Views

      hrgdavor

      @Robert-Olson small update:

      managed to add reload functionality into :
      http://3d.hrg.hr/jscad/three/threejscad.html

      just drop a script on to the screen, edit in your fav editor and see results.

      tested only in chrome, to se errors use browsers console F12

      it is a rough prototype with ton of scrappy code, but works relatively ok.
      modeling is in main thread, so if you create an infinite loop, you will have to kill the tab.

      nevertheless if you do start using it, let me know how it works for you , or if it breaks

    Powered by NodeBB | Contributors