Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Billboarding

Text orientation in space or towards observer

Value Summary

InheritedFALSE, or TRUE

Graphics Primitives

ObjectsBillboarding Default Values
plot::Piechart3d, plot::Text3dTRUE

Description

With Billboarding = TRUE, text objects are always facing the observer. With Billboarding = FALSE, text objects retain their orientation relative to other objects.

Often, text objects in 3D are used to label certain places in a graphic (note that objects can contain a title, so text objects are usually only necessary for additional descriptions). In this case, it is desirable that they always face the observer to be readable and not rotate along with the rest of the scene. This is the default behavior. To get text objects that are actually part of the scene in the sense that rotating the scene also rotates the texts, set Billboarding = FALSE.

Examples

Example 1

In the following image, the prime numbers use Billboarding = TRUE, while other numbers do not:

plot(plot::Text3d(expr2text(i),
                 [3*i, 0, 0],
                 TextOrientation = [1, 0, 0, 0, 1, 0],
                 Billboarding = isprime(i))
     $ i = 1..15, 
     TextFont = [20], Scaling = Constrained, Axes = None)

Note that text objects with Billboarding = TRUE ignore TextOrientation.

See Also

MuPAD Functions

Was this topic helpful?