Script: Parametric Cube

Parametric Cube picture
Type
Typescript logo indicatortypescript
Author
matas
Date Created
Jan 25, 2024, 11:41:12 PM
Last Edit Date
Jan 25, 2024, 11:43:34 PM

Project Information

This project contains demo scripts for TypeScript Monaco editor that are used as examples in the "Getting Started" section of the documentation.

View Full Project

Script Code

const start = async () => {
    const size = 10;
    const cubeOptions = new Bit.Inputs.OCCT.CubeDto();
    cubeOptions.size = size;
    const cube = await bitbybit.occt.shapes.solid.createCube(cubeOptions);

    bitbybit.draw.drawAnyAsync({
        entity: cube
    });
}

start();