For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Translate point along a normal

Madz T's picture
Forums: 

I have a point on a face and I've found the normal to that point. I want to translate that point along that normal to a given distance. How do I achieve this?

Thank you.

Shing Liu's picture

The demo code:

gp_Pnt aPointOnFace;

gp_Dir aNormalDir;

Standard_Real aDistance;

aPointOnFace.Translate(aNormalDir.XYZ() * aDistance);

Madz T's picture

Thanks eryar. Just what I was looking for.