MC_io_off.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _MC_IO_OFF_HPP_
00022 #define _MC_IO_OFF_HPP_
00023
00024 #include <iostream>
00025 #include <fstream>
00026
00027 namespace mesh_conv
00028 {
00029
00030 class MC_v3d_vector;
00031
00033 class MC_io_off
00034 {
00035
00036 public:
00037
00040 static std::pair <std::vector<double>,std::vector<int> > read_off(std::istream& stream);
00043 static std::pair <std::vector<double>,std::vector<int> > read_off_file(const std::string& string_file);
00044
00046 static std::ostream& write_off(std::ostream& stream,const std::vector<double>& vertex,const std::vector<int>& connectivity);
00048 static void write_off_file(const std::string& string_file,const std::vector<double>& vertex,const std::vector<int>& connectivity);
00049
00050
00051 private:
00052
00053 };
00054 }
00055
00056 #endif