Cylinder
概述
Cylinder 是一个类在Aspose.3D FOSS的.NET中. 继承人: Primitive.
参数化轮.
本类提供了23种方法,用于在NET程序中与 Cylinder 对象工作. 有的方法包括: A3DObject, AddElement, CreateElement, CreateElementUV, Cylinder, Entity, FindProperty, Geometry, GetBoundingBox, GetDeformers, GetElement, GetEntityRendererKey,另外7种方法. 所有公众成员在安装了Aspose.3D FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: CastShadows, ControlPoints, Deformers, Excluded, GenerateFanCylinder, Height,另外还有19个.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
OffsetBottom | Vector3 | 阅读/写作 | 得到或设置顶点转换偏移的下面. |
OffsetTop | Vector3 | 阅读/写作 | 得到或设置顶点转换偏移的上侧. |
GenerateFanCylinder | bool | 阅读/写作 | 得到或设置是否生成风扇式当ThetaLength小于2*PI,否则模型不会切割. |
ShearBottom | Vector2 | 阅读/写作 | 得到或设置下面的剪切变换,向量存储 (x轴,z轴) 的剪接值以半径计测,默认值为 (0, 0) |
ShearTop | Vector2 | 阅读/写作 | 得到或设置上方的剪切变换,向量存储 (x轴,z轴) 的剪接值以半径计测,默认值为 (0, 0) |
RadiusTop | double | 阅读/写作 | 获取或设置圆柱体顶部盖的半径。. |
RadiusBottom | double | 阅读/写作 | 获取或设置圆柱体底部盖的半径。. |
Height | double | 阅读/写作 | 获取或设置圆柱体的高度。. |
RadialSegments | int | 阅读/写作 | 获取或设置径向段。. |
HeightSegments | int | 阅读/写作 | 获取或设置高度段。. |
OpenEnded | bool | 阅读/写作 | 获取或设置一个值,表示该是否开端. |
ThetaStart | double | 阅读/写作 | 获取或设置 theta start。. |
ThetaLength | double | 阅读/写作 | 获取或设置 theta 的长度。. |
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 | 阅读 | 获取所有属性的集合。. |
方法
| Signature | 描述情况 |
|---|---|
Cylinder() | 启动一个新的Cylinder类实例. |
Cylinder(radius: double, height: double) | 启动一个新的Cylinder类实例. |
Cylinder(radiusTop: double, radiusBottom: double, height: double) | 启动一个新的Cylinder类实例. |
Cylinder(radiusTop: double, radiusBottom: double, height: double, radialSegments: int, heightSegments: int, openEnded: bool) | 启动一个新的Cylinder类实例. |
Cylinder(name: string, radiusTop: double, radiusBottom: double, height: double, radialSegments: int, heightSegments: int, openEnded: bool, thetaStart: double, thetaLength: double) | 启动一个新的Cylinder类实例. |
ToMesh() | 将电流对象转换为网格 |
Primitive(name: string) | 启动一个新的类实例. |
Geometry(name: string) | 启动一个新的几何类实例. |
GetDeformers() | 获取所有变形器 |
GetElement(type: VertexElementType) | 获取具有指定类型的顶点元素 |
GetVertexElementOfUV(textureMapping: TextureMapping) | 得到一个给定的纹理映射类型的 VertexElementUV实例. |
CreateElement(type: VertexElementType) | 创建一个具有指定类型的顶点元素并将其添加到几何结构中. |
AddElement(element: VertexElement) | 将现有顶点元素添加到当前几何结构中. |
CreateElementUV(uvMapping: TextureMapping) | 创建一个 VertexElementUV,给定质地映射类型. |
Entity(name: string) | 启动一个新的实体类. |
GetBoundingBox() | 得到当前实体在物空间坐标系中的界定框. |
GetEntityRendererKey() | 获取在表现器中注册的实体表达器密钥. |
SceneObject(name: string) | 用默认名称初始化 SceneObject |
A3DObject() | 启动一个没有名称的A3DOobject类新实例. |
RemoveProperty(property: Property) | 删除动态属性. |
GetProperty(property: string) | 获取指定属性的值 |
SetProperty(property: string, value: object?) | 设置指定属性的值 |
FindProperty(propertyName: string) | 找到了房地产. |