Group编组节点
2008-08-31 19:51
162 查看
Group编组节点是将多个节点进行组合来创建较复杂的立体空间模型。利用Group编组节点的children域可以包含任意个节点,该节点是组节点中最基本的节点。
Group编组节点域、域名和域值:
DEF为节点定义一个名字,给该节点定义了唯一的ID,在其他节点就可以引用这个节点;
USE用来引用DEF定义的节点ID,即引用DEF定义的节点名字,同时忽略其他的属性和子对象;
bboxCenter域:指定了边界盒的中心从局部坐标系统原点的位置的偏移,默认值是:0.0 0.0 0.0;
bboxSize域:指定了边界盒尺寸在x、y、z轴方向的大小;
containerField域:表示容器域是field域标签的前缀,表示了子节点与父节点的关系;
class域:是用空格分开的类的列表,保留给XML样式表使用,只有X3D场景用XML编码时才支持class属性。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "http://www.web3d.org/specifications/x3d-3.1.dtd"
"file:///www.web3d.org/TaskGroups/x3d/translation/x3d-3.1.dtd">
<!--Warning: transitional DOCTYPE in source .x3d file-->
<X3D profile="Immersive" version="3.1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.1.xsd">
<head>
<meta content="px3d7-2.x3d" name="filename"/>
<meta content="zjz-zjr-zjd" name="author"/>
<meta content="*enter name of original author here*" name="creator"/>
<meta
content="*enter copyright information here* Example: Copyright (c) Web3D Consortium Inc. 2006" name="rights"/>
<meta
content="*enter online Uniform Resource Identifier (URI) or Uniform Resource Locator (URL) address for this file here*" name="identifier"/>
<meta
content="X3D-Edit, http://www.web3d.org/x3d/content/README.X3D-Edit.html" name="generator"/>
</head>
<Scene>
<Background skyColor="0.98 0.98 0.98"/>
<Group bboxCenter="0 0 0" bboxSize="-1 -1 -1" containerField="children">
<Shape>
<Appearance>
<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"
shininess="0.2" specularColor="0.8 0.8 0.8"/>
</Appearance>
<Cylinder bottom="true" height="4" radius="0.4" side="true" top="true"/>
</Shape>
<Transform translation="0 2 0">
<Shape>
<Appearance>
<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"
shininess="0.2" specularColor="0.8 0.8 0.9"/>
</Appearance>
<Sphere radius="1"/>
</Shape>
</Transform>
<Transform translation="0 -2 0">
<Shape>
<Appearance>
<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"
shininess="0.2" specularColor="0.8 0.8 0.8"/>
</Appearance>
<Sphere radius="1"/>
</Shape>
</Transform>
</Group>
</Scene>
</X3D>
Group编组节点域、域名和域值:
DEF为节点定义一个名字,给该节点定义了唯一的ID,在其他节点就可以引用这个节点;
USE用来引用DEF定义的节点ID,即引用DEF定义的节点名字,同时忽略其他的属性和子对象;
bboxCenter域:指定了边界盒的中心从局部坐标系统原点的位置的偏移,默认值是:0.0 0.0 0.0;
bboxSize域:指定了边界盒尺寸在x、y、z轴方向的大小;
containerField域:表示容器域是field域标签的前缀,表示了子节点与父节点的关系;
class域:是用空格分开的类的列表,保留给XML样式表使用,只有X3D场景用XML编码时才支持class属性。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "http://www.web3d.org/specifications/x3d-3.1.dtd"
"file:///www.web3d.org/TaskGroups/x3d/translation/x3d-3.1.dtd">
<!--Warning: transitional DOCTYPE in source .x3d file-->
<X3D profile="Immersive" version="3.1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.1.xsd">
<head>
<meta content="px3d7-2.x3d" name="filename"/>
<meta content="zjz-zjr-zjd" name="author"/>
<meta content="*enter name of original author here*" name="creator"/>
<meta
content="*enter copyright information here* Example: Copyright (c) Web3D Consortium Inc. 2006" name="rights"/>
<meta
content="*enter online Uniform Resource Identifier (URI) or Uniform Resource Locator (URL) address for this file here*" name="identifier"/>
<meta
content="X3D-Edit, http://www.web3d.org/x3d/content/README.X3D-Edit.html" name="generator"/>
</head>
<Scene>
<Background skyColor="0.98 0.98 0.98"/>
<Group bboxCenter="0 0 0" bboxSize="-1 -1 -1" containerField="children">
<Shape>
<Appearance>
<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"
shininess="0.2" specularColor="0.8 0.8 0.8"/>
</Appearance>
<Cylinder bottom="true" height="4" radius="0.4" side="true" top="true"/>
</Shape>
<Transform translation="0 2 0">
<Shape>
<Appearance>
<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"
shininess="0.2" specularColor="0.8 0.8 0.9"/>
</Appearance>
<Sphere radius="1"/>
</Shape>
</Transform>
<Transform translation="0 -2 0">
<Shape>
<Appearance>
<Material ambientIntensity="0.4" diffuseColor="0.5 0.5 0.7"
shininess="0.2" specularColor="0.8 0.8 0.8"/>
</Appearance>
<Sphere radius="1"/>
</Shape>
</Transform>
</Group>
</Scene>
</X3D>
相关文章推荐
- 读书笔记 -- VRML与Java编程技术 编组节点
- AndroidManifest.xml清单文件详解--permission-group节点
- mysql group replication 主节点宕机恢复
- MySQL Group Replication增加节点
- LeetCode 25 Reverse Nodes in k-Group K个一组反转节点
- 【链表】节点的插入删除【25. Reverse Nodes in k-Group】
- leetCode 25.Reverse Nodes in k-Group (以k个节点为一组反转链表) 解题思路和方法
- LeetCode OJ:Reverse Nodes in k-Group(K个K个的分割节点)
- Skyline遍历指定Group下的子节点、查找并创建节点
- linux中sysfs 创建设备节点的方法sysfs_create_group DEVICE_ATTR
- MySQL Group Replication 节点状态详解
- 插入group节点时,发生异常“is unexpected according to content model of parent element“
- [LeetCode]—Reverse Nodes in k-Group 将链表以n个节点为一组进行逆序
- LeetCode Reverse Nodes in k-Group 每k个节点为一组,反置链表
- MySQL Group Replication HA with ProxySQL [主节点故障切换对应用无感知]
- 创建sysfs节点之device_create_file、sysfs_create_group
- CAD中组(Group)如何应用,编组和图块有何区别?
- [leetcode]Reverse Nodes in k-Group 反转以k个节点为一组的链表
- 链表编程题专题--Reverse Nodes in k-Group(最后几个节点不足一组的不逆序)
- JBPM节点分支之Group节点分析