loadOBJ

Parses a list of strings representing the content of a Wavefront OBJ file and converts it into a map of polygon groups, where each key corresponds to a mesh name and the value is a list of polygons.

Return

a map where keys are mesh names and values are lists of polygons (IPolygon) corresponding to those meshes.

Parameters

lines

the lines of the OBJ file as a list of strings, with each string representing a line in the file.

fun loadOBJ(fileOrUrl: String): Map<String, List<IPolygon>>(source)

Loads an OBJ file as a Map of names to lists of Polygon. Use this method to access the loaded OBJ data from the CPU.