void sgCSphere::GetGeometry(SG_SPHERE& sph_geom)
Description:
Fills the sphere geometry structure.
Arguments:
sph_geom - return sphere geometry.
Returned value:
Fills the argument with sphere geometry. Read more about sphere geometry at SG_SPHERE.
Example:
sgCSphere* sph = sgCreateSphere(10.0, 24, 25);
SG_SPHERE sph_geo;
sph->GetGeometry(sph_geo);
assert(sph_geo.Radius==10.0)
assert(sph_geo.MeridiansCount==24);
assert(sph_geo.ParallelsCount==25);
See also:
Objects hierarchy sgCObject methods SG_SPHERE sgCSphere::Create