API Reference > OdGe Classes > OdGeSphere Class > OdGeSphere Constructor > OdGeSphere::OdGeSphere Constructor (double, OdGePoint3d&, OdGeVector3d&, OdGeVector3d&, double, double, double, double)
OdGeSphere::OdGeSphere Constructor (double, OdGePoint3d&, OdGeVector3d&, OdGeVector3d&, double, double, double, double)
Syntax
C++
OdGeSphere(double radius, const OdGePoint3d& center, const OdGeVector3d& northAxis, const OdGeVector3d& refAxis, double startAngleU, double endAngleU, double startAngleV, double endAngleV);
Parameters 
Description 
double radius 
[in] The *radius* of this sphere.  
const OdGePoint3d& center 
[in] The origin of the this sphere.  
const OdGeVector3d& northAxis 
[in] the *direction* to the north pole.  
const OdGeVector3d& refAxis 
[in] the *direction* to the prime meridian.  
double startAngleU 
[in] Starting longitude which is defined by a U parameter. To create a closed sphere, set this parameter to -OdaPI/2 and endAngleU to OdaPI/2.  
double endAngleU 
[in] Ending longitude which is defined by a U parameter. To create a closed sphere, set this parameter to OdaPI/2 and startAngleU to -OdaPI/2.  
double startAngleV 
[in] Starting latitude which is defined by a V parameter. To create a closed sphere, set this parameter to -OdaPI and endAngleV to OdaPI.  
double endAngleV 
[in] Ending latitude which is defined by a V parameter. To create a closed sphere, set this parameter to -OdaPI and endAngleV to OdaPI. 

Constructor for the OdGeSphere class.

All angles are expressed in radians.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.