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

Curve.Intersect(Curve, IntersectionResultArray)

Method
Description:
Calculates the intersection of this curve with the specified curve and returns the intersection results.
Remarks:
The array of the intersection results contains one entry for each point where curves intersect. The following is the meaning of IntersectionResult members:
  • XYZPoint is the evaluated intersection point
  • UVPoint.U is the unnormalized parameter on this curve (use ComputeNormalizedParameter to compute the normalized value).
  • UVPoint.V is the unnormalized parameter on the specified curve (use ComputeNormalizedParameter to compute the normalized value).
Syntax
public SetComparisonResult Intersect(
	Curve curve,
	out IntersectionResultArray resultArray
)
Parameters
Parameter Type Description
curve Curve The specified curve to intersect with this curve.
resultArray IntersectionResultArray Provides more information about the intersection.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown when the specified curve is.
InvalidOperationException Thrown when failed to calculate the intersection.