Class: PyramidBrushShape experimental
Beta
Extends
Constructors
Constructor
new PyramidBrushShape(
settings?):PyramidBrushShape
Beta
Parameters
settings?
depth?
number
enableHollowSettings?
boolean
height?
number
hollow?
boolean
maxHeight?
number
maxSide?
number
thickness?
number
uniform?
boolean
width?
number
xRotation?
number
yRotation?
number
zRotation?
number
Returns
PyramidBrushShape
Remarks
Constructs a new instance of the PyramidBrushShape class
Overrides
Accessors
displayName
Get Signature
get displayName():
string
Beta
Returns
string
Inherited from
icon
Get Signature
get icon():
string
Beta
Returns
string
Inherited from
id
Get Signature
get id():
string
Beta
Returns
string
Inherited from
Methods
applySetting()
applySetting(
brushSettings):void
Beta
Parameters
brushSettings
Returns
void
Overrides
calculateBounds()
calculateBounds():
BlockBoundingBox
Beta
Returns
BlockBoundingBox
Object with min and max Vector3 bounds
Remarks
Calculates the bounding box of the shape in local coordinates. Used for region allocation before shape placement.
Overrides
createSettingsPane()
createSettingsPane(
parentPane,onSettingsChange?,flatLayout?):ISubPanePropertyItem
Beta
Parameters
parentPane
onSettingsChange?
() => void
flatLayout?
boolean
Returns
Overrides
createShape()
createShape():
RelativeVolumeListBlockVolume
Beta
Returns
Overrides
createShapeAsync()
createShapeAsync(
cancelToken?,yieldInterval?):Promise<RelativeVolumeListBlockVolume>
Beta
Parameters
cancelToken?
Optional token to cancel the operation. Set cancelled to true to abort.
cancelled
boolean
yieldInterval?
number
Number of blocks to process before yielding. Default is 10000.
Returns
Promise<RelativeVolumeListBlockVolume>
Promise that resolves to the shape positions as Vector3 array.
Remarks
Asynchronously creates the shape, yielding control periodically to avoid timeouts. Use this for large shapes where createShape() may timeout.
Overrides
estimateBlockCount()
estimateBlockCount():
number
Beta
Returns
number
Estimated block count
Remarks
Returns a mathematical estimate of the number of blocks in the shape. Used for UI display and validation before shape creation.
Overrides
getSettings()
getSettings():
PyramidBrushShapeSettings
Beta
