distance along face normal

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
sliptonic
Veteran
Posts: 3457
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

distance along face normal

Post by sliptonic »

Math-clueless guy here:
I have a planar face and I want to know the distance along the face normal to the origin. How do I find this?
edwilliams16
Veteran
Posts: 3109
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: distance along face normal

Post by edwilliams16 »

sliptonic wrote: Tue Aug 16, 2022 7:13 pm Math-clueless guy here:
I have a planar face and I want to know the distance along the face normal to the origin. How do I find this?

Code: Select all

face.Surface.Position.dot(face.Surface.Axis)
Post Reply