📜  从曲线 rhinoscriptsyntax 的点绘制垂直线 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:32.836000             🧑  作者: Mango

代码示例1
curve = rs.GetObject()
points = rs.GetObjects()
length = 50
for point in points:
    pt = rs.coerce3dpoint(point)
    param = rs.CurveClosestPoint(curve, pt)
    normal = rs.CurveNormal(curve)
    tangent = rs.CurveTangent(curve, param)
    curveNormal = rs.VectorCrossProduct(normal, tangent)
    rs.AddLine(pt, pt - curveNormal * length)