evaluate UV parameter on surface nearest to point

adamohern
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!

Best Answer

Answers

  • adamohern
    adamohern Member, OS Professional Posts: 216 PRO
    Ah, beautiful. Thanks! (Might be a good idea to make that more discoverable?)
  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,279 image
    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 Inc
  • adamohern
    adamohern Member, OS Professional Posts: 216 PRO
    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.