IFClite TypeScript API
    Preparing search index...

    Class MeshOutlineJs

    A mesh's projected footprint outline.

    Contours are closed rings in drawing 2D space (same basis as projectTo2D in @ifc-lite/drawing-2d), WITHOUT a duplicated closing vertex. axisMin/axisMax are the element's extent along the cut axis (world units, not flip-adjusted) for band classification on the TS side.

    Index
    axisMax: number

    Element extent (max) along the cut axis, world units.

    axisMin: number

    Element extent (min) along the cut axis, world units.

    contourCount: number

    Number of boundary rings (outer + holes).

    • Returns void

    • Ring i as a flat [u0, v0, u1, v1, …] array, or undefined if out of range. The ring is closed implicitly (connect the last point to the first).

      Parameters

      • index: number

      Returns Float32Array<ArrayBufferLike> | undefined

    • Returns void