How to find the Surface Normal at a given Coordinates
Abhijith Rajan
Member, Employee Posts: 10
✭✭✭
You may try using the below script
userFace = Selection.Create(GetRootPart()).ConvertToFaces().Faces[0]
userPoint = Point.Create(MM(10), MM(10), MM(10))
projection = userFace.Shape.ProjectPoint(userPoint) # projected based on shortest distance
projectedPoint = projection.Point
projectedNormal = projection.Normal
print projectedNormal
Tagged:
0