Script: Fillet all corners 2d wire

Fillet all corners 2d wire picture
Type
Typescript logo indicatortypescript
Author
matas
Date Created
Feb 22, 2024, 10:25:03 AM
Last Edit Date
Feb 22, 2024, 10:30:43 AM

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 squareOpt = new Bit.Inputs.OCCT.SquareDto();
    const square = await bitbybit.occt.shapes.wire.createSquareWire(squareOpt);
    const squareFillet = await bitbybit.occt.fillets.fillet2d({
        shape: square,
        radius: 0.25
    });

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

start();