Face analysis

Face analysis

There are several Face members which are tools suitable for use in geometric analysis.

Intersect()

The Intersect method computes the intersection between the face and a curve. It can be used in to identify:

  • The intersection point(s) between the two objects
  • The edge nearest the intersection point, if there is an edge close to this location
  • Curves totally coincident with a face
  • Curves and faces which do not intersect

Project()

The Project method projects a point on the input face, and returns information on the projection point, the distance to the face, and the nearest edge to the projection point.

Triangulate()

The Triangulate method obtains a triangular mesh approximating the face. There are two overloads to this method. The parameterless method is similar to Curve.Tessellate() in that the mesh’s points are accurate within the input tolerance used by Revit (slightly larger than 1/16”). The second Triangulate method accepts a level of detail as an argument ranging from 0 (coarse) to 1 (fine).