User`s guide
VRML Data Types
5-25
VRML Type Description Simulink 3D Animation Type
SFColor Vector of three floating-point
values you use for RGB color
specification.
Single 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.
Single array (1-by-4)
SFImage Two-dimensional array
represented by a sequence of
floating-point numbers.
uint8 array (n-by-m-by-3)
SFString String in UTF-8 encoding.
Compatible with ASCII,
allowing you to use Unicode
®
characters.
char
SFNode Container for a VRML node. vrnode
MFFloat Array of SFFloat values. Single array (n-by-1)
MFInt32 Array of SFInt32 values. int32 array (n-by-1)
MFVec2f Array of SFVec2f values. Single array (n-by-2)
MFVec3f Array of SFvec3f values. Single array (n-by-3)
MFColor Array of SFColor values. Single array (n-by-3)
MFRotation Array of SFRotation values. Single array (n-by-4)
MFString Array of SFString values. char array (n-by-1)
MFNode Array of SFNode values. vrnode
The Simulink 3D Animation software can work with various MATLAB data types,
converting them if necessary:
• The inputs for the setfield function (and its dot notation form) and VR Sink and VR
Source blocks, accept all meaningful data types on input. Both convert the data types
into natural VRML types as necessary. The data types include logicals, signed and
unsigned integers, singles, and doubles.
• The getfield function (and its dot notation form) return their natural data types
according to the table above.