public final class DefaultMeshModel extends AbstractNamedModelElement implements MeshModel
MeshModel| Constructor and Description |
|---|
DefaultMeshModel()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMeshPrimitiveModel(MeshPrimitiveModel meshPrimitiveModel)
Add a
MeshPrimitiveModel |
java.util.List<MeshPrimitiveModel> |
getMeshPrimitiveModels()
Returns an unmodifiable view on the
MeshPrimitiveModel objects
that this mesh consists of |
float[] |
getWeights()
Returns a copy of the default morph target weights, or
null
if no default morph target weights have been defined |
void |
setWeights(float[] weights)
Set the default morph target weights to be a copy of the given array,
or
null if the given array is null. |
getName, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic void addMeshPrimitiveModel(MeshPrimitiveModel meshPrimitiveModel)
MeshPrimitiveModelmeshPrimitiveModel - The MeshPrimitiveModel to addpublic void setWeights(float[] weights)
null if the given array is null.weights - the default morph target weightspublic java.util.List<MeshPrimitiveModel> getMeshPrimitiveModels()
MeshModelMeshPrimitiveModel objects
that this mesh consists ofgetMeshPrimitiveModels in interface MeshModelMeshPrimitiveModel objectspublic float[] getWeights()
MeshModelnull
if no default morph target weights have been definedgetWeights in interface MeshModelCopyright © 2022. All Rights Reserved.