three-cad-viewer
    Preparing search index...

    Interface Shapes

    Hierarchical/grouped objects of type Shape

    interface Shapes {
        accuracy?: number | null;
        alpha?: number;
        bb?: BoundingBoxFlat | null;
        color?: string | string[];
        exploded?: boolean;
        format?: string;
        geomtype?: number;
        id: string;
        instances?: Record<string, number[]>;
        loc?: Location;
        material?: string;
        materials?: Record<string, string | MaterialAppearance | MaterialXMaterial>;
        name: string;
        normal_len?: number;
        parts?: Shapes[];
        renderback?: boolean;
        shape?: Shape | null;
        size?: number;
        state?: VisibilityState;
        subtype?: ShapeSubtype;
        texture?: Texture | null;
        type?: ShapeType;
        version: number;
        width?: number;
    }
    Index

    Properties

    accuracy?: number | null

    Accuracy

    alpha?: number

    Object alpha transparency (0-1)

    bb?: BoundingBoxFlat | null

    Bounding box

    color?: string | string[]

    RGB object color in CSS format or array of colors for multi-colored edges

    exploded?: boolean

    Whether the shape is from an exploded view (added during decomposition)

    format?: string

    Format identifier (e.g., "GDS" for GDSII format)

    geomtype?: number

    Geometry type (added during decomposition)

    id: string

    ID of the group (slash-separated path)

    instances?: Record<string, number[]>

    Instances data for GDS format

    loc?: Location

    Location: [position, quaternion]

    material?: string

    Material tag referencing materials table or built-in preset (leaf nodes)

    materials?: Record<string, string | MaterialAppearance | MaterialXMaterial>

    User-defined material library (root node). Values can be:

    • string: builtin preset reference (e.g., "builtin:car-paint")
    • MaterialXMaterial: threejs-materials format (detected by values key)
    • MaterialAppearance: preset with overrides (e.g., { builtin: "acrylic-clear", color: "#55a0e3" })
    name: string

    Group name

    normal_len?: number

    Normal length

    parts?: Shapes[]

    Children of the group

    renderback?: boolean

    Whether to render the back of the face

    shape?: Shape | null

    Shape object (null if parts != null)

    size?: number

    Vertex size in pixels (added during decomposition for vertex shapes)

    Visibility state [faces, edges]

    subtype?: ShapeSubtype

    Object subtype (only for type "shapes")

    texture?: Texture | null

    Encoded texture

    type?: ShapeType

    Object type

    version: number

    Protocol version

    width?: number

    Edge width in pixels (added during decomposition for edge shapes)