**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