Message 1 of 5
Intersection face with line in front of door

Not applicable
05-08-2018
01:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to find the intersection of the line with the face. But sometimes the line gets in the door and therefore there is no crossing. I find the coordinates of the starting point:
BoundingBoxUV bboxUV = face1.GetBoundingBox(); UV center = (bboxUV.Max + bboxUV.Min) / 2.0; location = faceinlist.Evaluate(center); XYZ pt2 = location + 0.82 * normal; Line line = Line.CreateBound(location, pt2);
SetComparisonResult intersectionPoint = face2.Intersect(line); if (intersectionPoint != SetComparisonResult.Disjoint) {
How to provide for such cases when the doors are in the middle? I guess that it is necessary to find several points in different places, but I did not succeed