public class MeshPrimitive extends GlTFProperty
| Constructor and Description |
|---|
MeshPrimitive() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(java.lang.String key,
java.lang.Integer value)
Add the given attributes.
|
void |
addTargets(java.util.Map<java.lang.String,java.lang.Integer> element)
Add the given targets.
|
java.lang.Integer |
defaultMode()
Returns the default value of the mode
|
java.util.Map<java.lang.String,java.lang.Integer> |
getAttributes()
A plain JSON object, where each key corresponds to a mesh attribute
semantic and each value is the index of the accessor containing
attribute's data.
|
java.lang.Integer |
getIndices()
The index of the accessor that contains the vertex indices.
|
java.lang.Integer |
getMaterial()
The index of the material to apply to this primitive when rendering.
|
java.lang.Integer |
getMode()
The topology type of primitives to render.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Integer>> |
getTargets()
An array of morph targets.
|
void |
removeAttributes(java.lang.String key)
Remove the given attributes.
|
void |
removeTargets(java.util.Map<java.lang.String,java.lang.Integer> element)
Remove the given targets.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.Integer> attributes)
A plain JSON object, where each key corresponds to a mesh attribute
semantic and each value is the index of the accessor containing
attribute's data.
|
void |
setIndices(java.lang.Integer indices)
The index of the accessor that contains the vertex indices.
|
void |
setMaterial(java.lang.Integer material)
The index of the material to apply to this primitive when rendering.
|
void |
setMode(java.lang.Integer mode)
The topology type of primitives to render.
|
void |
setTargets(java.util.List<java.util.Map<java.lang.String,java.lang.Integer>> targets)
An array of morph targets.
|
addExtensions, getExtensions, getExtras, removeExtensions, setExtensions, setExtraspublic void setAttributes(java.util.Map<java.lang.String,java.lang.Integer> attributes)
attributes - The attributes to setjava.lang.NullPointerException - If the given value is nullpublic java.util.Map<java.lang.String,java.lang.Integer> getAttributes()
public void addAttributes(java.lang.String key,
java.lang.Integer value)
key - The keyvalue - The valuejava.lang.NullPointerException - If the given key or value is nullpublic void removeAttributes(java.lang.String key)
key - The keyjava.lang.NullPointerException - If the given key is nullpublic void setIndices(java.lang.Integer indices)
indices - The indices to setpublic java.lang.Integer getIndices()
public void setMaterial(java.lang.Integer material)
material - The material to setpublic java.lang.Integer getMaterial()
public void setMode(java.lang.Integer mode)
mode - The mode to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.lang.Integer getMode()
public java.lang.Integer defaultMode()
getMode()public void setTargets(java.util.List<java.util.Map<java.lang.String,java.lang.Integer>> targets)
targets - The targets to setjava.lang.IllegalArgumentException - If the given value does not meet
the given constraintspublic java.util.List<java.util.Map<java.lang.String,java.lang.Integer>> getTargets()
public void addTargets(java.util.Map<java.lang.String,java.lang.Integer> element)
element - The elementjava.lang.NullPointerException - If the given element is nullpublic void removeTargets(java.util.Map<java.lang.String,java.lang.Integer> element)
null.element - The elementjava.lang.NullPointerException - If the given element is nullCopyright © 2024. All Rights Reserved.