X3D三维立体网页的设计X3D立体网页的设计第3讲.pptVIP

  • 8
  • 0
  • 约5.35千字
  • 约 23页
  • 2018-06-28 发布于福建
  • 举报

X3D三维立体网页的设计X3D立体网页的设计第3讲.ppt

X3D三维立体网页的设计X3D立体网页的设计第3讲

第 3 讲 回顾 基本几何节点设计: Shape节点设计 Sphere球体节点 Box立方体节点 Cone圆锥体节点 Cylinder圆柱体节点 图像纹理节点设计 文字造型节点 第3讲 复杂几何节点设计 PointSet“点”节点 IndexedLineSet“线”节点 IndexedFaceSet“面”节点 ElevationGrid海拔栅格节点 Extrusion挤出造型节点 项目实例 虚拟校园项目开发与设计 PointSet“点”节点 语法定义 PointSet“点”节点 { 域名 域值 containerField geometry *Color NULL SFNode *Coordinate NULL SFNode } 实例程序效果 PointSet“点”节点实例效果 PointSet“点”节点源程序实例 Scene Background skyColor=0.98 0.98 0.98/ Shape Appearance Material diffuseColor=0.2 0.8 0.8/ /Appearance PointSet Color color=0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,#10;0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,#10;0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,0 0 0,#10;/ Coordinate point=0 0 -3,0 0 -2,0 0 -1,0 0 0,0 0 1,0 0 2,0 0 3,#10;-4 0 0,-3.5 0 0,-3 0 0,-2.5 0 0,-2 0 0,-1.5 0 0,-1 0 0,-0.5 0 0,0.5 0 0,1 0 0,1.5 0 0, 2 0 0,2.5 0 0 ,3 0 0,3.5 0 0,4 0 0,#10;0 -4 0,0 -3.5 0,0 -3 0,0 -2.5 0,0 -2 0,0 -1.5 0,0 -1 0,0 -0.5 0,0 0.5 0,0 1 0,0 1.5 0, 0 2 0,0 2.5 0,0 3 0,0 3.5 0,0 4 0,#10;/ /PointSet /Shape /Scene 2. IndexedLineSet“线”节点 IndexedLineSet“线”节点: { coordIndex colorPerVertex true colorIndex set_coordIndex set_colorIndex containerField geometry *Color NULL *Coordinate NUL } “线”节点运行效果 “线”节点运行效果 “线”节点编程实例 Scene Background skyColor=0.98 0.98 0.98/ Shape Appearance Material diffuseColor=0.2 0.8 0.8/ /Appearance IndexedLineSet colorPerVertex=true coordIndex=0,1,2,1,3,-1,#10;4,5,6,5,7,-1,#10;8,9,10,9,11,-1, Coordinate point=-5.0 0.0 0.0,5.0 0.0 0.0,#10;4.5 0.2 0.0,4.5 -0.2 0.0,#10;0.0 -4.0 0.0,0.0 4.0 0.0,#10;-0.2 3.5 0.0,0.2 3.5 0.0,#10;0.0 0.0 -0.8,0.0 0.0 5.0,#10;-0.2 0.0 4.5,0.2 0.0 4.5,/ /IndexedLineSet /Shape /Scene 3. IndexedFaceSet“面”节点 “面”节点节点定义: IndexedFaceSet“面”节点 { coordIndex ccw true convex

文档评论(0)

1亿VIP精品文档

相关文档