void sgCBox::GetGeometry(SG_BOX& box_geom)
Description:
Fills the box geometry structure.
Arguments:
box_geom - return box geometry.
Returned value:
Fills the argument with box geometry. Read more about box geometry at SG_BOX.
Example:
sgCBox* bx = sgCreateBox(10.0, 15.0, 40.0);
SG_BOX bx_geo;
bx->GetGeometry(bx_geo);
assert(bx_geo.SizeX==10.0)
assert(bx_geo.SizeY==15.0);
assert(bx_geo.SizeZ==40.0);
See also:
Objects hierarchy sgCObject methods SG_BOX sgCBox::Create