public class Mesh extends GlTFChildOfRootProperty
| Constructor and Description |
|---|
Mesh() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrimitives(MeshPrimitive element)
Add the given primitives.
|
void |
addWeights(java.lang.Float element)
Add the given weights.
|
java.util.List<MeshPrimitive> |
getPrimitives()
An array of primitives, each defining geometry to be rendered.
|
java.util.List<java.lang.Float> |
getWeights()
Array of weights to be applied to the morph targets.
|
void |
removePrimitives(MeshPrimitive element)
Remove the given primitives.
|
void |
removeWeights(java.lang.Float element)
Remove the given weights.
|
void |
setPrimitives(java.util.List<MeshPrimitive> primitives)
An array of primitives, each defining geometry to be rendered.
|
void |
setWeights(java.util.List<java.lang.Float> weights)
Array of weights to be applied to the morph targets.
|
getName, setNameaddExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setPrimitives(java.util.List<MeshPrimitive> primitives)
primitives - The primitives to setjava.lang.NullPointerException - If the given value is nulljava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<MeshPrimitive> getPrimitives()
public void addPrimitives(MeshPrimitive element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removePrimitives(MeshPrimitive element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void setWeights(java.util.List<java.lang.Float> weights)
weights - The weights to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<java.lang.Float> getWeights()
public void addWeights(java.lang.Float element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeWeights(java.lang.Float element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullCopyright © 2024. All Rights Reserved.