Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I try to detect if two walls (or two floors) are on each other (if they have a common face).
I think we should start by comparing the normals and they must be opposite, but after this I don't know what to do.
I've tried to use a FaceIntersectionFaceResult but i don't think it'll work with two faces on each other.
/// <summary>
/// Return True if the faces lies against each other, otherwise return False
/// </summary>
static public bool FaceOnFace(PlanarFace f1, PlanarFace f2)
{
if(f1.FaceNormal != -f2.FaceNormal) return false;
//FaceIntersectionFaceResult result = f1.Intersect(f2);
//if (result == FaceIntersectionFaceResult.Intersecting) return true;
return false;
}
If anyone have an idea, it would be awesome !
Tks,
Virone Lorenzo
Solved! Go to Solution.