Extends: CoreModeler.Geometry.Shape
A 3D rectangular box shape.
Instance Variables
transient long CoreModeler.Geometry.Box.swigCPtr
Methods
Box
CoreModeler.Geometry.Box.Box(long cPtr, boolean cMemoryOwn)
| Parameter | Type | Description |
|---|---|---|
| cPtr | long | |
| cMemoryOwn | boolean |
Box
CoreModeler.Geometry.Box.Box(double width, double height, double depth)
Constructs a box with specified dimensions.
width
Width of the box.
height
Height of the box.
depth
Depth of the box.
Width of the box.
Height of the box.
Depth of the box.
| Parameter | Type | Description |
|---|---|---|
| width | double | Width of the box. |
| height | double | Height of the box. |
| depth | double | Depth of the box. |
finalize
void CoreModeler.Geometry.Box.finalize()
getCPtr
static long CoreModeler.Geometry.Box.getCPtr(Box obj)
| Parameter | Type | Description |
|---|---|---|
| obj | Box |
delete
synchronized void CoreModeler.Geometry.Box.delete()
getVolume
double CoreModeler.Geometry.Box.getVolume()
Inherited from Shape.
renderToScreen
void CoreModeler.Geometry.Box.renderToScreen()
Inherited from IDrawable.
renderToScreen
int CoreModeler.Geometry.Box.renderToScreen(CoreModeler.RenderMode mode)
Inherited from IDrawable. Note: Missing and
and
| Parameter | Type | Description |
|---|---|---|
| mode | CoreModeler.RenderMode |
scale
void CoreModeler.Geometry.Box.scale(double factor)
Scale the box by a uniform factor.
factor
Uniform scale factor.
Uniform scale factor.
| Parameter | Type | Description |
|---|---|---|
| factor | double | Uniform scale factor. |
scale
void CoreModeler.Geometry.Box.scale(double xFactor, double yFactor, double zFactor)
Scale the box non-uniformly by width, height, and depth factors. Note: Overloaded method.
xFactor
Width scale factor. Note: Missing
yFactor
and
zFactor
tags.
Width scale factor. Note: Missing
and
tags.
| Parameter | Type | Description |
|---|---|---|
| xFactor | double | Width scale factor. Note: Missing |
| yFactor | double | and |
| zFactor | double | tags. |