I'd like to add text to the surfaces of a cuboid. I have tried Text
and Epilog
, and neither of them worked.
Consider the following code:
Graphics3D[
{{EdgeForm[{Thickness[.000001], GrayLevel @ 0}], Blue,
Cuboid[{-4, 0, 0}, {4, 2.4, 1}]},
{EdgeForm[{Thickness[.000001], GrayLevel @ 0}], Blue,
Cuboid[{-4, 3.4, 0}, {4, 3.6, 1}]},
{EdgeForm[{Thickness[.000001], GrayLevel @ 0}], Blue,
Cuboid[{-4, 4.6, 0}, {4, 7, 1}]},
{EdgeForm[{Thickness[.000001], GrayLevel @ 0}], Blue, Cuboid[{-4, 0, 0}, {4, 7, -1}]},
{Cyan, Opacity[.95], Cuboid[{-4, 2.4, 0}, {4, 3.4, 1}]},
{Yellow, Opacity[.95], Cuboid[{-4, 3.6, 0}, {4, 4.6, 1}]}},
Boxed -> False, ImageSize -> 800]
How can I add text to an arbitrary face of a cuboid, e.g., the yellow cuboid (the color must be adjusted so it is visible)? And more generally, how to add text to an arbitrary point in space?
Texture
: stackoverflow.com/a/10437115/4712538 $\endgroup$