RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Face

Face.Intersect(Curve, IntersectionResultArray)

Method
Description:
Calculates the intersection of the specified curve with this face and returns the intersection results.
Remarks:
The array of the intersection results contains one entry for each point where this face and the curve intersect. The following is the meaning of IntersectionResult's members:
  • XYZPoint is the evaluated intersection point.
  • UVPoint is the intersection parameters on the face.
  • Parameter is the raw intersection parameter on the curve.
  • EdgeObject is the edge if the intersection happens to be near an edge of the face.
  • EdgeParameter is the parameter of the nearest point on the edge.
Syntax
Parameters
Parameter Type Description
curve Curve The specified curve to intersect with this face.
results IntersectionResultArray Provides more information about the intersection.
Return Value
Exceptions
Exception Condition
ArgumentNullException The curve is.
InvalidOperationException The intersection calculation fails.