4.9.wrl

来自「虚拟现实课件 教会你应用特定软件模拟现实电脑重现现实环境」· WRL 代码 · 共 37 行

WRL
37
字号

#以sphere,box,cylinder,cone为节点创建一个航空塔的三维模型,其中用def定义了一个
#名字为bwhite的appearance的节点
#VRML V2.0 utf8
Group{
	children[
		Shape{
			appearance  DEF  Bwhite  Appearance {
					material  Material { }
					}
			geometry Sphere{
					radius 0.75 
						}
				},
		Shape{
			appearance  USE  Bwhite
			geometry Box{
				size 1.8 0.01 1.8
					}
				},
		Shape{
			appearance	 USE  Bwhite
			geometry Cylinder{
				radius  0.9
				height  0.02
					}
			},
		Shape{
			appearance USE  Bwhite
			geometry Cone{
				bottomRadius  0.9 
				height  4.0
					}
			}
		]
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?