Replies: 1 comment
-
This is an floating point imprecision issue (again). I have no real solution for that now.
Some knot-vectors of your SPLINES look like this:
As you see the first 3 knot values are not exactly equal and this causes the problem. import ezdxf
doc = ezdxf.readfile("1284_v1.dxf")
for spline in doc.entitydb.query("SPLINE"):
spline.knots = [round(k, 7) for k in spline.knots]
doc.saveas("1284_v1_fixed.dxf") The point calculation and rendering is fixed: This is of course not a general solution for this issue! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,

I'm trying to display this DXF file using
dxf view
, but it shows an extra SPLINE:I don't see this SPLINE in AutoCAD:

How can I prevent it from being displayed with ezdxf?
the dxf file :
00690026_374910a12d8b4a4c1fc5f706_step_000.zip
Beta Was this translation helpful? Give feedback.
All reactions