Script: 3D Text Example TypeScript

3D Text Example TypeScript picture
Type
Typescript logo indicatortypescript
Project
3D Texts
Author
matas
Date Created
Sep 17, 2023, 12:37:39 PM
Last Edit Date
Dec 5, 2023, 5:22:20 PM

Project Information

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

View Full Project

Script Code

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 & Pricing

Choose Your Plan

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

B2B

ENTERPRISE

Custom pricing

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

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