Class ExtractorService
java.lang.Object
io.github.mwttg.wavefront.extractor.ExtractorService
A function for transforming the content of the .obj file for later processing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileDataextractFrom(List<String> lines)Processes each line of the obj file and transforms it to an internal data structureFileData.
-
Method Details
-
extractFrom
Processes each line of the obj file and transforms it to an internal data structureFileData. The transformation depends on the token of the line of the .obj file. Only 3D data is supported. v - vertex vt - texture coordinate (uv) vn - normal f - face (only triangles are supported) Unknown token will get NOT processed.- Parameters:
lines- the lines of the obj file- Returns:
- the data structure
FileDatafor later processing
-