Script TS TypeScript Free

3D Text Example TypeScript

3D Text Example TypeScript picture
Project
3D Texts
Author
matas
Created
Sep 17, 2023, 10:37:39 AM
Last edit
Dec 5, 2023, 4:22:20 PM

Edit scriptPreview

Project

3D Texts

Example of how to create a 3D text in bitbybit.dev

View full project
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();

Plans and pricing

Choose your plan

Editor plans for 3D development, API keys for server-side CAD algorithms

EnterpriseB2BCustompricing

Custom software development, dedicated servers and CAD automation at scale.

Learn moreContact us

CAD automation and software
  • Custom software development
  • Cloud CAD automation pipelines
  • 3D configurators (STEP & GLTF)
  • Batch export jobs
  • Custom algorithms & deployment
Infrastructure and support
  • Custom compute allocation
  • Dedicated / VPS server tenants
  • Long-running computation jobs
  • Custom upload limits & overage
  • SLA & premium support

All prices exclude applicable taxesView all plan details

Contact

Talk to us

Tell us what you are building or what is blocking you, through whichever channel suits you.