Curve.Intersect(Curve, CurveIntersectResultOption) Method

Calculates the intersection of this curve with the specified curve.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public CurveIntersectResult Intersect(
	Curve curve,
	CurveIntersectResultOption option
)

Parameters

curve  Curve
The specified curve to intersect with this curve.
option  CurveIntersectResultOption
Specifies the amount of information to return in the CurveIntersectResult.

Return Value

CurveIntersectResult
The CurveIntersectResult describing the geometric relationship of the two curves. This will contain at least a SetComparisonResult and, if requested, a list of CurveOverlapPoints specifying where the two curves overlap or intersect.

Exceptions

ExceptionCondition
ArgumentNullException The specified curve is null.
InvalidOperationException Failed to calculate the intersection.

Remarks

The CurveIntersectResultOption passed to this method determines the amount of information that will be calculated and returned:

See Also

Reference

Curve Class
Intersect Overload
Autodesk.Revit.DB Namespace