MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / makeModel

Function makeModel

src/models/index.ts:57–61  ·  view source on GitHub ↗
(handle: number)

Source from the content-addressed store, hash-verified

55declare function bloom_get_model_bounds_max_z(handle: number): number;
56
57function makeModel(handle: number): Model {
58 const mc = bloom_get_model_mesh_count(handle);
59 const matc = bloom_get_model_material_count(handle);
60 return { handle, meshCount: mc, materialCount: matc, transform: [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0] };
61}
62
63// OBJ parser (pure TypeScript)
64function parseOBJ(text: string): { vertices: number[]; indices: number[] } | null {

Callers 8

loadModelFunction · 0.85
genMeshSplineRibbonFunction · 0.85
genMeshCubeFunction · 0.85
genMeshHeightmapFunction · 0.85
createMeshFunction · 0.85
createMeshExplicitFunction · 0.85
loadModelAsyncFunction · 0.85
commitModelFunction · 0.85

Calls 2

Tested by

no test coverage detected