RevolvedAreaSolid
Contents
[
Hide
]RevolvedAreaSolid class
This class represents a solid model by revolving a cross section provided by a profile about an axis.
Methods
constructor
Name | Description |
---|---|
constructor() |
Result:
getAngleStart
Name | Description |
---|---|
getAngleStart() | Gets or sets the starting angle of the revolving procedure, measured in radian, default value is 0. |
Result:
setAngleStart
Name | Description |
---|---|
setAngleStart(value) | Gets or sets the starting angle of the revolving procedure, measured in radian, default value is 0. |
Result:
getAngleEnd
Name | Description |
---|---|
getAngleEnd() | Gets or sets the ending angle of the revolving procedure, measured in radian, default value is pi. |
Result:
setAngleEnd
Name | Description |
---|---|
setAngleEnd(value) | Gets or sets the ending angle of the revolving procedure, measured in radian, default value is pi. |
Result:
getAxis
Name | Description |
---|---|
getAxis() | Gets or sets the axis direction, default value is (0, 1, 0). |
Result:
setAxis
Name | Description |
---|---|
setAxis(value) | Gets or sets the axis direction, default value is (0, 1, 0). |
Result:
getOrigin
Name | Description |
---|---|
getOrigin() | Gets or sets the origin point of the revolving, default value is (0, 0, 0). |
Result:
setOrigin
Name | Description |
---|---|
setOrigin(value) | Gets or sets the origin point of the revolving, default value is (0, 0, 0). |
Result:
getShape
Name | Description |
---|---|
getShape() | Gets or sets the base profile used to revolve. |
Result:
setShape
Name | Description |
---|---|
setShape(value) | Gets or sets the base profile used to revolve. |
Result:
getParentNodes
Name | Description |
---|---|
getParentNodes() | Gets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing The nodes. |
Result:
getExcluded
Name | Description |
---|---|
getExcluded() | Gets or sets whether to exclude this entity during exporting. |
Result:
setExcluded
Name | Description |
---|---|
setExcluded(value) | Gets or sets whether to exclude this entity during exporting. |
Result:
getParentNode
Name | Description |
---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
getScene() | Gets the scene that this object belongs to |
Result:
getName
Name | Description |
---|---|
getName() | Gets or sets the name. The name. |
Result:
setName
Name | Description |
---|---|
setName(value) | Gets or sets the name. The name. |
Result:
getProperties
Name | Description |
---|---|
getProperties() | Gets the collection of all properties. |
Result:
toMesh
Name | Description |
---|---|
toMesh() | Convert the RevolvedAreaSolid into a mesh. |
Result: Mesh
getBoundingBox
Name | Description |
---|---|
getBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
Result: Mesh
getEntityRendererKey
Name | Description |
---|---|
getEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
Result: EntityRendererKey
removeProperty
Name | Description |
---|---|
removeProperty(property) | Removes a dynamic property. |
Parameters:
Name | Type | Description |
---|---|---|
property | Property | Which property to remove |
Result: boolean
removeProperty
Name | Description |
---|---|
removeProperty(property) | Remove the specified property identified by name |
Parameters:
Name | Type | Description |
---|---|---|
propert | String | null |
Result: boolean
getProperty
Name | Description |
---|---|
getProperty(property) | Get the value of specified property |
Parameters:
Name | Type | Description |
---|---|---|
property | String | Property name |
Result: Object
setProperty
Name | Description |
---|---|
setProperty(property, value) | Sets the value of specified property |
Parameters:
Name | Type | Description |
---|---|---|
property | String | Property name |
value | Object | The value of the property |
Result: Object
findProperty
Name | Description |
---|---|
findProperty(propertyName) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Parameters:
Name | Type | Description |
---|---|---|
propertyName | String | Property name. |
Result: Property