Bitbybit Docs
    Preparing search index...

    Interface AssemblyNodeDef

    interface AssemblyNodeDef {
        id: string;
        type: "assembly" | "instance";
        name: string;
        parentId?: string;
        partId?: string;
        translation?: Point3;
        rotation?: Vector3;
        scale?: number;
        matrix?: any;
        colorRgba?: ColorRGBA;
    }
    Index

    Properties

    id: string

    Unique identifier for this node

    type: "assembly" | "instance"

    Node type: 'assembly' for containers, 'instance' for part references

    name: string

    Display name for this node

    parentId?: string

    Parent node ID (undefined = root level)

    partId?: string

    Part ID to instance (required for type='instance')

    translation?: Point3

    Translation as [x, y, z]

    rotation?: Vector3

    Rotation as [rx, ry, rz] Euler angles in degrees (applied Rx * Ry * Rz)

    scale?: number

    Uniform scale factor (1.0 = no scale)

    matrix?: any

    Optional placement matrix (column-major, 16 numbers) or an ordered list of matrices applied first-to-last. When set, it fully defines the node's placement and takes precedence over translation/rotation/scale.

    colorRgba?: ColorRGBA

    Optional color override for this instance