NaNs in vertex of POLY (Startwidth-Endwidth)

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules
Always indicate Operating system, QCAD version
Attach Drawing files, Screenshots
Post one question per topic.
Post Reply
User avatar
Krischu
Senior Member
Posts: 129
Joined: Thu Jul 04, 2019 8:11 am

NaNs in vertex of POLY (Startwidth-Endwidth)

Post by Krischu » Thu Sep 26, 2019 11:15 am

What does it mean when I see these NaNs (not a number) when cycling through the vertices of a polygon?
Can I neglect them?
--
Christoph

CVH
Premier Member
Posts: 421
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Re: NaNs in vertex of POLY (Startwidth-Endwidth)

Post by CVH » Thu Sep 26, 2019 2:53 pm

In relation with local width?
QCADpro 3.23.0.0 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

User avatar
Krischu
Senior Member
Posts: 129
Joined: Thu Jul 04, 2019 8:11 am

Re: NaNs in vertex of POLY (Startwidth-Endwidth)

Post by Krischu » Fri Sep 27, 2019 9:48 am

CVH wrote:
Thu Sep 26, 2019 2:53 pm
In relation with local width?
What you mean?
M_Boden_1_ok.dxf
(100.63 KiB) Downloaded 29 times
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

CVH
Premier Member
Posts: 421
Joined: Wed Sep 27, 2017 4:17 pm
Location: Belgium; Antwerp

Re: NaNs in vertex of POLY (Startwidth-Endwidth)

Post by CVH » Fri Sep 27, 2019 10:07 am

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
QCADpro 3.23.0.0 / win7pro 32 bit / 4GB / 1e generation i7 2.6Ghz / HDD GeForce GT 520

User avatar
Krischu
Senior Member
Posts: 129
Joined: Thu Jul 04, 2019 8:11 am

Re: NaNs in vertex of POLY (Startwidth-Endwidth)

Post by Krischu » Fri Sep 27, 2019 1:00 pm

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. :)
--
Christoph

Post Reply

Return to “QCAD 'How Do I' Questions”