Setting Plane Process

Below we will consider the process that allows a user to set a plane by specifying three points on a model.

Running the Process

*Example of running the plane process (TypeScript):

view.runCommand({
    name: "RunProcessCommand",
    process: {
        name: "SetPlaneProcess",
        events: {
            onInitPlacement: (a: number, b: number, c: number) => {
                console.log(`Selected placement: (a: ${a}, b: ${b}, c: ${c})`)
            }
        }
    }
})

This process doesn’t have any additional options.

Events

Available events:

  • onInitPlacement(a, b, c): emitted when any three points on a model are specified, receives variables (angles a and b with an offset c) enough to build a section plane.

Important

Updating process is not provided!