# [ORLD 2021 R2 C#] Calculate alignments and plane (shape) intersections?

Hi,

my situation is:

• I have 3D model with referenced alignments, represented as 3D Linear Elements (result of Complex Element geometry and Profile definitions)
• There are planes (defined using planar shapes)

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:

• Obtain all LinearEntities3d > get LinearElement > use Intersect method (but it is not explained what parameters means, is it origin + normal?)
• Convert MicroStation API element (CurveVector) and to use standard MicroStation tools to calculate intersection between curve and plain.

What is better, wrong, recommended?

With regards,

Jan

Parents
• I would suggest using CurveVector as the best approach as there are plenty of operations we can do with CurveVector

• Hi Shashank,

• going through CurveVector
• trying to find proper method in ORD API).

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.

With regards,

Jan

• Hi Shashank,

• going through CurveVector
• trying to find proper method in ORD API).

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.

With regards,

Jan

Children
No Data