---
Product: Aspose.3D
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/java/Pyramid
---

# Pyramid

## Overview

`Pyramid` is a class in Aspose.3D FOSS for Java.
Inherits from: `Primitive`.

Parameterized pyramid.

This class provides 33 methods for working with Pyramid objects in Java programs.
Available methods include: `A3DObject`, `Entity`, `Primitive`, `Pyramid`, `SceneObject`, `findProperty`, `getBottomArea`, `getBottomOffset`, `getBoundingBox`, `getCastShadows`, `getExcluded`, `getHeight`, and 20 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`, `excluded`, `height`, and 7 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` | Read | Gets the parent nodes. |
| `excluded` | `boolean` | Read | Gets the excluded. |
| `boundingBox` | `BoundingBox` | Read | Gets the bounding box. |
| `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)` | The inner radius of the rectangular torus. |
| `getReceiveShadows()` → `boolean` | Gets whether this geometry can receive shadow. |
| `setReceiveShadows(value: boolean)` | The outer radius of the rectangular torus. |
| `Primitive(name: String)` | Initializes a new instance of the Primitive class. |
| `Entity()` | NURBS curve is a curve represented by NURBS(Non-uniform rational basis spline), A NURBS curve is defined by its getOrder(), a set of weighted Geometry.getControlPoints() and a getKnotVectors() The w component in control point is used as control point's weight, whatever it is a CurveDimension.TWO_DIMENSIONAL or CurveDimension.THREE_DIMENSIONAL |
| `getParentNode()` → `Node` | Constructor of instance. |
| `setParentNode(value: Node)` | The Boolean operator used in the operation to create the result mesh. |
| `getParentNodes()` → `ArrayList` | Protected constructor to allow derived classes to set name. |
| `getExcluded()` → `boolean` | The Boolean operator used in the operation to create the result mesh. |
| `setExcluded(value: boolean)` | Sets the excluded value. |
| `getBoundingBox()` → `BoundingBox` | The first operand of the Boolean operator. |
| `SceneObject()` | Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances. |
| `getScene()` → `Scene` | Constructor of BooleanOperator. |
| `A3DObject()` | Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero. |
| `getName()` → `String` | The segments of the curve. |
| `setName(name: String)` | Constructs a CircleShape profile with specified radius. |
| `getProperties()` → `PropertyCollection` | Initializes a new instance of Cylinder class. |
| `findProperty(name: String)` → `Property` | Initializes a new instance of the Bone class. |
| `getProperty(name: String)` → `Object` | Gets the transform matrix of the node in current pose. |
| `setProperty(name: String, value: Object)` | Gets the width segments. |
| `removeProperty(name: String)` → `boolean` | Gets flip coordinate system of control points/normal during importing/exporting. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)