← All bug reports

FS#2370Retain global width / segment widths when reversing polyline

Type
Feature Request
Status
Assigned
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.27.0
Operating system
All
Reported
2022-06-08 by CVH
Votes
1

Andrew,

Changing orientation of a polyline with RV or by changing it in the Property Editor clears the global width value.

Single line pieces as polyline default to CCW.
Still the global width is cleared when trying to set them CW.

I didn't update since 3.27.0 but reading this topic I suppose it still is valid.
Related: https://www.qcad.org/rsforum/viewtopic.php?f=89&t=9362

Regards,
CVH

Comments (1)

CVH 2022-06-19

Andrew,

Seeing the commit:
https://github.com/qcad/qcad/commit/5d6f77d8ee0657bf17f53678f087da007c2aa083

And there the route from Arc's to bulging segments or back is not always 100% certain.

It might be an idea to investigate reversing the lists of vertices, bulges, start/endWidths.
This doesn't require recalculating bulging back and forth to/from Arc shapes.
The bulging factors only need to be inverted.

Maybe this is even less demanding than exploding the polyline to individual segment shapes, reversing each shape and recombining those to a new polyline.

Just thinking out loud.

Regards,
CVH