Revit_Toolkit
Revit_Toolkit copied to clipboard
Unify intersect methods
Description:
Currently we have overlaping methods for checking intersection between elements stored in three different files:
-
DoesIntersect -
IsInRange -
IsContaining
It would be good to merge them and store in one place.
@michal-pekacki takeaways from our conversation about improvements of DoesIntersect method:
- instead of casting 3 rays in global X, Y, Z, cast one ray in direction of solids centroid (if point within tolerance from centroid, then cast in arbitrary direction, global X?)
- add
acceptOnEdgemethod parameter similar to Geometry_Engine methods, with the following:
if (acceptOnEdge)
{
//iterate over faces and check if dist within tolerance
}