Plane
Overview
Plane is a class in Aspose.3D FOSS for Java.
Inherits from: Primitive.
Parameterized plane.
This class provides 41 methods for working with Plane objects in Java programs.
Available methods include: A3DObject, Entity, Plane, Primitive, SceneObject, findProperty, getBoundingBox, getCastShadows, getEntityRendererKey, getExcluded, getLength, getLengthSegments, and 23 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: boundingBox, castShadows, entityRendererKey, excluded, length, lengthSegments, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
up | Vector3 | Read | Gets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the plane |
| / | |||
length | double | Read | Gets the length of the plane. |
width | double | Read | Gets the width of the plane. |
lengthSegments | int | Read | Gets the length segments. |
widthSegments | int | Read | Gets the width segments. |
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 |
|---|---|
Plane() | Initializes a new instance of the Plane with default size 1x1. |
Plane(length: double, width: double) | Initializes a new instance of the Plane. |
Plane(name: String, length: double, width: double, lengthSegments: int, widthSegments: int) | Initializes a new instance of the Plane. |
getUp() → Vector3 | Gets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the plane |
| / | |
setUp(value: Vector3) | Sets the up value. |
getLength() → double | Gets the length of the plane. |
setLength(value: double) | Sets the length value. |
getWidth() → double | Gets the width of the plane. |
setWidth(value: double) | Sets the width value. |
getLengthSegments() → int | Gets the length segments. |
setLengthSegments(value: int) | Sets the length segments value. |
getWidthSegments() → int | Gets the width segments. |
setWidthSegments(value: int) | Sets the width segments value. |
toMesh() → Mesh | Convert current object to mesh. |
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 Plane instance. |
getParentNode() → Node | Returns the parent node. |
setParentNode(value: Node) | Sets the parent node value. |
getParentNodes() → ArrayList<Node> | Returns the parent nodes. |
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 plane. |
SceneObject(name: String) | Calls SceneObject(name) on this Plane instance. |
getScene() → Scene | Returns the scene. |
A3DObject() | Calls A3DObject on this Plane instance. |
A3DObject(name: String) | Calls A3DObject(name) on this Plane instance. |
getName() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Initializes a new instance of the Plane. |
findProperty(name: String) → Property | Calls findProperty(name) on this Plane instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Plane instance. |
setProperty(name: String, value: Object) | Initializes a new instance of the Plane. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Plane instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Plane instance. |