How to find the Surface Normal at a given Coordinates

Abhijith Rajan
Abhijith Rajan Member, Employee Posts: 10
Name Dropper First Anniversary First Answer First Comment
✭✭✭
edited November 8 in 3D Design

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

@Martin Husek