Nodes
leastSquaresModifier
Go to:
				Attributes. 
 The 'leastSquaresModifier' node modifies the control vertices
 of an input NURBS object such that the object passes through the
 XYZ position or gets as close as possible to the XYZ position
 of one or more specified point constraints. Only NURBS curves
 can be modified.
 
 For a NURBS curve, the i-th point constraint 'pc[i]' is specified
 by a 3D point in space ('pc[i].ppx', 'pc[i].ppy', 'pc[i].ppz'),
 a parameter space location 'pc[i].pcu' on the curve and  a weight
 'pc[i].wt'.
 
 For any given point constraint, only the control vertices on
 the curve which have a influence at the parameter space location
 are modified. The weight of the constraint determines how strong an
 influence the point constraint is. So, for two point constraints
 defined at the same parameter space location, the one with a
 greater weight will have more of an influence on the curve.
 
 The user may chooses to apply a transformation on the computed
 result using the attribute 'wto'.
 
 caution: In general, the curve cannot be modified always to
 passes through all the positions.
| Node name | Parents | Classification | MFn type | Compatible function sets | 
|---|
| leastSquaresModifier | abstractBaseCreate | math | kLeastSquares | kBase kNamedObject
 kDependencyNode
 kLeastSquares
 | 
Attributes (19)
attributeCollection, inputCache, inputNurbsObject, objectModifier, outputNurbsObject, pointConstraint, pointConstraintU, pointConstraintUVW, pointConstraintV, pointConstraintW, pointPositionX, pointPositionXYZ, pointPositionY, pointPositionZ, pointSymbolicIndex, pointWeight, resetModifier, updatePointModifier, worldSpaceToObjectSpace
| Long name (short name) | Type | Default | Flags | 
|---|
|  | 
| attributeCollection(ac) | compound | n/a |    | 
|
| |  |  | inputNurbsObject(ino) | Generic | n/a |    |  |
 | 
| |  |  | worldSpaceToObjectSpace(wto) | matrix | identity |     |  |
 | 
| |  |  | pointConstraint(pc) | compound | n/a |     |  |
 | |  |  | pointPositionXYZ(xyz) | double3 |  |    |  |
 | |  |  | pointPositionX(ppx) | distance (double) | -100000.0cm |    |  |
 |  | |  |  | pointPositionY(ppy) | distance (double) | -100000.0cm |    |  |
 |  | |  |  | pointPositionZ(ppz) | distance (double) | -100000.0cm |    |  |
 | 
 |  | |  |  | pointConstraintUVW(puv) | double3 |  |     |  |
 | |  |  | pointConstraintU(pcu) | double | -100000.0 |      |  |
 |  | |  |  | pointConstraintV(pcv) | double | -100000.0 |      |  |
 |  | |  |  | pointConstraintW(pcw) | double | -100000.0 |      |  |
 | 
 |  | |  |  | pointWeight(pw) | double | 1.0 |     |  |
 | 
 | 
| |  |  | outputNurbsObject(ono) | Generic | NULL |   |  |
 | 
|  | 
| objectModifier(om) | lsqModifier | NULL |   | 
|
|  | 
| resetModifier(rm) | bool | true |   | 
|
|  | 
| updatePointModifier(upm) | bool | true |   | 
|
|  | 
| inputCache(ipc) | Generic | n/a |   | 
|
|  | 
| pointSymbolicIndex(psi) | compound | NULL |   | 
|