brepjs API Reference
    Preparing search index...

    Interface ShapeOptions

    Configuration for a single shape within a functional assembly export.

    interface ShapeOptions {
        alpha?: number;
        color?: string;
        name?: string;
        shape: AnyShape;
    }
    Index

    Properties

    alpha?: number

    Opacity from 0 (transparent) to 1 (opaque). Defaults to 1.

    color?: string

    Hex color string (e.g. '#ff0000'). Defaults to red.

    name?: string

    Display name for the shape node. Auto-generated UUID if omitted.

    shape: AnyShape

    The branded shape to include in the assembly.