Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle/ Arc Issue (Exported DXF from Autodesk Inventor) #8

Closed
raykholo opened this issue Jul 17, 2016 · 9 comments
Closed

Circle/ Arc Issue (Exported DXF from Autodesk Inventor) #8

raykholo opened this issue Jul 17, 2016 · 9 comments

Comments

@raykholo
Copy link

I am having an issue with LaswerWeb3 (same for LW2) not recognizing arcs from Autodesk Inventor correctly. Instead of the arc it puts 2 lines. And if I had a circle it would be represented as a square.

Pics and DXF attached. @openhardwarecoza

Gear in Inventor:
image

Gear in LaserWeb3:
image

Peter Gear Laser Cut v1-export1.zip

@bzuillsmith
Copy link
Member

I will take a look later today. Thanks for the report and file!

On Jul 17, 2016 8:57 AM, "raykholo" notifications@github.com wrote:

I am having an issue with LaswerWeb3 (same for LW2) not recognizing arcs
from Autodesk Inventor correctly. Instead of the arc it puts 2 lines. And
if I had a circle it would be represented as a square.

Pics and DXF attached. @openhardwarecoza
https://github.com/openhardwarecoza

Gear in Inventor:
[image: image]
https://cloud.githubusercontent.com/assets/7330584/16901537/cd03f74e-4c14-11e6-9684-20486020e8e5.png

Gear in LaserWeb3:
[image: image]
https://cloud.githubusercontent.com/assets/7330584/16901541/da8d12ce-4c14-11e6-81cd-cce86b45d777.png

Peter Gear Laser Cut v1-export1.zip
https://github.com/gdsestimating/three-dxf/files/367954/Peter.Gear.Laser.Cut.v1-export1.zip


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABWMmOL9dtRe7FPXOlnML6_nchy82LmPks5qWlDYgaJpZM4JOQGB
.

@bzuillsmith
Copy link
Member

It looks like most if not all the curves (including the circle) are actually spline entities in this file. Splines aren't supported yet. It's certainly something we can work on next, but I'm not completely sure the math involved yet so it might be more complex than it seems. I'm curious, is LaserWeb converting it into GCode ok or are they relying on three-dxf to help them do that?

@ghost
Copy link

ghost commented Jul 18, 2016

We use three-dxf to load various files into threejs geometry. Then we
later iterate through the geometry, and look for lines, which then
becomes gcode. You project was key to finally getting good dxf support,
we really can't thank you enough (:

Send me your paypal details, would like to get you some #beerfund

Also, see
http://hackaday.com/2016/07/17/open-source-laser-cutter-software-gets-major-update-new-features/
On 18 Jul 2016 06:17, "Ben Zuill-Smith" notifications@github.com wrote:

It looks like most if not all the curves (including the circle) are
actually spline entities in this file. Splines aren't supported yet. It's
certainly something we can work on next, but I'm not completely sure the
math involved yet so it might be more complex than it seems. I'm curious,
is LaserWeb converting it into GCode ok or are they relying on three-dxf to
help them do that?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHVr2-SZauXhJm3p0GIBIXiT_jJuai0Mks5qWv5igaJpZM4JOQGB
.

@raykholo
Copy link
Author

The gcode output from LW is the same 2 lines as what I showed in that pic, or 4 lines: a square with the same orientation, for a circle in the dxf.

What is it that I need to convert this into so that your code will work with it as is? And do you know of any software that will do that?

And the support for splines would be much appreciated. This is pretty much exclusively how Inventor seems to handle things.

Ray

On Jul 18, 2016, at 12:17 AM, Ben Zuill-Smith notifications@github.com wrote:

It looks like most if not all the curves (including the circle) are actually spline entities in this file. Splines aren't supported yet. It's certainly something we can work on next, but I'm not completely sure the math involved yet so it might be more complex than it seems. I'm curious, is LaserWeb converting it into GCode ok or are they relying on three-dxf to help them do that?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@bzuillsmith
Copy link
Member

I haven't forgotten about this, just haven't had enough time. I've been working toward an async parser that can load large files lately, but it's slow going. I may take a break from it and work on this issue a little. Pull requests are welcome :)

@ghost
Copy link

ghost commented Oct 4, 2016

Temporary workaround http://nemesisrobotics.com/326-2/ . SPLINES TO POLYLINES IN DRAFTSIGHT

@iceman1979
Copy link

Can you export to PDF? I have a PDF to DXF converter app that will convert the splines to arcs and circles.

I tried to attach a copy of the file that I converted using my app but it won't let me attach it, even when I zip it up.

@bzuillsmith
Copy link
Member

I made a small step toward resolving this in the last week. The parser (dxf-parser) now has support for reading splines but we still need to add support for drawing them in three-dxf.

@bzuillsmith
Copy link
Member

Thanks to @duncanthrax commiting 2a550ab we now have spline support in v3.0. However, as LaserWeb integrates this into their gcode generation code, I'm not sure it will directly translate. We are using Three.js spline code to make things happen and I'm not sure if gcode has direct support for splines so there may be more work to do on that front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants