[v8i vba] Detect if shapes are coplanar?

HI all,

I cannot for the love of all things unholy find a function that tells me if either:

1. Two shapes are coplanar, or
2. Two plane3d are coplanar, or
3. A function that unifies all shapes that are coplanar, regardles of all shapes in the array actually being coplanar to begin with.

See, I want to merge (union) some simple triangular shapes together.
That is easy - as long as the shapes are coplanar - using GetRegionUnion. But if there is even a slight difference in copla..narity (?) it goes belly up.

Do I really need to DO MATH?

Regards,
/T

Parents
  • Torben said:

    I cannot find a function that tells me if either:

    1. Two shapes are coplanar, or
    2. Two plane3d are coplanar

    We wrote a VBA project answering your question that is explained in this article.

    Torben said:
    From what I read, the essence is that we have to do math.  Do I really need to do math?

    No: in this case MicroStation VBA does the hard work for you.  However, you need to understand the geometric 3D concepts of points, planes and normals for the solution to make sense.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Torben 

Reply
  • Torben said:

    I cannot find a function that tells me if either:

    1. Two shapes are coplanar, or
    2. Two plane3d are coplanar

    We wrote a VBA project answering your question that is explained in this article.

    Torben said:
    From what I read, the essence is that we have to do math.  Do I really need to do math?

    No: in this case MicroStation VBA does the hard work for you.  However, you need to understand the geometric 3D concepts of points, planes and normals for the solution to make sense.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Torben 

Children