1 
2 
3 /*
4 A* -------------------------------------------------------------------
5 B* This file contains source code for the PyMOL computer program
6 C* Copyright (c) Schrodinger, LLC.
7 D* -------------------------------------------------------------------
8 E* It is unlawful to modify or remove this copyright notice.
9 F* -------------------------------------------------------------------
10 G* Please see the accompanying LICENSE file for further information.
11 H* -------------------------------------------------------------------
12 I* Additional authors of this source file include:
13 -*
14 -*
15 -*
16 Z* -------------------------------------------------------------------
17 */
18 #ifndef _H_Sphere
19 #define _H_Sphere
20 
21 #include"Vector.h"
22 #include"PyMOLGlobals.h"
23 
24 typedef struct SphereRec {
25   float *area;
26   Vector3f *dot;
27   int *StripLen;
28   int *Sequence;
29   int NStrip, NVertTot;
30   int nDot;
31   int *Tri;
32   int NTri;
33   int *Mesh;
34   int NMesh;
35 } SphereRec, *SphereRecPtr;
36 
37 #define NUMBER_OF_SPHERE_LEVELS 5
38 
39 struct _CSphere {
40   SphereRecPtr Sphere[NUMBER_OF_SPHERE_LEVELS];
41   SphereRec *Array;
42 };
43 
44 void SphereInit(PyMOLGlobals * G);
45 void SphereFree(PyMOLGlobals * G);
46 void SphereRender(PyMOLGlobals * G, int level, const float *centroid, const float *color, float alpha, float radius);
47 
48 SphereRec* GetSpheroidSphereRec(PyMOLGlobals*);
49 
50 #endif
51