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 nameParentsClassificationMFn typeCompatible function sets
avgNurbsSurfacePointsabstractBaseCreatedeformerkAvgNurbsSurfacePointskBase
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)TypeDefaultFlags
surfacePoint (sp) compoundn/aarrayoutputinputstorable
Place Holder housing a surface point information.
inputSurface (is) nurbsSurfaceNULLoutputinputconnectable
The input surface
weight (wt) double0.5outputinputconnectablestorable
The weighting factor for point.
parameterU (u) double-1000.0outputinputconnectablestorable
The U parameter value on surface
parameterV (v) double-1000.0outputinputconnectablestorable
The V parameter value on surface
cvIthIndex (ci) integer-1outputinputconnectablestorable
The index for the ith cv index
cvJthIndex (cj) integer-1outputinputconnectablestorable
The index for the jth cv index
result (r) compoundn/aoutputconnectable
All results - container holding weighted position, normal
position (p) double30.0, 0.0, 0.0outputconnectable
Computed weighted position (in result compound)
positionX (px) distance (double)0.0cmoutputconnectable
Computed X value of position
positionY (py) distance (double)0.0cmoutputconnectable
Computed Y value of position
positionZ (pz) distance (double)0.0cmoutputconnectable
Computed Z value of position
normal (n) double30.0, 0.0, 1.0outputconnectable
Computed weighted normal (in result compound)
normalX (nx) distance (double)0.0cmoutputconnectable
Computed X value of normal
normalY (ny) distance (double)0.0cmoutputconnectable
Computed Y value of normal
normalZ (nz) distance (double)1.0cmoutputconnectable
Computed Z value of normal