#include "pch.h"
#include <iostream>
#include <gl/glut.h>
#include <math.h>
#define ColoredVertex(c,v) do{glColor3fv(c);glVertex3fv(v);}while(0)
#define WIDTH 400
#define HEIGHT 400
GLfloat angle = 0.0f;
void myDisplay(void)
{
static int list = 0;
if (list == 0)
{
//如果显示列表不存在,则创建
GLfloat
PointA[] = {
0.5f,-sqrt(6.0f) / 12,-sqrt(3.0f) / 6 },
PointB[] = {
-0.5f,-sqrt