LinearExtrusion

LinearExtrusion class

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

Methods

constructor

NameDescription
constructor()Constructor of instance LinearExtrusion.

Result:


constructor_overload

NameDescription
constructor_overload(shape, height)Constructor of instance LinearExtrusion.

Result:


getShape

NameDescription
getShape()The base shape to be extruded.

Result:


setShape

NameDescription
setShape(value)The base shape to be extruded.

Result:


getDirection

NameDescription
getDirection()The direction of extrusion, default value is (0, 0, 1)

Result:


setDirection

NameDescription
setDirection(value)The direction of extrusion, default value is (0, 0, 1)

Result:


getHeight

NameDescription
getHeight()The height of the extruded geometry, default value is 1.0

Result:


setHeight

NameDescription
setHeight(value)The height of the extruded geometry, default value is 1.0

Result:


getSlices

NameDescription
getSlices()The slices of the twisted extruded geometry, default value is 1.

Result:


setSlices

NameDescription
setSlices(value)The slices of the twisted extruded geometry, default value is 1.

Result:


getCenter

NameDescription
getCenter()If this value is false, the linear extrusion Z range is from 0 to height, otherwise the range is from -height/2 to height/2.

Result:


setCenter

NameDescription
setCenter(value)If this value is false, the linear extrusion Z range is from 0 to height, otherwise the range is from -height/2 to height/2.

Result:


getTwistOffset

NameDescription
getTwistOffset()The offset that used in twisting, default value is (0, 0, 0).

Result:


setTwistOffset

NameDescription
setTwistOffset(value)The offset that used in twisting, default value is (0, 0, 0).

Result:


getTwist

NameDescription
getTwist()The number of degrees of through which the shape is extruded.

Result:


setTwist

NameDescription
setTwist(value)The number of degrees of through which the shape is extruded.

Result:


getParentNodes

NameDescription
getParentNodes()Gets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing The nodes.

Result:


getExcluded

NameDescription
getExcluded()Gets or sets whether to exclude this entity during exporting.

Result:


setExcluded

NameDescription
setExcluded(value)Gets or sets whether to exclude this entity during exporting.

Result:


getParentNode

NameDescription
getParentNode()Gets or sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes. The parent node.

Result:


setParentNode

NameDescription
setParentNode(value)Gets or sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes. The parent node.

Result:


getScene

NameDescription
getScene()Gets the scene that this object belongs to

Result:


getName

NameDescription
getName()Gets or sets the name. The name.

Result:


setName

NameDescription
setName(value)Gets or sets the name. The name.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


toMesh

NameDescription
toMesh()Convert the extrusion to mesh.

Result: Mesh


getBoundingBox

NameDescription
getBoundingBox()Gets the bounding box of current entity in its object space coordinate system.

Result: Mesh


getEntityRendererKey

NameDescription
getEntityRendererKey()Gets the key of the entity renderer registered in the renderer

Result: EntityRendererKey


removeProperty

NameDescription
removeProperty(property)Removes a dynamic property.

Parameters:

NameTypeDescription
propertyPropertyWhich property to remove

Result: boolean


removeProperty

NameDescription
removeProperty(property)Remove the specified property identified by name

Parameters:

NameTypeDescription
propertStringnull

Result: boolean


getProperty

NameDescription
getProperty(property)Get the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name

Result: Object


setProperty

NameDescription
setProperty(property, value)Sets the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name
valueObjectThe value of the property

Result: Object


findProperty

NameDescription
findProperty(propertyName)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

NameTypeDescription
propertyNameStringProperty name.

Result: Property