java.lang.Object
com.marginallyclever.ro3.mesh.load.LoadOBJ
- All Implemented Interfaces:
MeshLoader
LoadOBJ
is a MeshLoader
that loads a
OBJ files into a Mesh
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMaterialPath
(String absolutePath) Get the path to the material fileString[]
boolean
hasMaterial
(String absolutePath) Does this loader find a material file near the mesh file?void
load
(BufferedInputStream inputStream, Mesh model) Load data from stream
-
Constructor Details
-
LoadOBJ
public LoadOBJ()
-
-
Method Details
-
getEnglishName
- Specified by:
getEnglishName
in interfaceMeshLoader
-
getValidExtensions
- Specified by:
getValidExtensions
in interfaceMeshLoader
-
load
Description copied from interface:MeshLoader
Load data from stream- Specified by:
load
in interfaceMeshLoader
- Parameters:
inputStream
- source of datamodel
- mesh into which data will be loaded- Throws:
Exception
- if something goes wrong
-
hasMaterial
Does this loader find a material file near the mesh file?- Specified by:
hasMaterial
in interfaceMeshLoader
- Parameters:
absolutePath
- path to mesh file- Returns:
- true if a material file is found
-
getMaterialPath
Get the path to the material file- Specified by:
getMaterialPath
in interfaceMeshLoader
- Parameters:
absolutePath
- path to mesh file- Returns:
- path to material file or null.
-