Exemplo 03: Sintaxe
do nó Cubo
#VRML V2.0 utf8
# -----------------------
Shape {
......geometry Box{}
}
Exemplo 04: Sintaxe
do nó Cone
Shape {
......geometry Cone{}
}
Exemplo 05: Sintaxe
do nó Cilindro
Shape {
......geometry Cylinder {}
}
Exemplo 06: Sintaxe
do nó Esfera
Shape {
......geometry Sphere {}
}
Exemplo 07: #
Sintaxe do Nó Box (Cubo,
Paralelepípedo)
Shape
{
appearance Appearance {
material Material {
}
}
geometry Box { }
}
Exemplo 08: #
Sintaxe do Nó Box (Cubo,
Paralelepípedo)
Shape
{
appearance Appearance {
material Material {
}
}
geometry Box {
size 1 3 5 # x y z
}
}
Exemplo 09: #
Sintaxe do Nó Cylinder (Cilindro)
Shape
{
appearance Appearance {
material Material {
diffuseColor 0 0 1 # Cor azul
}
}
geometry Cylinder { }
}
Exemplo 10: #
Sintaxe do Nó Cylinder (Cilindro)
Shape
{
appearance Appearance {
material Material {
diffuseColor 0 1 0 # Cor Verde
}
}
geometry Cylinder {
radius
4.0
height
1.0
}
}
Exemplo 11: #
Sintaxe do Nó Cone (Cone)
Shape
{
appearance Appearance {
material Material {
diffuseColor 1 0 0 # Cor vermelha
}
}
geometry Cone { }
}
Exemplo 12: #
Sintaxe do Nó Cone (Cone)
Shape
{
appearance Appearance {
material Material {
}
}
geometry Cone {
bottomRadius
3.5
height
1.5
}
}
Exemplo 13: #
Sintaxe do Nó Sphere (Esfera)
Shape
{
appearance Appearance {
material Material {
}
}
geometry Sphere { }
}
Exemplo 14: #
Sintaxe do Nó Sphere (Esfera)
Shape
{
appearance Appearance {
material Material {
}
}
geometry Sphere {
radius
1.5
}
}