RectangularTorus
概述
RectangularTorus 是 Aspose.3D FOSS for .NET 中的 class。继承自:Primitive、INamedObject、IMeshConvertible。
参数化矩形 torus。
此 class 提供 25 个 methods,用于在 .NET 程序中处理 RectangularTorus 对象。可用的 methods 包括:A3DObject、AddElement、CreateElement、CreateElementUV、Entity、FindProperty、Geometry、GetBoundingBox、GetDeformers、GetElement、GetEntityRendererKey、GetProperty,以及另外 7 个 methods。所有 public 成员在安装了 Aspose.3D FOSS for .NET 包后,对任何 .NET 应用程序均可访问。属性:AngleStart、Arc、CastShadows、ControlPoints、Deformers、Excluded,以及另外 12 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
InnerRadius | double | 读写 | 矩形环面的内半径。 |
OuterRadius | double | 读写 | 矩形环面的外半径。 |
Height | double | 读写 | 矩形环面的高度。 |
Arc | double | 读写 | 弧的总角度,以弧度计。 |
AngleStart | double | 读写 | 弧的起始角度,以弧度计。 |
RadialSegments | int | 读写 | 径向段,默认值为 10 |
CastShadows | bool | 读写 | 获取或设置此几何体是否可以投射阴影 |
ReceiveShadows | bool | 读写 | 获取或设置此几何体是否可以接收阴影。 |
Visible | bool | 读写 | 获取或设置几何体是否可见 |
Deformers | IList<Deformer> | 读取 | 获取此几何体关联的所有变形器。 |
ControlPoints | IArrayList<Vector4> | 读取 | 获取所有控制点 |
VertexElements | IList<VertexElement> | 读取 | 获取所有顶点元素 |
Excluded | bool | 读写 | 获取或设置在导出期间是否排除此实体。 |
ParentNodes | List<Node> | 读取 | 获取所有父节点,一个实体可以附加到多个父节点以进行几何实例化。 |
ParentNode | Node | 读写 | 获取或设置第一个父节点,如果设置了第一个父节点,则此实体将从其他父节点中分离。 |
Scene | Scene | 读取 | 获取此对象所属的场景 |
Name | string | 读写 | 获取或设置名称。 |
Properties | PropertyCollection | 读取 | 获取所有属性的集合。 |
方法
| 签名 | 描述 |
|---|---|
RectangularTorus() | RectangularTorus 的构造函数 |
RectangularTorus(name: string) | RectangularTorus 的构造函数 实体名称 |
ToMesh() | 将此原始类型转换为网格 |
Primitive(name: string) | 初始化该类的新实例。 |
Geometry(name: string) | 初始化 Geometry 类的新实例。 |
GetDeformers() | 获取所有变形器 |
GetElement(type: VertexElementType) | 获取具有指定类型的顶点元素 |
GetVertexElementOfUV(textureMapping: TextureMapping) | 获取具有给定纹理映射类型的 VertexElementUV 实例。 |
CreateElement(type: VertexElementType) | 创建一个具有指定类型的顶点元素并将其添加到几何体中。 |
AddElement(element: VertexElement) | 将已有的顶点元素添加到当前几何体中。 |
CreateElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) | 创建一个具有指定类型的顶点元素并将其添加到几何体中。 |
CreateElementUV(uvMapping: TextureMapping) | 创建一个 VertexElementUV,使用给定的纹理映射类型。 |
CreateElementUV(uvMapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) | 使用给定的纹理映射类型创建一个 VertexElementUV。 |
Entity(name: string) | 初始化 Entity 类的新实例。 |
GetBoundingBox() | 获取当前实体在其对象空间坐标系中的包围盒。 |
GetEntityRendererKey() | 获取已在渲染器中注册的实体渲染器的键。 |
SceneObject(name: string) | 使用默认名称初始化一个 SceneObject |
SceneObject() | 初始化一个 SceneObject。 |
A3DObject() | 初始化 A3DObject 类的新实例,且没有名称。 |
A3DObject(name: string) | 初始化 A3DObject 类的新实例。 |
RemoveProperty(property: Property) | 移除动态属性。 |
RemoveProperty(property: string) | 删除通过名称标识的指定属性 |
GetProperty(property: string) | 获取指定属性的值 |
SetProperty(property: string, value: object?) | 设置指定属性的值 |
FindProperty(propertyName: string) | 查找属性。 |