API Reference > OdGe Classes > OdGeSphere Class > OdGeSphere Methods > set Method > OdGeSphere::set Method (double, OdGePoint3d&, OdGeVector3d&, OdGeVector3d&, double, double, double, double)
OdGeSphere::set Method (double, OdGePoint3d&, OdGeVector3d&, OdGeVector3d&, double, double, double, double)
Syntax
C++
OdGeSphere& set(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. 

A reference to this OdGeSphere object.

Sets the parameters for this sphere according to the arguments. 

 

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