基本图形

将文件扩展名改为wrl

#VRML V2.0 utf8
Group
{
children #定义字域
[
DEF mytrs Transform #画一个正方体,中心位置为5 0 0
{
translation 5 0 0
children[
Shape
{
appearance Appearance #
{
material Material #材质填充为红色
{
diffuseColor 1 0 0
}
}
geometry Box #正方体
{
}
}
]
}

DEF mytrs Transform
{
translation 0 0 0
children[
Shape
{
appearance Appearance
{
material Material
{
diffuseColor 0 1 0
}
}
geometry Sphere #圆
{
}
}
]
}

DEF mytrs Transform
{
translation 0 0 0
children[
Shape
{
appearance Appearance
{
material Material
{
diffuseColor 0 0 1
}
}
geometry Cone #圆锥
{
}
}
]
}

]# end of Group children
}

你可能感兴趣的:(职场,休闲)