Bitbybit Docs
    Preparing search index...

    Interface DesignScriptFeature (Models.OCCT)

    Runs a script on the document's geometry: the code of the asset script names, pinned by its SHA-256, takes params as an operation does ({ "body": "<id>" } passes a body's shape and { "expr": "<expression>" } a number), and { "faces": <face reference> } and { "edges": <edge reference> } pass the indexes a reference finds on the body it names. It returns a shape and the roles its faces take, such as { shape, roles: { tooth: [3, 4] } }, which name those faces as other features' roles do; every other face is named face. With body the result goes on as that body, otherwise it starts a body named by the feature's id. A kernel runs no code: a build lists the feature under pending, and the caller that runs the script builds again with its outcome.

    interface DesignScriptFeature {
        extras?: unknown;
        extensions?: Record<string, unknown>;
        id: string;
        name?: string;
        suppressed?: boolean | DesignNumber;
        type: "script";
        script: string;
        params?: Record<string, unknown>;
        body?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    extras?: unknown
    extensions?: Record<string, unknown>
    id: string
    name?: string
    suppressed?: boolean | DesignNumber
    type: "script"
    script: string
    params?: Record<string, unknown>
    body?: string