how to write a perpendicular equation with given points
Sorry that you have to do math as will.
how to write a perpendicular equation with given points
Sorry that you have to do math as will.
draw perpendicular line from the point of curve rhinoscriptsyntax
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us