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

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

      5
      0
      Votes
      5
      Posts
      1601
      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
      532
      Views

      No one has replied

    • Ion 0

      Exporting format for CNCs
      General Discussions • • Ion 0

      6
      0
      Votes
      6
      Posts
      1592
      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
      1007
      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
      772
      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
      940
      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
      276
      Views

      No one has replied

    • jess yan

      AutoCAD Text conversion fails
      Development Discussions • • jess yan

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

    • Gorka Arakis

      From .obj to .dxf
      General Discussions • • Gorka Arakis

      5
      0
      Votes
      5
      Posts
      774
      Views

      Gorka Arakis

      @z3dev Happy to hear it!

    • hrgdavor

      3D glasses support
      Development Discussions • • hrgdavor

      1
      0
      Votes
      1
      Posts
      333
      Views

      No one has replied

    • jess yan

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

      5
      0
      Votes
      5
      Posts
      1154
      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.

    • H

      Problem with the website
      General Discussions • • Honest Guvnor

      5
      0
      Votes
      5
      Posts
      742
      Views

      hrgdavor

      @Honest-Guvnor It is fine to ask both here and on discord.

    • jess yan

      How to edit the converted model
      Development Discussions • • jess yan

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

    • irevdev

      Featured Model for CadHub
      General Discussions • • irevdev

      5
      0
      Votes
      5
      Posts
      913
      Views

      z3dev

      @hrgdavor thanks for the nice recommendation.

      here's the design, which was converted from an OpenJSCAD design.

      https://www.thingiverse.com/thing:4788337

      i'll leave the choice up to you gentlemen. 🙂

    • hrgdavor

      cadhub.xyz integration is now live !
      Development Discussions • • hrgdavor

      1
      1
      Votes
      1
      Posts
      588
      Views

      No one has replied

    • jess yan

      Use jscad in vue
      Development Discussions • • jess yan

      8
      0
      Votes
      8
      Posts
      1596
      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.

    • z3dev

      Release : 2021 SEP 09
      Announcements • • z3dev

      1
      1
      Votes
      1
      Posts
      275
      Views

      No one has replied

    • hrgdavor

      cadhub.xyz integration
      Development Discussions • • hrgdavor

      4
      1
      Votes
      4
      Posts
      1147
      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.

    • K

      Debugging script
      General Discussions • • Ken

      5
      0
      Votes
      5
      Posts
      816
      Views

      K

      Thanks everyone for your response, I continue to experiment and learn. Once I switched to Foxfire I can see the debug results.

      Thanks
      Ken

    • W

      Using Jscad in a web project
      Development Discussions • • walt

      5
      0
      Votes
      5
      Posts
      1105
      Views

      hrgdavor

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

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