Translate point along a normal

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.