User`s guide

5 Build Virtual Reality Worlds
5-24
VRML Data Types
In this section...
“Section Overview” on page 5-24
“VRML Field Data Types” on page 5-24
“VRML Data Class Types” on page 5-26
Section Overview
VRML data types are used by VRML nodes to define objects and types of data that can
appear in the VRML node fields and events.
This section explains these VRML field data types and VRML data class types.
VRML Field Data Types
The Simulink 3D Animation product provides an interface between the MATLAB and
Simulink environment and VRML scenes. With this interface, you can set and get the
VRML scene node field values. To work with these values, you must understand the
relationship between VRML data types and the corresponding MATLAB data types. The
following table illustrates the VRML data types and how they are converted to and from
MATLAB types.
For a detailed description of the VRML fields, refer to the VRML97 Standard.
VRML Type Description Simulink 3D Animation Type
SFBool Boolean value true or false. logical
SFFloat 32–bit, floating-point value. single
SFInt32 32–bit, signed-integer value. int32
SFTime Absolute or relative time value. double
SFVec2f Vector of two floating-point
values that you usually use for
2-D coordinates. For example,
texture coordinates.
Single array (1-by-2)
SFVec3f Vector of three floating-point
values that you usually use for
3-D coordinates.
Single array (1-by-3)