-
Notifications
You must be signed in to change notification settings - Fork 10
/
io.h
53 lines (44 loc) · 1.77 KB
/
io.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// This file is part of the implementation of
// Robust Structure Simplification for Hex Re-meshing
// Xifeng Gao, Daniele Panozzo, Wenping Wang, Zhigang Deng, Guoning Chen
// In ACM Transactions on Graphics (Proceedings of SIGGRAPH ASIA 2017)
//
// Copyright (C) 2017 Xifeng Gao<gxf.xisha@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.
#pragma once
#include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include "global_types.h"
#include "global_functions.h"
using namespace std;
class h_io
{
private:
int counter;
public:
h_io(void) { counter = -1; }; ~h_io(void) {};
void read_hybrid_mesh_OFF(Mesh &hmi, char *path);
void write_hybrid_mesh_OFF(Mesh &hmi, char *path);
void read_hybrid_mesh_VTK(Mesh &hmi, char * path);
void write_hybrid_mesh_VTK(Mesh &hmi, char * path);
void write_hybrid_mesh_VTK_ele_tag(Mesh &hmi, Eigen::VectorXi &ele_tag, char * path);
void write_hybrid_mesh_VTK_ele_tag(Mesh &hmi, Eigen::VectorXd &ele_tag, char * path);
void read_hybrid_mesh_MESH(Mesh &hmi, char * path);
void write_hybrid_mesh_MESH(Mesh &hmi, char * path);
void write_hybrid_mesh_OBJ(Mesh &hmi, char * path);
//singularity structure
void write_singularG_VTK(Singularity &si, Mesh &mesh, char *path);
//base complex
void write_Frame_VTK(Frame &frame, Mesh &mesh, char *path);
//sheet
void write_Sheet_VTK(Sheet &s, Mesh &mesh, Frame &frame, char *path);
void write_Points_VTK(MatrixXd &V, char *path);
void write_Vs_Groups_VTK(Mesh &mesh, vector<vector<uint32_t>> &Vs_Group, char *path, bool twoside);
//chord
void write_Chord_VTK(CHord &c, Mesh &mesh, Frame &frame, char *path);
};