Script: Chamfer specific edges

Chamfer specific edges picture
Type
Typescript logo indicatortypescript
Author
matas
Date Created
Feb 23, 2024, 5:02:50 PM
Last Edit Date
Feb 23, 2024, 5:03:38 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 boxOpt = new Bit.Inputs.OCCT.BoxDto();
    boxOpt.width = 5;
    boxOpt.length = 8;
    boxOpt.height = 10;
    const box = await bitbybit.occt.shapes.solid.createBox(boxOpt);

    const chamfered = await bitbybit.occt.fillets.chamferEdges({
        shape: box,
        distanceList: [0.2, 1.2, 2],
        indexes: [1, 2, 3]
    })

    bitbybit.draw.drawAnyAsync({
        entity: chamfered,
    });
}

start();