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 | Classification | MFn type | Compatible function sets |
|---|
| closestPointOnMesh | node | geometry | 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 |
|---|
|
inputMatrix
(ix)
| matrix | NULL |     |
|
|
inMesh
(im)
| mesh | NULL |    |
|
|
inPosition
(ip)
| double3 | 0.0, 0.0, 0.0 |     |
|
| inPositionX
(ipx)
| distance (double) | 0.0cm |     | |
|
| inPositionY
(ipy)
| distance (double) | 0.0cm |     | |
|
| inPositionZ
(ipz)
| distance (double) | 0.0cm |     | |
|
|
result
(r)
| compound | n/a |   |
|
| position
(p)
| double3 | 0.0, 0.0, 0.0 |   | |
| positionX
(px)
| distance (double) | 0.0cm |   | |
| | positionY
(py)
| distance (double) | 0.0cm |   | |
| | positionZ
(pz)
| distance (double) | 0.0cm |   | |
|
|
| parameterU
(u)
| double | 0.0 |   | |
|
| parameterV
(v)
| double | 0.0 |   | |
|
| normal
(n)
| double3 | 0.0, 0.0, 0.0 |   | |
| normalX
(nx)
| distance (double) | 0.0cm |   | |
| | normalY
(ny)
| distance (double) | 0.0cm |   | |
| | normalZ
(nz)
| distance (double) | 0.0cm |   | |
|
|
| closestFaceIndex
(f)
| integer | -1 |   | |
|
| closestVertexIndex
(vt)
| integer | -1 |   | |
|