Nearest Point on Mesh

https://user-images.githubusercontent.com/14288520/196508801-a7149ece-35a9-4f46-93fd-b3e4449fc2f2.png https://user-images.githubusercontent.com/14288520/196511961-63df5e7c-443a-43d3-a200-c29464f4334f.png https://user-images.githubusercontent.com/14288520/196512405-888ef444-d7e7-4741-a3c6-b85672d83bee.gif

Functionality

Finds the closest point in a specified mesh.

Inputs

Vertices, Faces: Base mesh for the search Points: Points to query Distance: Maximum query distance (only for Nearest in Range mode)

Parameters

  • Mode:

    • Nearest: Nearest point on the mesh surface

    • Nearest in range: Nearest points on the mesh within a range (one per face)

  • Flat Output: (only in Nearest in Range) Flattens the list of every vertex to have only a list for every inputted list.

  • Safe Check: (in N-Panel) When disabled polygon indices referring to unexisting points will crash Blender. Not performing this check makes node faster

Outputs

  • Location: Position of the closest point in the mesh

  • Normal: mesh normal at closets point

  • Index: Face index of the closest point

  • Distance: Distance from the queried point to the closest point

Examples

Used as skin-wrap modifier:

https://user-images.githubusercontent.com/14288520/196513979-581eaac9-02d5-4390-b0f4-93c27b3e5906.png
https://user-images.githubusercontent.com/14288520/196535057-49414fd8-f59f-4943-81a4-b9e2f5a6d78a.png https://user-images.githubusercontent.com/14288520/196535560-ef622a57-ecdb-4741-9410-3df82ee13348.gif

Determine which polygons are nearer than a distance:

https://user-images.githubusercontent.com/14288520/196544827-ba6f069d-3d8b-4786-80ae-468add944239.png https://user-images.githubusercontent.com/14288520/196545316-1acd076d-37d6-4b90-a182-7235c8eef2ce.gif

Placing objects on mesh:

https://user-images.githubusercontent.com/14288520/196542962-9ae63126-3ce8-4bc9-8c9b-662e3ef05b84.png https://user-images.githubusercontent.com/14288520/196543406-38217fb4-6f65-4740-88cb-56dc268af55b.gif