1 Mb)
PROTO
EXTERNPROTO
PROTO Name [
fieldType dataType fieldName /defaultValue/
]
{
#definition as one node (may have many internal nodes)
}
IS:PROTO ColorBox [
exposedField SFColor color 1 1 1
exposedField SFVec3f position 0 0 0
field SFVec3f size 2 2 2
]
{
Transform {
translation IS position
children [
Shape {
appearance Appearance {
material Material {
diffuseColor IS color
}
}
geometry Box { size IS size }
}
]
}
}
Inline{}