/*************************************************************
  Create the geometry
 **************************************************************/
void MakeGeometry(void)
{
   int i;
   double radius = 0.5;
   static double theta = 0;

   GLfloat mshin1[] = {5.0};               /* For the sphere */
   GLfloat mspec1[] = {0.5,0.5,0.5,1.0};
   GLfloat mdiff1[] = {0.6,0.0,0.6,1.0};
   GLfloat mamb1[]  = {0.1,0.0,0.1,1.0};
   GLfloat mdiff2[] = {0.0,1.0,0.0,1.0};   /* Green plane */
   GLfloat mamb2[]  = {0.0,0.2,0.0,1.0};


   drawAxises(500, 2.0);
   drawGrayBox(200);
   drawGrid(1000);

   drawSomething(); // yellow square


   drawSomething2(); // small purple square


   drawSomething3(); // two chads near the origin

   drawBresenhamCircle();


   // drawDetector();
}
void SW::GLViewer::draw()
{
    // glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
    //m_shader.enable();
    drawAxises(0.1, m_length);
    glPushAttrib( GL_ALL_ATTRIB_BITS );
    setMeshMaterial();
    foreach(SW::Mesh mesh, meshes){
        glPushMatrix();
        //mesh.draw(displayType);//mhw改201509079
        mesh.draw(displayType,Select_P_Array,MoveVectors);
        glPopMatrix();
    }