reducing nodes

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

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
ross
Full Member
Posts: 59
Joined: Wed Sep 30, 2015 2:11 pm

reducing nodes

Post by ross » Wed Dec 04, 2024 2:39 pm

Hi
Qcad professional 3.29.6
Imac sequola 15.1.1

Please can you advise on reducing the number of NODES .

When shapes are not straightforward and made up of many arcs and lines covering only short distances.

Thanks--Ross
Attachments
Screenshot 2024-12-04 at 9.38.10 PM.png
Screenshot 2024-12-04 at 9.38.10 PM.png (42.03 KiB) Viewed 7168 times

User avatar
andrew
Site Admin
Posts: 8816
Joined: Fri Mar 30, 2007 6:07 am

Re: reducing nodes

Post by andrew » Wed Dec 04, 2024 3:29 pm

You can use

Draw > Polyline > Simplify

which uses a sophisticated algorithm (Ramer–Douglas–Peucker) to retain the overall shape while reducing the number of nodes.

CVH
Premier Member
Posts: 4995
Joined: Wed Sep 27, 2017 4:17 pm

Re: reducing nodes

Post by CVH » Wed Dec 04, 2024 3:42 pm

Hi,

When the origin are splines then you can increase the approximation tolerance when exploding to Polylines.
Meaning: Less precise and coarser approximation.
At some point the overall shape may no longer be preserved well.

As in the picture:
Polylines with bulging segments (Arcs) are not simplified with Polyline .. Simplify (OS)
That would work on Polylines with line segments.
But an interpolation of an arc with small straight segments are typically more nodes.

From the picture you are already near the edge of simplification.
One could manually replace some smaller Arcs with inserting a larger Arc spanning from start to end.
Explode the Polyline to individual Arc shapes, replace, select contour and create a new Polyline from the selection.

Regards,
CVH

Post Reply

Return to “QCAD 'How Do I' Questions”