crashcat docs
    Preparing search index...

    Type Alias TriangleMeshShapeSettings

    type TriangleMeshShapeSettings = {
        activeEdgeCosThresholdAngle?: number;
        bvhMaxLeafTris?: number;
        bvhSplitStrategy?: triangleMeshBvh.BvhSplitStrategy;
        degenerateTolerance?: number;
        indices: number[];
        materialIndices?: number[];
        positions: number[];
    }
    Index

    Properties

    activeEdgeCosThresholdAngle?: number

    cosine threshold for active edge determination. edges with cos(dihedral_angle) >= this value are considered smooth/inactive. default: cos(5°) = 0.996195 set to -1.0 to disable active edge determination (all edges active) set to 1.0 to make all edges inactive

    bvhMaxLeafTris?: number

    maximum triangles per leaf node in the bvh

    bvh split strategy

    degenerateTolerance?: number

    degenerate tolerance for triangles

    indices: number[]

    flat array of triangle vertex indices [i1, i2, i3, i4, i5, i6, ...]

    materialIndices?: number[]

    Optional per-triangle material indices. Length should match number of triangles (indices.length / 3). Default: -1 for all triangles (no material).

    positions: number[]

    flat array of vertex positions [x1, y1, z1, x2, y2, z2, ...]