Geometry

Overview

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

Geometry.Geometry creates a new Geometry with default name.

Properties

NameTypeAccessDescription
visiblebooleanReadProperty indicates whether the geometry is rendered
castShadowsbooleanReadProperty indicates if the geometry casts shadows
receiveShadowsbooleanReadProperty indicates if the geometry receives shadows
controlPointsjava.util.List<Vector4>ReadProperty provides access to the geometry’s control point list
vertexElementsjava.util.List<VertexElement>ReadProperty provides access to the geometry’s vertex element list
deformersjava.util.List<Deformer>ReadProperty provides access to the geometry’s deformer list
deformers2java.util.Collection<T>ReadProperty provides access to a generic collection of deformers

Methods

SignatureDescription
Geometry()Creates a new Geometry with default name
Geometry(name: String)
getVisible()booleanReturns true if the geometry is visible in the scene
setVisible(value: boolean)Sets the geometry’s visibility flag to the given value
getCastShadows()booleanReturns true if the geometry casts shadows
setCastShadows(value: boolean)Sets whether the geometry casts shadows
getReceiveShadows()booleanReturns true if the geometry receives shadows
setReceiveShadows(value: boolean)Sets whether the geometry receives shadows
getControlPoints()java.util.List<Vector4>Returns the list of control point vectors defining the geometry
getVertexElements()java.util.List<VertexElement>Returns the list of vertex elements associated with the geometry
getDeformers()java.util.List<Deformer>Returns the list of deformers applied to the geometry
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 a collection of deformers of generic type T

See Also