VTK读取接口

#include
#include
#include
#include
#include
using namespace std;

template
vector<vector> DataOut(ifstream& fin, int n, int size)
{
string line;
stringstream lineStream;
vector<vector> Data;
vector vecTmp;
vecTmp.resize(size);
for (int i = 0; i < n; i++)
{
getline(fin, line);
lineStream << line;
for (int j = 0; j < size; j++)
lineStream >> vecTmp[j];
Data.push_back(vecTmp);
lineStream.clear();
}
return Data;
}

vector<vector> Read_Vtk
(
int frame,
string partName,
string inVariableName,
int setType,//0表示set为节点,1表示单元集合
int partId//看输入是否有,不是一定有
)
{
/*
//输入
int frame = 1;
string partName = “KEY_R_05MM”;
string inVariableName = “U”;
int set

©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页