Cylinder

概述

Cylinder 是 Aspose.3D FOSS 中用于 Java 的一个类。继承自:Primitive,IMeshConvertible。

参数化圆柱体。

此类为在 Java 程序中处理 Cylinder 对象提供了 56 个方法。可用的方法包括:A3DObject、Cylinder、Entity、Primitive、SceneObject、findProperty、getBoundingBox、getCastShadows、getEntityRendererKey、getExcluded、getGenerateFanCylinder、getHeight,以及另外 39 个方法。安装 Aspose.3D FOSS for Java 包后,所有公共成员对任何 Java 应用程序均可访问。属性:boundingBox、castShadows、entityRendererKey、excluded、generateFanCylinder、height,以及另外 17 项。

属性

名称类型访问描述
offsetBottomVector3读取获取底部侧的顶点变换偏移。
offsetTopVector3读取获取顶部侧面的顶点变换偏移。
generateFanCylinderboolean读取获取是否在 ThetaLength 小于 2*PI 时生成扇形圆柱,否则模型将不会被切割。
shearBottomVector2读取获取底部侧面的剪切变换,向量存储以弧度测量的 (x 轴, z 轴) 剪切值,默认值为 (0, 0) @return 底部侧面的剪切变换,vect
shearTopVector2读取获取顶部侧面的剪切变换,向量存储以弧度测量的 (x-axis, z-axis) 剪切值,默认值为 (0, 0) @return 顶部侧面的剪切变换,向量存储
radiusTopdouble读取获取 Cylinder 顶部盖的半径。
radiusBottomdouble读取获取圆柱体底部盖子的半径。
heightdouble读取获取圆柱体的高度。
radialSegmentsint读取获取径向段。
heightSegmentsint读取获取高度段。
openEndedboolean读取获取一个值,指示此 Cylinder 是否为开放端。
thetaStartdouble读取获取 theta 起始。
thetaLengthdouble读取获取 theta 的长度。
castShadowsboolean读取获取此几何体是否可以投射阴影。
receiveShadowsboolean读取获取此几何体是否可以接收阴影。
parentNodeNode读取获取父节点。
parentNodesArrayList<Node>读取获取父节点。
excludedboolean读取获取已排除的。
boundingBoxBoundingBox读取获取边界框。
entityRendererKeyEntityRendererKey读取获取实体渲染器键。
sceneScene读取获取场景。
nameString读取获取名称。
propertiesPropertyCollection读取获取属性。

方法

签名描述
Cylinder()初始化 Cylinder 类的新实例。
Cylinder(radiusTop: double, radiusBottom: double, height: double, radialSegments: int, heightSegments: int, openEnded: boolean)初始化 Cylinder 类的新实例。
getOffsetBottom() → Vector3获取底部侧面的顶点变换偏移。
setOffsetBottom(value: Vector3)设置偏移底部值。
getOffsetTop() → Vector3获取顶部侧面的顶点变换偏移。
setOffsetTop(value: Vector3)设置偏移顶部值。
getGenerateFanCylinder() → boolean获取当 ThetaLength 小于 2*PI 时是否生成扇形圆柱,否则模型将不会被切割。
setGenerateFanCylinder(value: boolean)设置生成风扇圆柱体的值。
getShearBottom() → Vector2获取底部面的剪切变换,向量存储以弧度为单位测量的 (x 轴, z 轴) 剪切值,默认值为 (0, 0) @return 底部面的剪切变换,vect
setShearBottom(value: Vector2)设置剪切底部值。
getShearTop() → Vector2获取顶部侧面的剪切变换,向量存储以弧度测量的 (x 轴, z 轴) 剪切值,默认值为 (0, 0) @return 顶部侧面的剪切变换,向量存储
setShearTop(value: Vector2)设置剪切顶部值。
getRadiusTop() → double获取圆柱体上盖的半径。
setRadiusTop(value: double)设置顶部半径值。
getRadiusBottom() → double获取圆柱体底部盖的半径。
setRadiusBottom(value: double)设置底部半径值。
getHeight() → double获取圆柱体的高度。
setHeight(value: double)设置高度值。
getRadialSegments() → int获取径向段。
setRadialSegments(value: int)设置径向分段值。
getHeightSegments() → int获取高度段。
setHeightSegments(value: int)设置高度细分段的值。
getOpenEnded() → boolean获取一个值,指示此 Cylinder 是否开放端。
setOpenEnded(value: boolean)设置开放式结束值。
getThetaStart() → double获取 theta 起始。
setThetaStart(value: double)设置 theta 起始值。
getThetaLength() → double获取 theta 的长度。
setThetaLength(value: double)设置 theta 长度值。
toMesh() → Mesh将当前对象转换为网格 @return 网格。
getCastShadows() → boolean获取此几何体是否可以投射阴影。
setCastShadows(value: boolean)设置投射阴影的值。
getReceiveShadows() → boolean获取此几何体是否可以接收阴影。
setReceiveShadows(value: boolean)设置 receive shadows 的值。
Primitive()初始化 Primitive 类的新实例。
Primitive(name: String)初始化 Primitive 类的新实例。
Entity(name: String)在此 Cylinder 实例上调用 Entity(name)。
getParentNode() → Node返回父节点。
setParentNode(value: Node)设置父节点的值。
getParentNodes() → ArrayList<Node>返回父节点。
getExcluded() → boolean返回被排除的。
setExcluded(value: boolean)设置排除的值。
getBoundingBox() → BoundingBox初始化 Cylinder 类的新实例。
getEntityRendererKey() → EntityRendererKey返回实体渲染器键。
SceneObject()在此 Cylinder 实例上调用 SceneObject。
SceneObject(name: String)在此 Cylinder 实例上调用 SceneObject(name)。
getScene() → Scene返回场景。
A3DObject()参数化圆柱体。当 radiusTop/radiusBottom 中有一个为零时,它也可用于表示锥体。
A3DObject(name: String)在此 Cylinder 实例上调用 A3DObject(name)。
getName() → String返回名称。
setName(name: String)设置 name 值。
getProperties() → PropertyCollection初始化 Cylinder 类的新实例。
findProperty(name: String) → Property在此 Cylinder 实例上调用 findProperty(name)。
getProperty(name: String) → Object在此 Cylinder 实例上调用 getProperty(name)。
setProperty(name: String, value: Object)设置属性值。
removeProperty(name: String) → boolean在此 Cylinder 实例上调用 removeProperty(name)。
removeProperty(property: Property) → boolean在此 Cylinder 实例上调用 removeProperty(property)。

另请参阅

 中文