資源簡(jiǎn)介
#include <GL/glut.h>
#include<iostream>
#include <fstream>
#include <cstdlib>
#include <vector>
#include <string>
using namespace std;
class POINT
{
public:
float x,y,z;
};
const static int NumOfVertex=11610;//頂點(diǎn)數(shù)
const static int NumOfTriangle=23216;//三角形個(gè)數(shù)
代碼片段和文件信息
#include?
#include
#include?
#include?
#include?
#include?
using?namespace?std;
class?POINT
{
public:
float?xyz;
};
const?static?int?NumOfVertex=11610;
const?static?int?NumOfTriangle=23216;
static?GLdouble?viewer[]={0.00.05.0};
static?GLfloat?theta[]={0.00.00.0};
static?GLint?axis=2;
vector?pointVec;
vector?indexVec;
int?count=0;
bool?IsFullPoint=false;
bool?IsEdgeFull=false;
void?ReadDataFromFile(void)
{
POINT?pt;
int?point[3];
string?s;
string?fileName=“what.txt“;
ifstream?fin(“what.txt“);
if(!fin){cout?<“Error?opening?“?< while(fin>>s)
{
count++;
if(2>=count)???continue;
if(count==2)cout< else?if
評(píng)論
共有 條評(píng)論