MEPP2 Project
Functions
initializer_compression.h File Reference
#include "FEVV/Filters/Generic/generic_reader.hpp"
#include "FEVV/Filters/Generic/generic_writer.hpp"
#include "FEVV/Filters/CGAL/Progressive_Compression/progressive_compression_filter.hpp"
#include "FEVV/Filters/CGAL/Progressive_Compression/Helpers/distortion_computing.h"
Include dependency graph for initializer_compression.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename MeshT >
void set_mesh_and_properties (const MeshT &m, FEVV::PMapsContainer &pmaps_bag, typename FEVV::PMap_traits< FEVV::vertex_color_t, MeshT >::pmap_type &v_cm, typename FEVV::PMap_traits< FEVV::edge_color_t, MeshT >::pmap_type &e_cm, typename FEVV::PMap_traits< FEVV::vertex_normal_t, MeshT >::pmap_type &v_nm)
 Function to extract or create property map associated with a property map bag (for generic processing). More...
 
template<typename MeshT >
int progressive_compression_main (int argc, const char **argv)
 A mesh type templated main(argc, argv) function that. More...
 

Function Documentation

◆ progressive_compression_main()

template<typename MeshT >
int progressive_compression_main ( int  argc,
const char **  argv 
)

A mesh type templated main(argc, argv) function that.

  • loads a mesh from a file,
  • applies the progressive_compression_filter generic filter,
  • and write the resulting mesh to a file.

Definition at line 97 of file initializer_compression.h.

Here is the call graph for this function:

◆ set_mesh_and_properties()

template<typename MeshT >
void set_mesh_and_properties ( const MeshT m,
FEVV::PMapsContainer pmaps_bag,
typename FEVV::PMap_traits< FEVV::vertex_color_t, MeshT >::pmap_type &  v_cm,
typename FEVV::PMap_traits< FEVV::edge_color_t, MeshT >::pmap_type &  e_cm,
typename FEVV::PMap_traits< FEVV::vertex_normal_t, MeshT >::pmap_type &  v_nm 
)

Function to extract or create property map associated with a property map bag (for generic processing).

Parameters
[in]mThe input mesh associated with the the property map bag.
[in,out]pmaps_bagThe property map bag. It is updated whenever a property map creation occurs.
[out]v_cmThe obtained vertex color map that is also added in the pmaps_bag when not already present.
[out]e_cmThe obtained edge color map that is also added in the pmaps_bag when not already present.
[out]v_nmThe obtained vertex normal map that is also added in the pmaps_bag when not already present.

Definition at line 35 of file initializer_compression.h.

Here is the call graph for this function:
Here is the caller graph for this function: