brepjs API Reference
    Preparing search index...

    Interface OperationRequest

    Request to execute a named CAD operation inside the worker.

    Shapes are transferred as BREP-serialized strings, not as live OpenCascade handles, because handles cannot cross the worker boundary.

    interface OperationRequest {
        id: string;
        operation: string;
        parameters: Readonly<Record<string, unknown>>;
        shapesBrep: readonly string[];
        type: "operation";
    }

    Hierarchy (View Summary)

    Index

    Properties

    id: string

    Unique identifier for correlating requests with responses.

    operation: string

    Name of the registered operation to invoke.

    parameters: Readonly<Record<string, unknown>>

    Arbitrary key/value parameters forwarded to the operation handler.

    shapesBrep: readonly string[]

    BREP-serialized input shapes.

    type: "operation"

    Discriminant indicating the kind of request.