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

Inheritance Diagram

A 3D rectangular box shape.

Methods

Box

CoreModeler::Geometry::Box::Box(double width, double height, double depth)

Constructs a box with specified dimensions.

ParameterTypeDescription
widthdoubleWidth of the box.
heightdoubleHeight of the box.
depthdoubleDepth 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

ParameterTypeDescription
modeRenderMode

scale

void CoreModeler::Geometry::Box::scale(double factor)

Scale the box by a uniform factor.

ParameterTypeDescription
factordoubleUniform 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

ParameterTypeDescription
xFactordoubleWidth scale factor.
yFactordoubleand
zFactordoubletags.

Inherited Members

~Shape

(inherited from Shape)

~IDrawable

(inherited from IDrawable)

Generated with Flude

Copyright © 2026