<<VRML 2.0 - An Introductory view by examples

Text

[geometries' example]                                               [run]


It defines a two-sided, flat text string. The text is positioned in the X-Y plane of the local coordinate system.

{
exposedField MFString string [] # set of text strings to be rendered
exposedField SFNode fontStyle NULL # style, justify (see example)
exposedField MFFloat length [] # length of each string + blanks
exposedField SFFloat maxExtent 0.0 # controls if string will be compressed
}

It is used as a node inside a Shape node.

  Shape{
        geometry Text{string["exemplo"]
                      lenght [8] }
        }