Geometry

Overview

Geometry is a class in Aspose.3D FOSS for Java. Inherits from: Entity.

Geometry objects expose control points via getControlPoints() and allow creation of custom vertex elements with createElement(type).

This class provides 41 methods for working with Geometry objects in Java programs. Available methods include: A3DObject, Entity, Geometry, SceneObject, addDeformer, addElement, createElement, createElementUV, findProperty, getBoundingBox, getCastShadows, getControlPoints, 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, controlPoints, deformers, deformers2, entityRendererKey, and 9 more.

Properties

NameTypeAccessDescription
visiblebooleanReadGets the visible.
castShadowsbooleanReadGets the cast shadows.
receiveShadowsbooleanReadGets the receive shadows.
controlPointsjava.util.List<Vector4>ReadGets the control points.
vertexElementsjava.util.List<VertexElement>ReadGets the vertex elements.
deformersjava.util.List<Deformer>ReadGets the deformers.
deformers2java.util.Collection<T>ReadGets the deformers2.
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
Geometry()Creates a new Geometry with default name
Geometry(name: String)Calls Geometry(name) on this Geometry instance.
getVisible()booleanReturns the visible.
setVisible(value: boolean)Sets the visible value.
getCastShadows()booleanReturns the cast shadows.
setCastShadows(value: boolean)Sets the cast shadows value.
getReceiveShadows()booleanReturns the receive shadows.
setReceiveShadows(value: boolean)Sets the receive shadows value.
getControlPoints()java.util.List<Vector4>Returns the control points.
getVertexElements()java.util.List<VertexElement>Returns the vertex elements.
getDeformers()java.util.List<Deformer>Returns the deformers.
getElement(type: VertexElementType)VertexElementReturns the vertex element of the specified type, or null if absent
createElement(type: VertexElementType)VertexElementCreates a new vertex element of the given type with default mapping and reference modes
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode)VertexElementCalls createElement(type, mappingMode, referenceMode) on this Geometry instance.
addElement(element: VertexElement)Adds the provided vertex element to the geometry’s element collection
addDeformer(deformer: Deformer)Adds a deformer to this geometry and sets the owner reference.
getVertexElementOfUV(mapping: TextureMapping)VertexElementUVReturns the UV vertex element for the specified texture mapping
createElementUV(mapping: TextureMapping)VertexElementUVCreates a UV vertex element for the given texture mapping with default modes
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode)VertexElementUVCalls createElementUV(mapping, mappingMode, referenceMode) on this Geometry instance.
getDeformers2()java.util.Collection<T>Returns the deformers2.
Entity(name: String)Calls Entity(name) on this Geometry 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()Calls SceneObject on this Geometry instance.
SceneObject(name: String)Calls SceneObject(name) on this Geometry instance.
getScene()SceneReturns the scene.
A3DObject()Calls A3DObject on this Geometry instance.
A3DObject(name: String)Calls A3DObject(name) on this Geometry instance.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this Geometry instance.
getProperty(name: String)ObjectCalls getProperty(name) on this Geometry instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this Geometry instance.
removeProperty(property: Property)booleanCalls removeProperty(property) on this Geometry instance.

See Also

 English