public class ObjGltfModelCreator
extends java.lang.Object
GltfModel objects from OBJ files| Constructor and Description |
|---|
ObjGltfModelCreator()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GltfModel |
create(java.net.URI objUri)
Create a
GltfModel from the OBJ file with the given URI |
void |
setAssigningRandomColorsToParts(boolean assigningRandomColorsToParts)
For testing and debugging: Assign random colors to the parts that
are created when splitting the OBJ data
|
void |
setIndicesComponentType(int indicesComponentType)
Set the component type for the indices of the
MeshPrimitiveModel
objects |
void |
setOneMeshPerPrimitive(boolean oneMeshPerPrimitive)
Set whether each mesh primitive should be in its own mesh,
assigned to its own node
|
void |
setTechniqueBasedMaterials(boolean techniqueBasedMaterials)
Set whether technique-based (glTF 1.0) materials should be created
|
public void setTechniqueBasedMaterials(boolean techniqueBasedMaterials)
techniqueBasedMaterials - Whether technique-based materials should
be createdpublic void setIndicesComponentType(int indicesComponentType)
MeshPrimitiveModel
objectsindicesComponentType - The component typejava.lang.IllegalArgumentException - If the given type is not
GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT or GL_UNSIGNED_INTpublic void setAssigningRandomColorsToParts(boolean assigningRandomColorsToParts)
assigningRandomColorsToParts - The flagpublic void setOneMeshPerPrimitive(boolean oneMeshPerPrimitive)
oneMeshPerPrimitive - The flagCopyright © 2022. All Rights Reserved.