evaluate UV parameter on surface nearest to point
adamohern
Member, OS Professional Posts: 216 PRO
I have a vertex selection and a surface selection.
I want to find the normal direction of the surface selection at the point nearest the selected vertex, even if that vertex is not touching the surface.
I expect to use the evFaceTangentPlane().normal to find the direction, but evFaceTangentPlane() requires a surface parameter expressed as a UV coordinate.
Any hints appreciated!
I want to find the normal direction of the surface selection at the point nearest the selected vertex, even if that vertex is not touching the surface.
I expect to use the evFaceTangentPlane().normal to find the direction, but evFaceTangentPlane() requires a surface parameter expressed as a UV coordinate.
Any hints appreciated!
0
Best Answer
-
evDistance will give you the info (including the uv parameter) you needIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
Answers
-
evDistance will give you the info (including the uv parameter) you needIlya Baran \ VP, Architecture and FeatureScript \ Onshape Inc5
-
Ah, beautiful. Thanks! (Might be a good idea to make that more discoverable?)0
-
Would a link to evDistance from evFaceTangentPlane(s) doc do it or did you have something else in mind? @kevin_o_toole_1
Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0 -
I'm not a "real programmer", so reading docs is a stretch for me. I mostly just use the auto-complete in Ace to search for commands that sound like they'll do what I want.
Is it possible to add to the search terms in the editor so that searching for any of the words "nearest point on surface" would suggest evDistance? That kind of thing would help in a lot of places, actually.0

