Geometry

Overview

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

The base class of all renderable geometric objects (like Mesh, Box, Cylinder and etc.).

Properties

NameTypeAccessDescription
VisibleboolRead/WriteGets or sets a Boolean indicating whether the geometry is visible
DeformersIList<Deformer>ReadGets the list of Deformer objects applied to the geometry
ControlPointsIList<Vector4>ReadGets the list of control point vectors defining the geometry’s shape
CastShadowsboolRead/WriteGets or sets a Boolean indicating whether the geometry casts shadows
ReceiveShadowsboolRead/Write
VertexElementsIList<VertexElement>ReadGets the collection of vertex elements that describe the geometry’s vertex data

Methods

SignatureDescription
GetDeformers()Not implemented in the FOSS edition — throws at runtime. Gets all deformers
GetElement(type: VertexElementType)Gets a vertex element with specified type
GetVertexElementOfUV(textureMapping: TextureMapping)Gets a VertexElementUV instance with given texture mapping type
CreateElement(type: VertexElementType)Creates a vertex element with specified type and add it to geometry.
AddElement(element: VertexElement)Adds an existing vertex element to current geometry
CreateElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode)Creates a vertex element with specified type and add it to geometry.
CreateElementUV(uvMapping: TextureMapping)Creates a VertexElementUV with given texture mapping type.
CreateElementUV(uvMapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode)Creates a VertexElementUV with given texture mapping type.

See Also