API reference
API reference
Select your platform
No SDKs available
No versions available

TextExtruder Object

Generates 3D extruded mesh geometry from 2D text contour groups.
The extruded text mesh consists of three types of geometry:
  1. Front face - Triangulated 2D contours at z = +depth/2
  2. Back face - Same triangulation mirrored at z = -depth/2 (reversed winding)
  3. Side walls - Extruded edge strips connecting front and back face edges

Signature

object TextExtruder

Methods

extrude ( glyphContours , depth )
Generates complete 3D extruded geometry from contour groups.
Signature
fun extrude(glyphContours: List<ContourGroup>, depth: Float): MeshGeometryData
Parameters
glyphContours: List  Contour groups from TextOutlineExtractor
depth: Float  Extrusion depth in meters
Returns
MeshGeometryData  MeshGeometryData ready for SceneMesh.meshWithMaterials()