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

NameTypeAccessDescription
bottomAreaVector2ReadArea of the bottom cap.
topAreaVector2ReadArea of the top cap.
bottomOffsetVector3ReadOffset for bottom vertices.
heightdoubleReadHeight of the pyramid.
castShadowsbooleanReadGets whether this geometry can cast shadow.
receiveShadowsbooleanReadGets whether this geometry can receive shadow.
parentNodeNodeReadGets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanReadGets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
entityRendererKeyEntityRendererKeyReadGets the entity renderer key.
sceneSceneReadGets the scene.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
getBottomArea()Vector2Area of the bottom cap.
setBottomArea(value: Vector2)Sets the bottom area value.
getTopArea()Vector2Area of the top cap.
setTopArea(value: Vector2)Sets the top area value.
getBottomOffset()Vector3Offset for bottom vertices.
setBottomOffset(value: Vector3)Sets the bottom offset value.
getHeight()doubleHeight 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()MeshNot implemented in the FOSS edition — throws at runtime. Calls toMesh on this Pyramid instance.
getCastShadows()booleanGets whether this geometry can cast shadow.
setCastShadows(value: boolean)Sets the cast shadows value.
getReceiveShadows()booleanGets 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()NodeReturns the parent node.
setParentNode(value: Node)Sets the parent node value.
getParentNodes()ArrayList<Node>Area of the top cap.
getExcluded()booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox()BoundingBoxReturns the bounding box.
getEntityRendererKey()EntityRendererKeyReturns the entity renderer key.
SceneObject()Parameterized pyramid.
SceneObject(name: String)Calls SceneObject(name) on this Pyramid instance.
getScene()SceneReturns the scene.
A3DObject()Calls A3DObject on this Pyramid instance.
A3DObject(name: String)Calls A3DObject(name) on this Pyramid instance.
getName()StringArea of the bottom cap.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this Pyramid instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Pyramid instance.
setProperty(name: String, value: Object)Offset for bottom vertices.
removeProperty(name: String)booleanCalls removeProperty(name) on this Pyramid instance.
removeProperty(property: Property)booleanCalls removeProperty(property) on this Pyramid instance.

See Also

 English