Parameters
curve
Type: Autodesk.Revit.DB..::..Curve
The specified curve to intersect with this curve.
resultArray
Type: Autodesk.Revit.DB..::..IntersectionResultArray%
Provides more information about the intersection.
Return Value
- SetComparisonResult.Overlap - One or more intersections were encountered. The output argument has the details.(遇到有一个或多个交叉点。输出的参数会包含有细节)
- SetComparisonResult.Subset - The inputs are parallel lines with only one common intersection point, or the curve used to invoke the intersection check is a line entirely within the unbound line passed as argument curve. If the former, the output argument has the details of the intersection point.(子集。这个输出结果说明是有且仅有一个共同交叉点的平行线,或者是发起交叉检查的线条完全存在于被当做参数导入的曲线里面[为方便理解,见下面的代码]。如果是前者,输出的参数会有交叉点的细节)
-
line_A.Intersect(line_B); //为了方便理解,A线就是发起交叉检查的线条,B线就是被当做参数导入的线条。 就是说A线在B线里面
- SetComparisonResult.Superset - The input curve is entirely within the unbound line used to invoke the intersection check.(超集。这个输出结果说明被当做参数导入的线条完全存在于发起交叉检查的曲线里面【可理解成A线大于B线】)
- SetComparisonResult.Disjoint - There is no intersection found between the two curves.(不相交,两条曲线不存在有交叉点)
- SetComparisonResult.Equal - The two curves are identical(相等,两条曲线完全相同).
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).(U是曲线的一个未被归一化的参数)
- UVPoint.V is the unnormalized parameter on the specified curve (use ComputeNormalizedParameter to compute the normalized value).(V是曲线的一个未被归一化的参数)