Virtual Reality Toolbox    

VRML Field Data Types

The following table shows the VRML data types and how they are converted to MATLAB types.

For a detailed description of the VRML fields, refer to the VRML97 Standard.

VRML Type
Description
VR Toolbox Type
SFBool
The Boolean value true or false.
'on' or 'off'
SFFloat
A 32 bit floating-point value.
Double
SFInt32
A 32 bit signed-integer value.
SFInt32_value = floor(double_value)
Double
SFTime
An 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.
Double array (1-by-2)
SFVec3f
Vector of three floating-point values that you usually use for 3-D coordinates
Double array (1-by-3)
SFColor
Vector of three floating-point values you use for RGB color specification.
Double array (1-by-3)
SFRotation
Vector of four floating-point values you use for specifying rotation coordinates (x,y,z) of an axis plus rotation angle around that axis.
Double array (1-by-4)
SFImage
Two-dimensional array represented by a sequence of floating-point numbers.
N/A
SFString
String in UTF-8 encoding. Compatible with ASCII, allowing you to use Unicode characters.
String
SFNode
Container for a VRML node.
N/A
MFFloat
Array of SFFloat values.
Double array (n-by-1)
MFInt32
Array of SFInt32 values.
Double array (n-by-1)
MFVec2f
Array of SFVec2f values.
Double array (n-by-2)
MFVec3f
Array of SFvec3f values.
Double array (n-by-3)
MFColor
Array of SFColor values.
Double array (n-by-3)
MFRotation
Array of SFRotation values.
Double array (n-by-4)
MFString
Array of SFString values.
Cell array of strings
MFNode
Array of SFNode values.
N/A


  VRML Data Types VRML Data Class Types