Primitive

Overview

Primitive is a class in Aspose.3D FOSS for Java. Inherits from: Entity, IMeshConvertible.

Base class for all primitives.

This class provides 28 methods for working with Primitive objects in Java programs. Available methods include: A3DObject, Entity, Primitive, SceneObject, findProperty, getBoundingBox, getCastShadows, getEntityRendererKey, getExcluded, getName, getParentNode, getParentNodes, and 12 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, name, parentNode, and 4 more.

Properties

NameTypeAccessDescription
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
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.
toMesh() → MeshConvert current object to mesh.
Entity(name: String)Calls Entity(name) on this Primitive instance.
getParentNode() → NodeReturns the parent node.
setParentNode(value: Node)Sets the parent node value.
getParentNodes() → ArrayList<Node>Returns the parent nodes.
getExcluded() → booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox() → BoundingBoxReturns the bounding box.
getEntityRendererKey() → EntityRendererKeyReturns the entity renderer key.
SceneObject()Base class for all primitives.
SceneObject(name: String)Calls SceneObject(name) on this Primitive instance.
getScene() → SceneReturns the scene.
A3DObject()Calls A3DObject on this Primitive instance.
A3DObject(name: String)Calls A3DObject(name) on this Primitive instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyCalls findProperty(name) on this Primitive instance.
getProperty(name: String) → ObjectCalls getProperty(name) on this Primitive instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String) → booleanCalls removeProperty(name) on this Primitive instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this Primitive instance.

See Also

 English