@xeokit/xeokit-convert
Version:
JavaScript utilities to create .XKT files
12 lines (11 loc) • 512 B
TypeScript
/**
* Uses edge adjacency counts to identify if the given triangle mesh can be rendered with backface culling enabled.
*
* If all edges are connected to exactly two triangles, then the mesh will likely be a closed solid, and we can safely
* render it with backface culling enabled.
*
* Otherwise, the mesh is a surface, and we must render it with backface culling disabled.
*
* @private
*/
export function isTriangleMeshSolid(indices: any, positions: any, vertexIndexMapping: any, edges: any): boolean;