Hi grotius,
thank you for your attention and support!
> Then to extend a wire. Use the "wire add" function. And add the exension.
Great! Didn't thought of the most obvious solution. Thank you for the kick.
Using own math objects might be a good solution too. Maybe better than fiddling with opencascade objects.
I already tried similar by using CavalierContours. If you follow the link from CavalieContours from my last post, you'll see, where I got stuck with cc.
A big problem (for me) of opencascade is that so many methods (+ classes) don't do, what the name makes you expect.
Just selecting the same faces than with picture from last post only in different order result in completely different behaviour.
Still looking for a way to make opencascade do what I want.
When I ask opencascade for intersection of two shapes I get a bunch of unordered edges (AIS_Shape), which is based on some parametric Geom-class. When I ask occ for geom-object I get it together with the limits of the parameters and using D0 with some parameter gives the vertex points of the curve.
To sort those edges for cavaliercontours polyline you maybe need to flip the direction of an edge. The geom-classes have some Revert/Reverted methods, so I thought reverting a line that goes from A to B would lead to a line from B to A, but that's not true.
So - may be I should go for my own math objects and use occ for display only ...