Script
Drawing edge indexes on the solid

- Author
- matas
- Created
- Feb 21, 2024, 2:29:45 PM
- Last edit
- Feb 21, 2024, 5:13:31 PM
Project
Getting Started Demos TypeScript
This project contains demo scripts for TypeScript Monaco editor that are used as examples in the "Getting Started" section of the documentation.
View full projectScript 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 drawOpt = new Bit.Inputs.Draw.DrawOcctShapeOptions();
drawOpt.drawEdgeIndexes = true;
drawOpt.faceOpacity = 0.3;
drawOpt.edgeOpacity = 0.3;
drawOpt.edgeIndexHeight = 0.24
bitbybit.draw.drawAnyAsync({
entity: box,
options: drawOpt
});
}
start();
