void   sgCCone::GetGeometry(SG_CONE& cone_geom)

 

Description:

Fills the cone geometry structure.

 

Arguments:

cone_geom - return cone geometry.

 

Returned value:

Fills the argument with cone geometry. Read more about cone geometry at SG_CONE

 

Example:

 

sgCCone*      cn = sgCreateCone(10.0, 15.0, 40.0 ,24);

SG_CONE     cn_geo;

cn->GetGeometry(cn_geo);

assert(cn_geo.Radius1==10.0)

assert(cn_geo.Radius2==15.0);

assert(cn_geo.Height==40.0);

 

See also:

Objects hierarchy   sgCObject methods   SG_CONE sgCCone::Create