Page 1 of 1

from spline to polyline - how to reduce the segment count?

Posted: Mon Aug 22, 2016 8:34 pm
by chattermark
Hi all,
my task: convert a spline derived from actual measurements on my boat (height of a coaming rim, to be the base for a new solid dodger / pilot house) to a polyline. Furtheron, the result shall be integrated into the shape of a window frame for the dodger. Frame and window are to be waterjet-cut.

The red line in the attached dxf file is a spline derived from 12 points. The green line is the result of exploding a shifted copy of that spline (factor already set down to 2). I want to reduce the number of segments that this polyline is composed of. I tried polylinesimplify with various tolerance settings - no change. Then I saw that a tool named polylinenormalize exists - but I did not find any information on its purpose and usage.

My goal is to reduce the polyline to, say, 20 or so (order of magnitude) segments. Yes, I could purge single points manually, but if there is a parametrized way - I've got some more lines to process...

Thanks in advance!

Cheers,
Ulli

Re: from spline to polyline - how to reduce the segment coun

Posted: Tue Aug 23, 2016 8:28 am
by andrew
Before exploding, go to Edit > Application Preferences > Modify > Explode and adjust the spline approximation tolerance (e.g. to 1). This will give you a lot less nodes when exploding.

Re: from spline to polyline - how to reduce the segment coun

Posted: Tue Aug 23, 2016 3:54 pm
by chattermark
Andrew, thanks for the comment. As I wrote:
The green line is the result of exploding a shifted copy of that spline (factor already set down to 2).
I had done that already, but not to 1, only to 2 - I'll give that another try!

[Edit:] Just saw that I had changed the spline segments parameter, not the spline tolerance. That looks better now! [/Edit]

Cheers,
U.

[Edit2]PS: Who ate the 't?' in the subject line?[/Edit2]

Re: from spline to polyline - how to reduce the segment count?

Posted: Mon Aug 20, 2018 5:02 pm
by benjamindahl
Hhm, for my opinion the results are unsatisfying, as I posted here: https://www.qcad.org/rsforum/viewtopic. ... nes#p21518
I'd love to have a higher accuracy with less points.

Cheers. Benny