Basic Examples (2)
Number the faces of a cube:
Color each cube face and its label independently:
Scope (5)
Letter the eight faces of an octahedron:
Fit a five-digit label on every cube face:
Label a polygon:
Long strings also fit within triangular faces:
Display the supported letters and digits:
Options (2)
Compare three fit values. Each panel uses the same face and text:
Use a dashed stroke style:
Applications (4)
Use custom labels rather than face indices:
Number a larger collection of faces:
For interactive styling, construct the lettering in Initialization. Changing the control only changes its color:
Choose a different baseline by cycling the face vertices:
Properties and Relations (2)
The time to render characters in 3D was a main driver for making this function:
Whereas ResourceFunction "CharacterCurves" extracts from an installed font, StrokeText3D uses simple fixed strokes, such as with the letter R:
Inspect the primitive types returned by each method:
Possible Issues (4)
Text on a face with zero depth can appear to float:
Unsupported punctuation becomes a question mark:
Concave, self-intersecting, nonplanar and degenerate faces are outside the supported domain:
Vertex winding determines the front side, allowing mirror forms for numbers like 4 and 6:
Neat Examples (3)
Replace each polyline by a tube to make solid lettering:
Draw two stroke widths to give the text a contrasting outline:
Make a labeled empire map, where each of twelve empires has two regions and every empire neighbor all the others: