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, scaleMass
getProperty, getPropertyHost, getPropertyInfo, hasProperty, isWritable, scan, setPropertyHost, setPropertyInfo, write, writeItems
public static final double DEFAULT_SIGMA
public static PropertyList myProps
public GaussianWeighting()
public GaussianWeighting(double sigma)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class CompositePropertyBase
public double getSigma()
public void setSigma(double sigma)
public void scaleDistance(double s)
ScalableUnits
scaleDistance
in interface ScalableUnits
scaleDistance
in class SkinWeightingFunction
s
- 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 SkinWeightingFunction
weights
- returns the computed weightspos
- position of the point to be skinnednearestPnts
- nearest point information for each of the
master bodies