Go to: Related nodes. Attributes.

The 'avgSurfacePoints' node is used to compute a weighted average in both position and normal of a given set of NURBS surface points.

The i-th point to be used in the averaging process is given by specifying the NURBS surface at the attribute 'is[i]', the parameter space location on the surface 'is[i]' at attributes ('u[i]', 'v[i]') and any associated weight with the point at 'w[i]'.

The attribute 'top' can be used to indicate that the specified (u,v) coordinates of the points are normalized. This may be used if the parameter space domain of the NURBS surfaces are not known in advance.

The computed postion and normal can be obtained using the output attributes 'r.p' and 'r.n' respectively.

Node nameParentsClassificationMFn typeCompatible function sets

Related nodes

ffBlendSrfObsolete, roundConstantRadius, extendSurface, offsetCos, alignSurface, bevel, insertKnotSurface

Attributes (14)

inputSurfaces, normal, normalX, normalY, normalZ, parameterU, parameterV, position, positionX, positionY, positionZ, result, turnOnPercentage, weight

Long name (short name)TypeDefaultFlags
inputSurfaces (is) nurbsSurfaceNULLarrayoutputinputconnectable
The input surfaces
weight (wt) double0.5arrayoutputinputconnectablestorable
The weighting factor for each point
parameterU (u) double0.0arrayoutputinputconnectablestorable
The U parameter value on surface
parameterV (v) double0.0arrayoutputinputconnectablestorable
The V parameter value on surface
turnOnPercentage (top) boolfalseoutputinputconnectablestorable
Whether the parameter is normalized (0,1) or not
result (r) compoundn/aoutputconnectable
All results - container holding position, normal
position (p) double30.0, 0.0, 0.0outputconnectable
Computed 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 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