Go to the documentation of this file.
24 template<
typename MeshT >
28 if(argc < 2 || argc > 4)
30 std::cout <<
"Open a binary compressed 3D mesh " << std::endl;
31 std::cout <<
"Usage: " << argv[0] <<
" input_binary_file_name [output_mesh_filename [nb_max_batches]]" << std::endl;
32 std::cout <<
"Example: " << argv[0]
33 <<
" binarymesh.bin" << std::endl;
36 int nb_max_batches = 10000;
38 nb_max_batches = atoi(argv[3]);
41 std::string input_file_path = argv[1];
42 std::string output_file_path = (argc >= 3)?argv[2]:
43 "progressive_decompression_filter_output.obj";
55 using VertexColorMap =
60 std::cout <<
"use existing vertex-color map" << std::endl;
65 std::cout <<
"create vertex-color map" << std::endl;
74 std::cout <<
"using edge color property map" << std::endl;
79 std::cout <<
"create vertex-color map" << std::endl;
86 using VertexNormalMap =
91 std::cout <<
"use existing vertex-normal map" << std::endl;
96 std::cout <<
"create vertex-normal map" << std::endl;
103 auto pm =
get(boost::vertex_point, m);
void put_property_map(PropertyT p, const MeshT &, PMapsContainer &pmaps, const typename PMap_traits< PropertyT, MeshT >::pmap_type &pmap)
int progressive_decompression_main(int argc, const char **argv)
A mesh type templated main(argc, argv) function that.
PMap_traits< PropertyT, MeshT >::pmap_type get_property_map(PropertyT p, const MeshT &, const PMapsContainer &pmaps)
bool has_map(const PMapsContainer &pmaps, const std::string &map_name)
(refer to Property Maps API)
std::map< std::string, boost::any > PMapsContainer
void write_mesh(const std::string &filename, FEVV::CGALPointSet &g, PMapsContainer &pmaps)
Write mesh to file.
boost::property_map< FEVV::DataStructures::AIF::AIFMesh, boost::vertex_index_t >::const_type get(const boost::vertex_index_t &, const FEVV::DataStructures::AIF::AIFMesh &)
Returns the vertex index property map of the mesh.
This class represents an AIF structure. AIF structure can deal with both manifold and non-manifold su...
void progressive_decompression_filter(HalfedgeGraph &g, PointMap &pm, VertexColorMap &v_cm, const GeometryTraits &, draco::DecoderBuffer &buffer, bool dequantize=true, unsigned int nb_max_batches=10000)
Takes a buffer as an input, will decode the compression settings, the coarse mesh and refine the mesh...
PMap_traits< PropertyT, MeshT >::pmap_type make_property_map(PropertyT, const MeshT &m)