The topic was moved to the international forum after I replied in English what is common in the main forum.
Using the English language has been prohibited me there in the past.
So I kindly removed my post 33153.
OC has also a tolerance setting in the Application Preferences and it can bridge gaps.
OG will always result in an open form, OC might result in a closed form when geometrically closed.
OG or OC with a larger tolerance will shift your original entities !!
Look very close at what happens.
With a gap, the next startpoint is replaced by the former endpoint. They are not auto trimmed!
Examples included: OGOC+Tolerance.dxf (107 KB)
My advice here is to use OC with bridging gaps, and then only for all line segments.
QCAD will then add minute bridges that are perfectly inline with the main entities.
These get simplified as simplification is a fixed default with OC.
IMHO: OG-OC should auto trim, also for arcs.
That is unless there are good reasons not to.
The best practice in QCAD is to trim them pairwise upfront, all individually … All one on one.
Curious if that would be used to append shapes to polylines (OG, OC, OL) in the near future?
Will there be a trimming prepending method too?
As of now, only line shapes are trimmed.
The polyline rounding method that I am busy with trims all segments pair-wise.
To avoid appending and prepending shapes it acts on vertice/bulge level.
I have some problems with the fact that the endpoint of the last polyline segment is simply moved.
RPolyline.moveEndPoint(ip) aka setting the last of the vertices to the intersection point.
What if that last segment is bulging?
Moving the endpoint but keeping the bulge factor would result in a different arc shape.
Essentially the reason why I didn’t use appending/prepending shapes so far.