Type Alias DucModelElement

DucModelElement: _DucElementBase & {
    code: string | null;
    fileIds: ExternalFileId[];
    modelType: string | null;
    thumbnail: Uint8Array | null;
    type: "model";
    viewerState: Viewer3DState | null;
}

An element that embeds a 3D model on the 2D canvas. It includes its own 3D view and display controls.

Type declaration

  • code: string | null

    Defines the source code of the model using build123d python code

  • fileIds: ExternalFileId[]

    Possibly connected external files, such as STEP, STL, DXF, etc.

  • modelType: string | null

    The specific type of 3D model, e.g., "PYTHON", "DXF", "IFC", "STL", "OBJ", "STEP", etc.

  • thumbnail: Uint8Array | null

    The last known image thumbnail of the 3D model for quick rendering on the canvas

  • type: "model"
  • viewerState: Viewer3DState | null

    The last known 3D viewer state for the model