public class InverseSquareWeighting extends SkinWeightingFunction
myProps
Constructor and Description |
---|
InverseSquareWeighting() |
Modifier and Type | Method and Description |
---|---|
void |
computeWeights(double[] weights,
Point3d pos,
SkinMeshBody.NearestPoint[] nearestPnts)
Computes skinning connection weights for a point located
at
pos , given information about the nearest points
on each of the master bodies. |
clone, getSubClasses, propertyChanged, registerSubclass, scaleDistance, scaleMass
getAllPropertyInfo, getProperty, getPropertyHost, getPropertyInfo, hasProperty, isWritable, scan, setPropertyHost, setPropertyInfo, write, writeItems
public void computeWeights(double[] weights, Point3d pos, SkinMeshBody.NearestPoint[] nearestPnts)
pos
, given information about the nearest points
on each of the master bodies.
The weights are returned in weights
. There is
one weight for each master bodies, and so weights
and nearestPnts
have the same length.
computeWeights
in class SkinWeightingFunction
weights
- returns the computed weightspos
- position of the point to be skinnednearestPnts
- nearest point information for each of the
master bodies