const s = async () => {
const inputs = new Bit.Advanced.Text3D.Text3DDto();
inputs.text = "Hello World! We are bitbybit.dev";
inputs.fontType = Bit.Advanced.Text3D.fontsEnum.Lugrasimo;
inputs.fontSize = 3;
const d = await bitbybit.advanced.text3d.create(inputs);
const translated = await bitbybit.occt.transforms.translate({
shape: d.compound,
translation: [d.advanceWidth / 2, 0, 0]
});
const options = new Bit.Inputs.Draw.DrawOcctShapeOptions();
options.faceColour = "#ff0000";
options.edgeColour = "#aaaaaa";
bitbybit.draw.drawAnyAsync({ entity: translated, options });
}
s();