how to project a point to surface?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
silent_missile
Posts: 16
Joined: Mon Jul 29, 2019 11:07 pm

how to project a point to surface?

Post by silent_missile »

I have an existing Part.BSplineSurface object, and a Part.Point object, now I want to project the point on to the surface, is there any API can do this?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: how to project a point to surface?

Post by microelly2 »

f is the face
e is an edge
d is a vector

Code: Select all

shape=f.makeParallelProjection(e,d)
shape=f.makePerspectiveProjection(e,d)
Post Reply