Skip to content

Commit

Permalink
Merge pull request #5 from cgg-bern/ovmb_support
Browse files Browse the repository at this point in the history
support ovmb file format
  • Loading branch information
HengLiuNotAvailable authored Oct 5, 2023
2 parents b52cf23 + 3a3619e commit ca4836f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions demo/HexMeshing/HexMeshing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ void load_tetmesh(const Args &args, MeshT &tetmesh)
{
OpenVolumeMesh::IO::FileManager fm;
fm.readFile(args.inFileName, tetmesh);
} else if (file_type == "ovmb")
{
read_ovmb_file(args.inFileName, tetmesh);
}
else
{
std::cerr << "Error: the file type is not supported!" << std::endl;
return;
}

// initialize_feature_properties(args, tetmesh);
}
}

Expand Down Expand Up @@ -973,7 +974,7 @@ void write_ovmb_file(const std::string &filename, MeshT &mesh)
}

template<typename MeshT>
auto read_ovmb_file(const std::string &filename, MeshT &mesh)
void read_ovmb_file(const std::string &filename, MeshT &mesh)
{
OVM::IO::ReadOptions ro;
OVM::IO::PropertyCodecs propCodecs = OVM::IO::g_default_property_codecs;
Expand Down
2 changes: 1 addition & 1 deletion demo/HexMeshing/HexMeshing.hh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ template<typename MeshT>
void write_ovmb_file(const std::string &filename, MeshT &mesh);

template<typename MeshT>
auto read_ovmb_file(const std::string &filename, MeshT &mesh);
void read_ovmb_file(const std::string &filename, MeshT &mesh);

template<class MeshT>
void initialize_feature_properties(const Args &args, MeshT &tetmesh);
Expand Down

0 comments on commit ca4836f

Please sign in to comment.