Nodes
avgNurbsSurfacePoints
Go to:
Related nodes. Attributes.
The avgNurbsSurfacePoints node computes the weighted average in
position and normal of one or more NURBS surface points.
The points could be specified as surface parameter (u,v) points
or surface control vertex(CV) indices (i,j).
The i-th surface point in XYZ space is computed by evaluating
the input NURBS surface connected to `sp[i].is` at
(sp[i].u, sp[i].v). The computed position and normal is weighted by
a factor of `sp[i].wt`. If the i-th surface point is given as CV indices,
the normal at the CV is computed as the normal at the greville point
corresponding to the CV.
The output attribute 'result' gives both the position and normal.
The output attribute 'position' gives the position. To get
only the weighted average position connect to attribute `r.p` on the node.
The output attribute 'normal' gives the normal. To get
only the weighted average normal connect to attribute `r.n` on the node.
Use this node to compute the center of mass one or more NURBS surface points.
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
avgNurbsSurfacePoints | abstractBaseCreate | deformer | kAvgNurbsSurfacePoints | kBase kNamedObject kDependencyNode kCreate kAvgNurbsSurfacePoints |
Related nodes
birailSrf, squareSrf, spBirailSrf, dpBirailSrf, mpBirailSrf, ffFilletSrf, closeSurface, explodeNurbsShell, boolean, intersectSurface, attachSurface, detachSurface, boundaryBase, boundary, nurbsSurface
Attributes (16)
cvIthIndex, cvJthIndex, inputSurface, normal, normalX, normalY, normalZ, parameterU, parameterV, position, positionX, positionY, positionZ, result, surfacePoint, weight
Long name (short name) | Type | Default | Flags |
---|
|
surfacePoint
(sp )
| compound | n/a | |
|
| inputSurface
(is )
| nurbsSurface | NULL | | |
|
|
| parameterU
(u )
| double | -1000.0 | | |
|
| parameterV
(v )
| double | -1000.0 | | |
|
| cvIthIndex
(ci )
| integer | -1 | | |
|
| cvJthIndex
(cj )
| integer | -1 | | |
|
|
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 | | |
|
|
| normal
(n )
| double3 | 0.0, 0.0, 1.0 | | |
| normalX
(nx )
| distance (double) | 0.0cm | | |
| | normalY
(ny )
| distance (double) | 0.0cm | | |
| | normalZ
(nz )
| distance (double) | 1.0cm | | |
|
|