how to project a point to surface?

Need help, or want to share a macro? Post here!
silent_missile
Posts: 16
Joined: Mon Jul 29, 2019 11:07 pm

how to project a point to surface?

Postby silent_missile » Fri Dec 20, 2019 1:48 am

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
Posts: 4626
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: how to project a point to surface?

Postby microelly2 » Fri Dec 20, 2019 5:43 am

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)