What does it mean when I see these NaNs (not a number) when cycling through the vertices of a polygon?
Can I neglect them?
NaNs in vertex of POLY (Startwidth-Endwidth)
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
NaNs in vertex of POLY (Startwidth-Endwidth)
--
Christoph
Christoph
Re: NaNs in vertex of POLY (Startwidth-Endwidth)
In relation with local width?
Re: NaNs in vertex of POLY (Startwidth-Endwidth)
What you mean? When I convert these line segments to polyline and cycle through the vertices, vertex[0] has Startwidth and Endwith 0. Vertices [1-7] all have NaN in that field.
--
Christoph
Christoph
Re: NaNs in vertex of POLY (Startwidth-Endwidth)
Poly line global/Local width is something apart from lineweight.
Normal lines, arcs don't have that.
A Poly created of pieces doesn't have a source for widths.
I presume NaN or undefined is at its place here.
In time this can become non uniform.
Combining with pieces of: arcs, lines, polys, exploded or approximated entities.
Some CAM don't like that.
Set Global Width to zero will set them all to zero.
Some CAM don't like that either.
Set it to 0.01 or 1 or what will work.
An other argument CAM may not like is Polyline Pattern.
If your CAM fails with on, like mine, set it to No.
Regards,
CVH
Normal lines, arcs don't have that.
A Poly created of pieces doesn't have a source for widths.
I presume NaN or undefined is at its place here.
In time this can become non uniform.
Combining with pieces of: arcs, lines, polys, exploded or approximated entities.
Some CAM don't like that.
Set Global Width to zero will set them all to zero.
Some CAM don't like that either.
Set it to 0.01 or 1 or what will work.
An other argument CAM may not like is Polyline Pattern.
If your CAM fails with on, like mine, set it to No.
Regards,
CVH
Re: NaNs in vertex of POLY (Startwidth-Endwidth)
Thanks. Global Width to 0 did it. At least, made the NaNs disappear. Actually they didn't bother me, was just curious.
Did not yet stumble across an incompatibility with other CAMs. Will only be interesting when it comes to importing the DXF into Blender.
I'm not yet at that point, though.
Did not yet stumble across an incompatibility with other CAMs. Will only be interesting when it comes to importing the DXF into Blender.
I'm not yet at that point, though.
--
Christoph
Christoph