void   sgCCylinder::GetGeometry(SG_CYLINDER& cyl_geom)

 

Description:

Fills the cylinder geometry structure.

 

Arguments:

cyl_geom - the return cylinder geometry.

 

Returned value:

Fills the argument with cylinder geometry. Read more about cylinder geometry at SG_CYLINDER

.

 

Example:

 

sgCCylinder*   cyl = sgCreateCylinder(10.0, 15.0, 24);

SG_CYLINDER     cyl_geo;

cyl->GetGeometry(cyl_geo);

assert(cyl_geo.Radius==10.0)

assert(cyl_geo.Height==15.0);

assert(cyl_geo.MeridiansCount==24);

 

See also:

Objects hierarchy   sgCObject methods   SG_CYLINDER sgCCylinder::Create