Home Technical Talk

Maxscript - Move Vertex to nearest Edge of Reference Geometry

EliderDeli
node
Hola Folks :),
I want to wirte a Script where an Object moves his Vertices (selected) to the nearest Edges (per Vertex) of an Reference Geometry. 
Maybe someone knows the easyest way to calculate the position where the Vertice has to move to find the nearest Edge. My Idear so far was to catch the two nearest Vertices. Then construct a line. And find with Math the shortest Distance. But somehow I dont get it working.
Any help would be great
:) Greetings EliderDeli

Sign In or Register to comment.