




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
回顾复杂几何节点设计:PointSet“点”节点IndexedLineSet“线”节点IndexedFaceSet“面”节点ElevationGrid海拔栅格节点Extrusion挤出造型节点项目实例第4讲组节点设计Transform空间坐标变换节点
Group编组节点
Inline内联节点
Switch开关节点
Billboard节点
Anchor节点
LOD细节层次节点项目实例Transform空间坐标变换节点
语法定义Transform空间坐标变换节点{ translation 000 rotation 0010 center 000 scale 111 scaleOrientation 0010 bboxCenter 000 bboxSize -1–1-1 containerField children }实例程序效果Transform空间坐标变换节点实例效果Transform空间坐标变换节点
源程序实例<Scene><BackgroundskyColor="0.980.980.98"/><Transformtranslation="02.20"><Shape><Appearance><MaterialambientIntensity="0.1"diffuseColor="100"shininess="0.15"specularColor="0.80.80.8"/></Appearance><Sphereradius="0.8"/></Shape></Transform><Transformtranslation="000"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.9"/></Appearance><Cylinderbottom="true"height="6"radius="0.3"side="true"solid="true"top="true"/></Shape></Transform></Scene>2.Group编组节点Group编组节点定义:{ bboxCenter 000 bboxSize -1–1-1 containerFiel children }Group编组节点运行效果Group编组节点运行效果Group编组节点编程实例<Scene><BackgroundskyColor="0.980.980.98"/><GroupbboxCenter="000"bboxSize="-1-1-1"containerField="children"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.8"/></Appearance><Cylinderbottom="true"height="4"radius="0.4"side="true"solid="true"top="true"/></Shape><Transformtranslation="020"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.9"/></Appearance><Sphereradius="1"/></Shape></Transform><Transformtranslation="0-20"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.8"/></Appearance><Sphereradius="1"/></Shape></Transform></Group></Scene>3.Inline内联节点Inline内联节点定义:{ load true url bboxCenter 000 bboxSize -1–1-1 containerField children }Inline内联节点运行效果Inline内联节点设计效果Inline内联节点实例程序<Scene><BackgroundskyColor="0.980.980.98"/><Transformrotation="001-0.524"scale="0.240.2"translation="200"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.8"/></Appearance><Sphereradius="1"/></Shape></Transform><Transformrotation="1000.524"scale="10.251"translation="-2-20"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.9"/></Appearance><Sphereradius="1"/></Shape></Transform><Transformrotation="0011.571"scale="0.50.50.5"translation="4-20"><Inlineurl="px3d7-2.x3d"/></Transform></Scene>4.Switch开关节点Switch开关节点语法定义:Switch开关节点{ whichChoice -1 bboxCenter 000 bboxSize -1–1-1 containerField children }Switch开关节点运行效果Switch开关节点运行效果Switch开关节点源程序实例<Scene><BackgroundskyColor="0.980.980.98"/><SwitchbboxCenter="000"bboxSize="-1-1-1"containerField="children"whichChoice="0"><Shape><Appearance><MaterialdiffuseColor="101"/></Appearance><Textsolid="true"string="0:FirstText:X3D"/></Shape><Shape><Appearance><MaterialdiffuseColor="011"/></Appearance><Textstring="1:SecondText:X3DV"/></Shape><Shape><Appearance><MaterialdiffuseColor="001"/></Appearance><Textstring="1:ThirdText:VRML"/></Shape></Switch></Scene>5.Billboard节点Billboard节点语法定义:Billboard广告、警示牌、海报节点{ axisOfRotation 010 bboxCenter 000 bboxSize -1–1-1 containerField children }Billboard节点实例程序
<Scene><BackgroundskyColor="0.980.980.98"/><BillboardaxisOfRotation="010"bboxCenter="000"bboxSize="-1-1-1"><Transformtranslation="040"><Shape><Appearance><Material/><ImageTextureurl="0109-1.jpg"/></Appearance><Boxsize="421"/></Shape></Transform><Transformtranslation="010"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.9"/></Appearance><Cylinderheight="5"radius="0.3"/></Shape></Transform><Transformtranslation="0-1.50"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.9"/></Appearance><Cylinderheight="0.3"radius="1"/></Shape></Transform></Billboard></Scene>Billboard节点运行结果图Billboard节点运行效果图6.Anchor节点Anchor节点语法定义:Anchor锚节点{ description url parameter bboxCenter 000 bboxSize -1–1-1 containerField children }Anchor节点实例程序
<Scene><BackgroundskyColor="0.980.980.98"/><Anchordescription="maincallpx3d7-6-1.x3d"url="px3d7-6-1.x3d"><Transformtranslation="000"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.30.20.0"shininess="0.2"specularColor="0.70.70.6"/><ImageTextureurl="men001.jpg"/></Appearance><Boxsize="470.5"/></Shape></Transform><Transformtranslation="-1.6-0.20.3"><Shape><Appearance><MaterialambientIntensity="0.4"diffuseColor="0.50.50.7"shininess="0.2"specularColor="0.80.80.9"/></Appearance><Sphereradius="0.2"/></Shape></Transform></Anchor></Scene>A
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五年度二手房买卖合同交易税费缴纳修订版16
- 2025版新能源汽车零部件采购合同模板(含环保标准)
- 二零二五年度不锈钢栏杆安装工程安全生产责任合同
- 二零二五年度幼儿园保育员聘用协议及保育标准
- 二零二五版家政公司玻璃清洁服务规范合同
- 二零二五年度比亚迪汽车购车赠送驾驶培训合同
- 二零二五年餐饮配送企业信息化系统升级合同
- 2025版新型防火卷帘门安装与环保验收合同
- 2025版特色小吃店承包经营与市场开发合同范本
- 2025版办公室装修工程绿色节能施工与环保评估合同
- 福海县高校毕业生三支一扶计划招募考试真题2024
- 2025年食品检验员考试试卷及答案
- 2025年一级建造师知识试题含答案
- 汽车CAE技术课件
- 术后并发症护理
- 中等职业教育AI应用企业制定与实施新质生产力项目商业计划书
- 寄宿学校思政课教案二篇
- 2025年山东能源集团招聘笔试备考题库(带答案详解)
- 中国货运代理行业市场调研分析及投资战略咨询报告
- 2025中国石化春季招聘统一初选考试笔试参考题库附带答案详解
- 2025年钳工(技师)职业技能鉴定试题库
评论
0/150
提交评论