Part of StarfallEx namespace
๐ External
mesh.parseObj(obj, threaded, triangulate)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Parses obj data into a table of vertices, normals, texture coordinates, colors, and tangents
Parameters
| Name | Type | Description |
|---|---|---|
obj | string | The obj data |
threaded? | boolean | Optional bool, use threading object that can be used to load the mesh over time to prevent hitting quota limit |
triangulate? | boolean | Whether to triangulate the faces |
Returns
| Type | Description |
|---|---|
table | Table of Mesh tables. The keys correspond to the objs object names, and the values are tables of vertices that can be passed to mesh.createFromTable |
table | Table of Mesh data. {positions = positionData, normals = normalData, texturecoords = texturecoordData, faces = faceData} |
Examples
No examples available.
Used In
No usages found in the codebase.