资源简介
#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;//顶点数
const static int NumOfTriangle=23216;//三角形个数
代码片段和文件信息
#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 “ << fileName << “ for input“ << endl; exit(-1);}
while(fin>>s)
{
count++;
if(2>=count) continue;
if(count==2)cout< else if
- 上一篇:西门子PLC通讯协议(PPI)源代码 C语言
- 下一篇:C++课程设计10个经典
评论
共有 条评论