Go to: Attributes.
This node returns the closest point of an (x,y,z) point (attribute
"inPosition") to a mesh (given by the attribute "inputMesh"). You
can query the closest (x,y,z) point (attribute "position") or you
can query the closest mesh (u,v) point (given by attributes
"parameterU" and "parameterV").
Node name |
Parents |
MFn type |
Compatible function sets |
closestPointOnMesh |
dependNode |
kClosestPointOnMesh |
kBase
kNamedObject
kDependencyNode
kClosestPointOnMesh |
Attributes (19)
closestFaceIndex, closestVertexIndex, inMesh, inPosition,
inPositionX, inPositionY, inPositionZ, inputMatrix, normal, normalX,
normalY, normalZ, parameterU, parameterV, position, positionX, positionY, positionZ, result
Long name (short name) |
Type |
Default |
Flags |
|
inMesh
(im ) |
mesh |
NULL |
![output output](../gfx/output.gif) ![input input](../gfx/input.gif) ![connectable connectable](../gfx/connectable.gif) |
|
inputMatrix
(ix ) |
matrix |
NULL |
![output output](../gfx/output.gif) ![input input](../gfx/input.gif) ![connectable connectable](../gfx/connectable.gif) ![storable storable](../gfx/storable.gif) |
|
inPosition
(ip ) |
double3 |
0.0, 0.0, 0.0 |
![output output](../gfx/output.gif) ![input input](../gfx/input.gif) ![connectable connectable](../gfx/connectable.gif) ![storable storable](../gfx/storable.gif) |
|
inPositionX
(ipx ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![input input](../gfx/input.gif) ![connectable connectable](../gfx/connectable.gif) ![storable storable](../gfx/storable.gif) |
|
|
inPositionY
(ipy ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![input input](../gfx/input.gif) ![connectable connectable](../gfx/connectable.gif) ![storable storable](../gfx/storable.gif) |
|
|
inPositionZ
(ipz ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![input input](../gfx/input.gif) ![connectable connectable](../gfx/connectable.gif) ![storable storable](../gfx/storable.gif) |
|
|
result
(r ) |
compound |
n/a |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
position
(p ) |
double3 |
0.0, 0.0, 0.0 |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
positionX
(px ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
positionY
(py ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
positionZ
(pz ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
|
parameterU
(u ) |
double |
0.0 |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
parameterV
(v ) |
double |
0.0 |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
normal
(n ) |
double3 |
0.0, 0.0, 0.0 |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
normalX
(nx ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
normalY
(ny ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
normalZ
(nz ) |
distance
(double) |
0.0cm |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
|
closestFaceIndex
(f ) |
integer |
-1 |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|
|
closestVertexIndex
(vt ) |
integer |
-1 |
![output output](../gfx/output.gif) ![connectable connectable](../gfx/connectable.gif) |
|