java.lang.Object
com.marginallyclever.ro3.mesh.load.LoadOBJ
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMaterialPath(String absolutePath) Get the path to the material fileString[]booleanhasMaterial(String absolutePath) Does this loader find a material file near the mesh file?voidload(BufferedInputStream inputStream, Mesh model) Load data from stream
-
Constructor Details
-
LoadOBJ
public LoadOBJ()
-
-
Method Details
-
getEnglishName
- Specified by:
getEnglishNamein interfaceMeshLoader
-
getValidExtensions
- Specified by:
getValidExtensionsin interfaceMeshLoader
-
load
Description copied from interface:MeshLoaderLoad data from stream- Specified by:
loadin 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:
hasMaterialin 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:
getMaterialPathin interfaceMeshLoader- Parameters:
absolutePath- path to mesh file- Returns:
- path to material file or null.
-