primitive-geometry
Version:
Geometries for 3D rendering, including normals, UVs and cell indices (faces). Perfect if you want to supercharge your dependency folder... with 30KB of geometries.
17 lines (16 loc) • 381 B
TypeScript
/**
* Geometry definition without normals and UVs.
*/
export type BasicSimplicialComplex = {
positions: Float32Array;
cells: (Uint8Array | Uint16Array | Uint32Array);
};
/**
* Geometry definition.
*/
export type SimplicialComplex = {
positions: Float32Array;
normals: Float32Array;
uvs: Float32Array;
cells: (Uint8Array | Uint16Array | Uint32Array);
};