LinearExtrusion

LinearExtrusion

Overview

LinearExtrusion is a class in Aspose.3D FOSS for .NET. Inherits from: Entity, INamedObject, IMeshConvertible.

Linear extrusion takes a 2D shape as input and extends the shape in the 3rd dimension.

This class provides 12 methods for working with LinearExtrusion objects in .NET programs. Available methods include: A3DObject, Entity, FindProperty, GetBoundingBox, GetEntityRendererKey, GetProperty, LinearExtrusion, RemoveProperty, SceneObject, SetProperty, ToMesh. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: Center, Direction, Excluded, Height, Name, ParentNode, and 7 more.

Properties

NameTypeAccessDescription
ShapeProfileRead/WriteThe base shape to be extruded.
DirectionVector3Read/WriteThe direction of extrusion, default value is (0, 0, 1)
HeightdoubleRead/WriteThe height of the extruded geometry, default value is 1.0
SlicesintRead/WriteThe slices of the twisted extruded geometry, default value is 1.
CenterboolRead/WriteIf this value is false, the linear extrusion Z range is from 0 to height, otherwise the range is from -height/2 to height/2.
TwistOffsetVector3Read/WriteThe offset that used in twisting, default value is (0, 0, 0).
TwistdoubleRead/WriteThe number of degrees of through which the shape is extruded.
ExcludedboolRead/WriteGets or sets whether to exclude this entity during exporting.
ParentNodesList<Node>ReadGets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing
ParentNodeNodeRead/WriteGets or sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
SceneSceneReadGets the scene that this object belongs to
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the collection of all properties.

Methods

SignatureDescription
LinearExtrusion()Constructor of instance
LinearExtrusion(shape: Profile, height: double)Constructor of instance The base shape to be extruded The height of the extruded geometry
ToMesh()Not implemented in the FOSS edition — throws at runtime. Convert the extrusion to mesh.
Entity(name: string)Initializes a new instance of the Entity class.
GetBoundingBox()Gets the bounding box of current entity in its object space coordinate system.
GetEntityRendererKey()Gets the key of the entity renderer registered in the renderer
SceneObject(name: string)Initialize an SceneObject with a default name
A3DObject()Initializes a new instance of the A3DObject class with no name.
RemoveProperty(property: Property)Removes a dynamic property.
GetProperty(property: string)Get the value of specified property
SetProperty(property: string, value: object?)Sets the value of specified property
FindProperty(propertyName: string)Finds the property.

See Also

 English