JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Exporting format for CNCs

    Scheduled Pinned Locked Moved General Discussions
    6 Posts 3 Posters 2.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ion 0I Offline
      Ion 0
      last edited by

      Hello

      I have some polygons I want to export in a common format for CNC cutting (2D).

      Tried searching around, I know there DXF and STL export in jscad but could not find a straightforward library or way to export a polygon from JSCAD to a CNC format (like STEP).

      Are there any options to accomplish this using jscad functions or an external library?

      Thanks!

      z3devZ 1 Reply Last reply Reply Quote 0
      • z3devZ Offline
        z3dev @Ion 0
        last edited by z3dev

        @Ion-0 Welcome!

        There are several members making designs for CNC / Cutter machines, so hopefully they can add some suggestions.

        DXF is still very popular for exchanging CNC designs. And newer CNC machines can also convert SVG. Are you working in 2D or 3D?

        For the designs, you can create 2D polygons using a set of points.

        const myshape = polygon([point,…])

        Ion 0I 1 Reply Last reply Reply Quote 0
        • Ion 0I Offline
          Ion 0 @z3dev
          last edited by

          @z3dev hello
          Thanks for the ansewe. I have poligons built, only targeting 2D shapes.

          What i am looking for is a library or way to export from javascript a cnc common file.

          I do understand that conversion from dxf or svg might be possible but I expect other issues as units or conversion issues and it could require an extra step.

          hrgdavorH 1 Reply Last reply Reply Quote 0
          • hrgdavorH Offline
            hrgdavor @Ion 0
            last edited by

            @Ion-0 you could use https://github.com/donalffons/opencascade.js to generate step files.

            Opencascade is WASM build of OCCT, that is if 12MB, but could be custom built smaller if all you need is STEP export.

            There are some efforts to create a simpler wrappers around it but non yet available as those devs have just recently started playing with this.

            Ion 0I 1 Reply Last reply Reply Quote 0
            • Ion 0I Offline
              Ion 0 @hrgdavor
              last edited by

              @hrgdavor
              thanks!!. i'll check it out as see what options are there

              1 Reply Last reply Reply Quote 0
              • Ion 0I Offline
                Ion 0
                last edited by 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

                1 Reply Last reply Reply Quote 2

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                Powered by NodeBB | Contributors