revit二次开发心得05——关于API提供的两线相交方法的翻译和理解

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是曲线的一个未被归一化的参数)

  • 17
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值