Sphere geometry generation.
35 int inodb,ielmb,nelmb,ivbase;
48 dphi = 180.0*mulrad/(spheregeom->
rings);
49 dtheta = 360.0*mulrad/(spheregeom->
segments);
55 for(j=0;j<(spheregeom->
segments+1);j++){
57 for(i=0;i<(spheregeom->
rings+1);i++){
71 for(ielmb=0;ielmb<nelmb;ielmb++){
72 i1 = (ielmb)/(spheregeom->
rings);
Sphere.
Definition: structs.h:198
int ncntr
Definition: structs.h:175
void * ptrgeom
Definition: structs.h:173
#define COS(x)
Definition: functions.h:53
void geom_fill(struct geometry *geom)
Definition: geom_utils.c:249
int nelmb
Definition: structs.h:179
int segments
Definition: structs.h:202
#define LOG_DEBUG
Definition: logger.h:27
double DOUBLE
Definition: types.h:44
#define SIN(x)
Definition: functions.h:52
int nnodb
Definition: structs.h:177
int rings
Definition: structs.h:204
DOUBLE radius
Definition: structs.h:200
int _g_inodb
Definition: globals.h:68
int _g_ielmb
Definition: globals.h:70
Geometry info structure.
Definition: structs.h:161
int _g_icntr
Definition: globals.h:69
void logger(int level, char *msg,...)
Definition: logger.c:56