Revit_Toolkit icon indicating copy to clipboard operation
Revit_Toolkit copied to clipboard

Unify intersect methods

Open michal-pekacki opened this issue 2 years ago • 1 comments

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 avatar Mar 27 '24 12:03 michal-pekacki

@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 acceptOnEdge method parameter similar to Geometry_Engine methods, with the following:
            if (acceptOnEdge)
            {
                //iterate over faces and check if dist within tolerance
            }

pawelbaran avatar Feb 04 '25 09:02 pawelbaran