Table of Contents Previous Directory Summary Directory Viewpoint Slideshow Javadoc for translated java source Next Directory Summary X3D Resources

X3D Example Archives: Conformance Nist, Geometry, Text

 

Text is a 2D (flat) geometry node that can contain multiple lines of string values. Layout and styling is controlled by a contained FontStyle node. Wikipedia: see String (computer science). Hint: full internationalization (i18n) and localization (l10n) features are available for any written language.

X3D Tooltips of interest: Text.

X3D Specification sections of interest: 15 Text component, 15.2.2 Text formatting, 15.4.1 FontStyle and 15.4.2 Text.

X3D Examples Archives of related interest:

 
  9 X3D Models       X3D Model Descriptions
default_text default text This test attempts to write the "The VRML Test Suite" string by using mostly default values. Only the string field is modified. The rest of the fields are assigned their default values (maxExtent = 0, length = 0,and FontStyle = NULL)
hundred_charsperstring hundred charsperstring This test attempts to write a string made of 100 characters, as required by the VRML specification. The test should write the letters from A thru Z (upper case) twice, it should also write the lower case letters a thru v twice, letters from w thru z should appear only once.
hundred_strings hundred strings This test attempts to write 100 strings, as required by the VRML specification. The test should write the strings "string 1", "string 2" thru "string 100".
mix_compexp mix compexp This test sets the string field to four character strings ("THE", "VRML", "TEST", "SUITE"). Each string is assigned a different length value in the length field causing the string to be compresed, expanded. The strings The strings "THE" and "TEST" should be expanded while the strings "VRML" and "SUITE" should be compressed.
mult_strings mult strings This test attempts to write the four character strings. "The", "VRML", "Test", "Suite" using mostly default values. Only the string field is modified. The rest of the fields are assigned their default values (maxExtent = 0, length = 0,and fontStyle = NULL)
set_length_comp set length comp This test sets the value of the length field to 7. This should cause the string "The VRML Test Suite" to be compressed. Units of measure are assumed to be in the standard form (linear measured in meters, angles in radians, and time in seconds)
set_length_exp set length exp This test sets the value of the length field to 25. This should cause the string "The VRML Test Suite" to be stretched. Units of measure are assumed to be in the standard form (linear measured in meters, angles in radians, and time in seconds)
set_maxExtent_high set max Extent high Test hight maxExtent value. This test assign four character strings to the string field. The strings are "THE", "VRML", "TEST","SUITE". The maxExtent field is set to 10. This value is higher than the length of any of the strings in the string field, therefore none of the strings should be altered (compressed or expanded) by this value.
set_maxExtent_low set max Extent low Test low maxExtent value. This test assign four character strings to the string field. The strings are "THE", "VRML", "TEST", "SUITE". The maxExtent field is set to 3.0 meters. This should cause any strings longer than 3.0 VRML units to be compressed to 3.0 units long.

Online at https://www.web3d.org/x3d/content/examples/ConformanceNist/Geometry/Text

Validate XHTML 1.1

Master source-code model archive is under subversion control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/ConformanceNist/Geometry/Text

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.

Table of Contents Previous Directory Summary Directory Viewpoint Slideshow Javadoc for translated java source Next Directory Summary X3D Resources