java3D tutial 第二章的pdf文档不能写注释,只好把关键的句子拷贝下来:(

博客介绍了Java中Shape3D对象,它不包含可视化对象的颜色和形状信息,这些信息存于NodeComponent中。一个Shape3D可引用一个Geometry和一个Appearance组件。还提及改变组件引用的条件,以及定义可视化对象类的三种方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The Shape3D object does not contain information about the shape or color of a visual object. This information is stored in the NodeComponent objects referred to by the Shape3D object. A Shape3D object can refer to one Geometry node component and one Appearance node component.
Shape3D对象不包含对象的颜色和形状。这些信息包含在对应的NodeComponent中。一个Shape3D对象可以引用一个Geometry node component和一个Appearance node component.

A visual object can be defined using just a Shape3D object and a Geometry node component.
一个可见对象可以只用一个Shape3D object和一个Geometry node component,即可以不包含Appearance node component。

As long as the Shape3D object is not live and not compiled, the node component references can be
changed with the methods shown in the next reference block. These methods can be used on live or
compiled Shape3D objects if the capabilities to do so are set first.
只要Shape3D object不是live且没有被编译,则可以改变它的node component引用。如果设置了对应的capabilities,则Live或者编译之后也可以改变。

NodeComponent objects contain the exact specification of the attributes of a visual object.
NodeComponent包含可见对象的精确描述和属性。

Defining Visual Object Classes
方法1:继承Shape3D
方法2:to define a container class not derived from Java 3D
API classes. In this design, the visual object class would contain a Group Node or a Shape3D as the

root of the subgraph it defines. The class must define method(s) to return a reference to this root.
这种方法不是使用继承而是使用组合。
方法3:A third possible organization for a visual object class is one similar to the classes Box, Cone, Cylinder,and Sphere defined in the com.sun.j3d.utils.geometry package.
These primitives are composed of multiple Shape3D objects in a group.所以他们才是继承自Group而不是Shape3D。

The geometry of a primitive utility class does not define color.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值