中原工学院毕业设计(论文)
附录一 VRML设计部分程序
按钮
#VRML V2.0 utf8 Group { children [ Transform { } ] }
把手开关
translation 0 4 -20 rotation 1 0 0 0.262 scale 1 0.5 1 children [ Shape { appearance Appearance { material Material { diffuseColor 1 0 0 } } geometry Sphere { radius 1.2 } } Transform { scale 1 0.3 1 children Shape { appearance Appearance { material Material { diffuseColor 0 0 1 } } geometry Cylinder { radius 2 height 5 } } } ] 42
中原工学院毕业设计(论文)
Transform { translation 0.7 -1.2 0.6 scale 0.63 0.63 0.63 rotation 1 0 0 1.57 children [ Transform { children [ Shape { appearance DEF black Appearance { material Material { diffuseColor 0 0 0 } } geometry Cylinder { height 0.4 radius 0.5 } } ] }
Transform { children [ Shape { appearance DEF yinse Appearance { material Material { diffuseColor 1 1 1 } } geometry Cylinder { height 0.395 radius 0.53 } } ] }
Transform { scale 1.15 1 1.4 children [ Shape { appearance USE black geometry Extrusion { crossSection [ -0.1 0, -0.08 0.06, -0.06 0.08, -0.04 0.0916 ,-0.02 0.098, 0 0.1 1 0.1, 1.02 0.098, 1.04 0.0916, 1.06 0.08,1.08 0.06, 1.1 0,1.08 -0.06, 1.06 -0.08, 1.04 -0.0916,1.02 -0.098,1 -0.1,0 -0.1,-0.02 -0.098,-0.04 -0.0916 -0.06 -0.08, -0.08 -0.06, -0.1 0 ] spine [ -0.5 0.2 0 -0.5 0.7 0 ]
43
中原工学院毕业设计(论文)
} } ] }
Transform { translation -0.25 0 0 scale 0.575 1.01 0.7 children [ Shape { appearance USE yinse geometry Extrusion { crossSection [ -0.1 0, -0.08 0.06, -0.06 0.08, -0.04 0.0916 ,-0.02 0.098, 0 0.1 1 0.1, 1.02 0.098, 1.04 0.0916, 1.06 0.08,1.08 0.06, 1.1 0,1.08 -0.06, 1.06 -0.08, 1.04 -0.0916,1.02 -0.098,1 -0.1,0 -0.1,-0.02 -0.098,-0.04 -0.0916 -0.06 -0.08, -0.08 -0.06, -0.1 0 ] spine [ -0.5 0.2 0 -0.5 0.7 0 ] } } ] } ] }
#大插孔的代码 Transform { translation -1.28 -1.38 0.52 scale 0.5 0.5 0.2 children [ Transform {
translation 0.0 0.0 0.0 rotation 1 0 0 1.571 children Shape { appearance Appearance { material Material { diffuseColor 1.0 1.0 0.0 } } geometry Cylinder { radius 0.3 height 0.6 } } }
Transform {
translation 0.0 0.0 0.0 rotation 1 0 0 1.571
44
中原工学院毕业设计(论文)
children Shape { appearance Appearance { material Material { diffuseColor 0.0 0.0 0.0 } } geometry Cylinder { radius 0.19 height 0.605 } } }
Transform {
translation 0.0 0.0 0.0 rotation 1 0 0 1.571 children Shape { appearance Appearance { material Material { diffuseColor 1.0 1.0 0.0 } } geometry Cylinder { radius 0.17 height 0.61 } } }
Transform {
translation 0.0 0.0 0.0 rotation 1 0 0 1.571 children Shape { appearance Appearance { material Material { diffuseColor 0.0 0.0 0.0 } } geometry Cylinder { radius 0.10 height 0.62 } } } ] }
45