brepjs API Reference
    Preparing search index...

    Interface InstancedShape<D>

    One source shape replicated across N placements. Not a kernel-backed shape (no .wrapped) — an app-level container that owns the single source handle.

    interface InstancedShape<D extends Dimension = "3D"> {
        __instanced: true;
        grid?: GridSpec;
        placements: readonly Matrix4x4[];
        source: AnyShape<D>;
        "[dispose]"(): void;
    }

    Type Parameters

    Hierarchy

    • Disposable
      • InstancedShape
    Index

    Properties

    __instanced: true
    grid?: GridSpec

    Present when built by instanceGrid — enables the gridPattern fuse path.

    placements: readonly Matrix4x4[]

    Per-instance world transforms (row-major 4x4).

    source: AnyShape<D>

    The single shared source shape (owned — disposed with this container).

    Methods