Mesh Distance node

Left Toolbar > 3D icon 3D Nodes > Mesh Position icon * Mesh Distance Node *

The Mesh Distance node renders the distance from the pixel in the mesh to a geometric entity in the 3D space. There are 4 geometric entities defined by points: Point, Line, Segment and Plane. The distance is rendered as a monochromatic value defined by the minimum distance (black) and the range (white).

models Models Model

output
Mesh Distance Img

Mesh Distance Img

Procedure

To create a Mesh Distance image:

  1. Load one of more model in the Scene Window.

  2. On the left toolbar choose 3D Nodes > Mesh Distance. 3D icon > Mesh Distance icon

  3. Drag the Mesh Distance icon into the Node Graph.

    Mesh Distance node

  4. Connect the output socket into the Img socket in the Mesh Distance node.

  5. Adjust the attributes of the Mesh Distance node to modify it.

Outputs

Img
A monochormatic image with the distance from the pixel to the 3D entity.

Attributes Panel

UVWMesh attributes

Position X Position X of the output image.

Position Y Position Y of the output image.

Size X Size X of the output image.

Size Y Size Y of the output image.

Method Defines the geometric entity.
to point a: Distance from the pixel in the mesh to the Point A.
to point b: Distance from the pixel in the mesh to the Point B.
to line: Distance from the pixel in the mesh to the line defined by points A and B.
to segment: Distance from the pixel in the mesh to the line segment defined by points A and B.
to plane: Distance from the pixel in the mesh to the plane defined by point A and the normal B - A.

Point A X The x coordinate of Point A.

Point A Y The y coordinate of Point A.

Point A Z The z coordinate of Point A.

Point B X The x coordinate of Point B.

Point B Y The y coordinate of Point B.

Point B Z The y coordinate of Point B.

Radius Defines the minimum value. Any pixel with a distance to the entity lower than the radius will be rendered black.

Falloff Defines the maximum value as radius + falloff. Any pixel with a distance to the entity higher than the radius plus the falloff value will be rendered black.

Samples

The following examples were rendered using a 200 x 200 Plane model, and two points at A (-50,-50,0) and B (50, 50, 0).

to point a:
Point A

to point b:
Point A

to line:
Point A

to segment:
Point A

to plane:
Point A