《vrml程序2(补充)》由会员分享,可在线阅读,更多相关《vrml程序2(补充)(5页珍藏版)》请在金锄头文库上搜索。
1、#文本 #VRML V2.0 utf8 Group children Shape geometry Text string “111111“,“22222“ length 0.0 maxExtent 0.0 fontStyle NULL #创建边长为一的正方体的 12 个点 #VRML V2.0 utf8 Shape appearance Appearance material Material emissiveColor 1 1 1 geometry PointSet coord Coordinate point -1 1 1, 1 1 1, 1 1 -1, -1 1 -1, -1 -1 1
2、, 1 -1 1, 1 -1 -1, -1 -1 -1 #创建边长为 1 的正方体的 12 条边 #VRML V2.0 utf8 Shape appearance Appearance material Material emissiveColor 1 1 1 geometry IndexedLineSet coord Coordinate point -1 1 1, 1 1 1, 1 1 -1, -1 1 -1, -1 -1 1, 1 -1 1 , 1 -1 -1, -1 -1 -1 coordIndex 0,1,2,3,0,-1 4,5,6,7,4,-1 0,4,-1 1,5,-1 2,6
3、,-1 3,7 #创建边长为 1 的正方体的 6 个面 #VRML V2.0 utf8 Shape appearance Appearance material Material emissiveColor 1 1 0 geometry IndexedFaceSet coord Coordinate point -1 1 1, 1 1 1, 1 1 -1, -1 1 -1, -1 -1 1, 1 -1 1 , 1 -1 -1, -1 -1 -1 coordIndex 0,1,2,3,-1 7,6,5,4,-1 0,4,5,1,-1 1,5,6,2,-1 2,6,7,3,-1 3,7,4,0 c
4、onvex FALSE creaseAngle 0.785 solid FALSE #海拔栅格 #VRML V2.0 utf8 Shape appearance Appearance material Material diffuseColor 0 1 1 geometry ElevationGrid xDimension 5 zDimension 5 xSpacing 1 zSpacing 1 solid FALSE #是否是实体 creaseAngle 8 height 0 2 0 2 0 1 0 0 0 1 2 0 3 0 2 0 0 0 0 0 -1 2 0 -1 #海拔栅格练习:绘制
5、波纹 #VRML V2.0 utf8 Shape appearance Appearance material Material diffuseColor 1 0 1 geometry ElevationGrid xDimension 2 zDimension 20 xSpacing 1.0 zSpacing 4.0 solid FALSE creaseAngle 0.785 height 0, 0.59, 0.95, 0.95, 0.59, 0, -0.59, -0.95, -0.95, -0.59, 0, 0.59, 0.95, 0.95, 0.59 , 0, -0.59, -0.95, -0.95, -0.59 , 0, 0.59, 0.95, 0.95, 0.59, 0, -0.59, -0.95, -0.95, -0.59, 0, 0.59, 0.95, 0.95 ,0.59 , 0, -0.59, -0.95, -0.95, -0.59,