Inconsistent Intersection Results with BooleanOperationsUtils and Face.Intersect in Revit API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm facing a challenge with the Revit API and would like to share it to see if anyone can offer guidance or a solution. I encountered an issue when trying to check the intersection between two elements using two different approaches, but both are returning inconsistent results.
With BooleanOperationsUtils: When using the BooleanOperationsUtils.ExecuteBooleanOperation(solid1, solid2, BooleanOperationsType.Intersect) function, even when the two elements (solid1 and solid2) are physically distant from each other and clearly do not intersect, the function returns a volume greater than zero. This suggests that the elements are intersecting, which is incorrect given their current positions.
With Face.Intersect: Alternatively, I tried using the Face.Intersect(face) method for the same verification. Surprisingly, this method also presents a false positive, indicating intersection between elements that do not even touch, being very distant from each other.
I am looking for insights on the following:
- Has anyone faced similar issues when working with the Revit API using these functions?
- Are there specifics in using BooleanOperationsUtils or Face.Intersect that I might be overlooking?
- Are there any alternative approaches to check for the intersection between two solids or faces that do not intersect?
I greatly appreciate any help or guidance the community can offer in advance!