void   sgCTorus::GetGeometry(SG_TORUS& torus_geom)

 

Description:

Fills the torus geometry structure.

 

Arguments:

torus_geom - return torus geometry.

 

Returned value:

Fills the argument with torus geometry. Read more about torus geometry at SG_TORUS

 

Example:

 

sgCTorus*     tor = sgCreateTorus(10.0, 15.0, 36, 36);

SG_TORUS     tor_geo;

tor->GetGeometry(tor_geo);

assert(tor_geo.Radius1==10.0)

assert(tor_geo.Radius2==15.0);

assert(tor_geo.MeridiansCount1==36);

 

See also:

Objects hierarchy   sgCObject methods   SG_TORUS sgCTorus::Create