public class GaussianWeighting extends SkinWeightingFunction
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_SIGMA |
static PropertyList |
myProps |
| Constructor and Description |
|---|
GaussianWeighting() |
GaussianWeighting(double sigma) |
| 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. |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getSigma() |
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
setSigma(double sigma) |
clone, getSubClasses, propertyChanged, registerSubclass, scaleMassgetProperty, getPropertyHost, getPropertyInfo, hasProperty, isWritable, scan, setPropertyHost, setPropertyInfo, write, writeItemspublic static final double DEFAULT_SIGMA
public static PropertyList myProps
public GaussianWeighting()
public GaussianWeighting(double sigma)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class CompositePropertyBasepublic double getSigma()
public void setSigma(double sigma)
public void scaleDistance(double s)
ScalableUnitsscaleDistance in interface ScalableUnitsscaleDistance in class SkinWeightingFunctions - scaling factorpublic 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 SkinWeightingFunctionweights - returns the computed weightspos - position of the point to be skinnednearestPnts - nearest point information for each of the
master bodies