Pyramid
Overview
Pyramid is a class in Aspose.3D FOSS for Java.
Inherits from: Primitive.
Parameterized pyramid.
This class provides 38 methods for working with Pyramid objects in Java programs.
Available methods include: A3DObject, Entity, Primitive, Pyramid, SceneObject, findProperty, getBottomArea, getBottomOffset, getBoundingBox, getCastShadows, getEntityRendererKey, getExcluded, and 21 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: bottomArea, bottomOffset, boundingBox, castShadows, entityRendererKey, excluded, and 8 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
bottomArea | Vector2 | Read | Area of the bottom cap. |
topArea | Vector2 | Read | Area of the top cap. |
bottomOffset | Vector3 | Read | Offset for bottom vertices. |
height | double | Read | Height of the pyramid. |
castShadows | boolean | Read | Gets whether this geometry can cast shadow. |
receiveShadows | boolean | Read | Gets whether this geometry can receive shadow. |
parentNode | Node | Read | Gets the parent node. |
parentNodes | ArrayList<Node> | Read | Gets the parent nodes. |
excluded | boolean | Read | Gets the excluded. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
entityRendererKey | EntityRendererKey | Read | Gets the entity renderer key. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
getBottomArea() → Vector2 | Area of the bottom cap. |
setBottomArea(value: Vector2) | Sets the bottom area value. |
getTopArea() → Vector2 | Area of the top cap. |
setTopArea(value: Vector2) | Sets the top area value. |
getBottomOffset() → Vector3 | Offset for bottom vertices. |
setBottomOffset(value: Vector3) | Sets the bottom offset value. |
getHeight() → double | Height of the pyramid. |
setHeight(value: double) | Sets the height value. |
Pyramid() | Construct a new pyramid instance with default bottom area(10, 10) and default height(5). |
Pyramid(xbottom: double, ybottom: double, xtop: double, ytop: double, height: double) | Construct a new pyramid instance with specified bottom area and top area and height. |
toMesh() → Mesh | Not implemented in the FOSS edition — throws at runtime. Calls toMesh on this Pyramid instance. |
getCastShadows() → boolean | Gets whether this geometry can cast shadow. |
setCastShadows(value: boolean) | Sets the cast shadows value. |
getReceiveShadows() → boolean | Gets whether this geometry can receive shadow. |
setReceiveShadows(value: boolean) | Sets the receive shadows value. |
Primitive() | Initializes a new instance of the Primitive class. |
Primitive(name: String) | Initializes a new instance of the Primitive class. |
Entity(name: String) | Calls Entity(name) on this Pyramid instance. |
getParentNode() → Node | Returns the parent node. |
setParentNode(value: Node) | Sets the parent node value. |
getParentNodes() → ArrayList<Node> | Area of the top cap. |
getExcluded() → boolean | Returns the excluded. |
setExcluded(value: boolean) | Sets the excluded value. |
getBoundingBox() → BoundingBox | Returns the bounding box. |
getEntityRendererKey() → EntityRendererKey | Returns the entity renderer key. |
SceneObject() | Parameterized pyramid. |
SceneObject(name: String) | Calls SceneObject(name) on this Pyramid instance. |
getScene() → Scene | Returns the scene. |
A3DObject() | Calls A3DObject on this Pyramid instance. |
A3DObject(name: String) | Calls A3DObject(name) on this Pyramid instance. |
getName() → String | Area of the bottom cap. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this Pyramid instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Pyramid instance. |
setProperty(name: String, value: Object) | Offset for bottom vertices. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Pyramid instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Pyramid instance. |