* The sign of n can be flipped to get the reverse loop
*/
-static void circleTable(double **sint,double **cost,const int n)
+static void fghCircleTable(double **sint,double **cost,const int n)
{
int i;
{
free(*sint);
free(*cost);
- fgError("Failed to allocate memory in circleTable");
+ fgError("Failed to allocate memory in fghCircleTable");
}
/* Compute cos and sin around the circle */
double *sint1,*cost1;
double *sint2,*cost2;
- circleTable(&sint1,&cost1,-slices);
- circleTable(&sint2,&cost2,stacks*2);
+ fghCircleTable(&sint1,&cost1,-slices);
+ fghCircleTable(&sint2,&cost2,stacks*2);
/* The top stack is covered with a triangle fan */
double *sint1,*cost1;
double *sint2,*cost2;
- circleTable(&sint1,&cost1,-slices );
- circleTable(&sint2,&cost2, stacks*2);
+ fghCircleTable(&sint1,&cost1,-slices );
+ fghCircleTable(&sint2,&cost2, stacks*2);
/* Draw a line loop for each stack */
/* Pre-computed circle */
double *sint,*cost;
- circleTable(&sint,&cost,-slices);
+ fghCircleTable(&sint,&cost,-slices);
/* Cover the circular base with a triangle fan... */
/* Pre-computed circle */
double *sint,*cost;
- circleTable(&sint,&cost,-slices);
+ fghCircleTable(&sint,&cost,-slices);
/* Draw the stacks... */
/* Pre-computed circle */
double *sint,*cost;
- circleTable(&sint,&cost,-slices);
+ fghCircleTable(&sint,&cost,-slices);
/* Cover the base and top */
/* Pre-computed circle */
double *sint,*cost;
- circleTable(&sint,&cost,-slices);
+ fghCircleTable(&sint,&cost,-slices);
/* Draw the stacks... */