Geometry

Overview

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

Geometry.Geometry creates a new Geometry with default name.

This class provides 16 methods for working with Geometry objects in Java programs. Available methods include: Geometry, addElement, createElement, createElementUV, getCastShadows, getControlPoints, getDeformers, getDeformers2, getElement, getReceiveShadows, getVertexElementOfUV, getVertexElements, and 4 additional methods. All exported members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: castShadows, controlPoints, deformers, deformers2, receiveShadows, vertexElements, and 1 more.

Description

Geometry is a class in the Aspose.3D FOSS library for Java that exposes 32 methods and 15 properties for programmatic use. It extends Entity, inheriting shared functionality from its parent type.

Core capabilities include: boolean; boolean; boolean. These operations enable developers to integrate geometry functionality directly into Java applications.

The class also provides the visible property (gets the visible), the castShadows property (gets the cast shadows), the receiveShadows property (gets the receive shadows).

The class offers 5 constructor overloads, allowing flexible initialization depending on the calling context.

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.

Methods

SignatureDescription
Geometry()Creates a new Geometry with default name
Geometry(name: String)
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)VertexElement
addElement(element: VertexElement)Adds the provided vertex element to the geometry’s element collection
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)VertexElementUV
getDeformers2()java.util.Collection<T>Returns the deformers2.

See Also