Extends: CoreModeler::Geometry::Shape, CoreModeler::Geometry::IDrawable

A 3D rectangular box shape.
Methods
Box
CoreModeler::Geometry::Box::Box(double width, double height, double depth)
Constructs a box with specified dimensions.
| Parameter | Type | Description |
|---|---|---|
| width | double | Width of the box. |
| height | double | Height of the box. |
| depth | double | Depth of the box. |
getVolume
double CoreModeler::Geometry::Box::getVolume() const override
Inherited from Shape.
draw
void CoreModeler::Geometry::Box::draw() override
Inherited from IDrawable.
draw
int CoreModeler::Geometry::Box::draw(RenderMode mode) override
Inherited from IDrawable.
Note:
Missing
Returns:
and
| Parameter | Type | Description |
|---|---|---|
| mode | RenderMode |
scale
void CoreModeler::Geometry::Box::scale(double factor)
Scale the box by a uniform 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.
Note:
Missing
| Parameter | Type | Description |
|---|---|---|
| xFactor | double | Width scale factor. |
| yFactor | double | and |
| zFactor | double | tags. |
Inherited Members
~Shape
(inherited from Shape)
~IDrawable
(inherited from IDrawable)
Generated with Flude
Copyright © 2026