my situation is:
So it is quite the same as model when sections (Named Boundaries) are created in ORLD, but question is different:
Every shape (because in general position) intersects zero, one or more alignments. What is recommended way how to calculate the intersections?
Without writing any test code, I see two options:
What is better, wrong, recommended?
I would suggest using CurveVector as the best approach as there are plenty of operations we can do with CurveVector
thanks for your answer. In the meantime, we evaluated both options:
It looks like both can be used, but in our situation, to use LinearGeometry.Intersect method is simpler, because all elements are accessed "from ORD API", so represented as civil objects at first.
On the other hand, the method is weird a bit in my opinion, because for intersection of 3D alignment and Named Boundary it returns collection with 2 identical intersections. But it is something I experienced several times already in ORD / ORLD code, that the results are "multiplied" and returned more times.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point