Contents
Class ObjParser
java.lang.Object
com.hypixel.hytale.builtin.buildertools.objimport.ObjParser
Parser for Wavefront OBJ files. Extracts vertices, UV coordinates, and triangulated faces.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents parsed mesh data from an OBJ file.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjParser.ObjMeshParses an OBJ file and returns the mesh data.
-
Method Details
-
parse
@Nonnull public static ObjParser.ObjMesh parse(@Nonnull Path path) throws IOException, ObjParser.ObjParseException Parses an OBJ file and returns the mesh data.- Parameters:
path- absolute path to the OBJ file- Returns:
- parsed mesh data
- Throws:
IOException- if the file cannot be readObjParser.ObjParseException- if the file format is invalid
-