Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.mesh.parseObj

S๐Ÿท๏ธ Mesh

Part of StarfallEx namespace

๐Ÿ”— External
mesh.parseObj(obj, threaded, triangulate)
View on GitHub|lua/starfall/libs_sh/mesh.lua:714
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Parses obj data into a table of vertices, normals, texture coordinates, colors, and tangents

Parameters

NameTypeDescription
objstringThe obj data
threaded?booleanOptional bool, use threading object that can be used to load the mesh over time to prevent hitting quota limit
triangulate?booleanWhether to triangulate the faces

Returns

TypeDescription
tableTable 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
tableTable of Mesh data. {positions = positionData, normals = normalData, texturecoords = texturecoordData, faces = faceData}

Examples

No examples available.

Used In

No usages found in the codebase.