MEPP2 Project
progressive_compression_filter_cgal_surface_mesh.cpp
Go to the documentation of this file.
1 // Copyright (c) 2012-2022 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as
6 // published by the Free Software Foundation; either version 3 of
7 // the License, or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 
12 // The following include defines the FEVV::MeshSurface type
14 
17 
19 
20 
21 // Main: load a mesh, apply the filter, write the mesh
22 
23 //Input:
24 // path to a mesh
25 // from here, the parameters are optional, and have default values
26 // mode (0: compressing the mesh with defined parameters ;
27 // 1: compressing the given mesh with every method combination;
28 // 2: given a folder, will compute the distorsion between the meshes in the folder and the given mesh.)
29 // path to the compressed mesh (binary file), use "" for default value
30 // folder to store the measure files, use "" for default value (current folder)
31 // predictor as an int (0: POSITION <=> no-prediction;
32 // 1: DELTA;
33 // 2: BUTTERFLY)
34 // metric as an int (0: QEM_3D;
35 // 1: EDGE_LENGTH;
36 // 2: VOLUME_PRESERVING <=> local absolute volume error)
37 // kept position as an int (0: MIDPOINT;
38 // 1: HALFEDGE <=> edge target position)
39 // number of simplification batches
40 // minimum number of vertices (-1 to set it to 5% of the input mesh vertices)
41 // batch stopping condition as an int (0: ALL_EDGES;
42 // 1: REACH_THRESHOLD)
43 // quantization bits (10, 12 or 16 are common values)
44 
45 
46 //Output:
47 //Compressed mesh as binary file(name given by the user or [predictor][keptposition][metric][quantization].bin
48 int
49 main(int argc, const char **argv)
50 {
51  return progressive_compression_main< FEVV::MeshSurface >(argc, argv);
52 }
Geometry_traits_cgal_surface_mesh.h
main
int main(int argc, const char **argv)
Definition: progressive_compression_filter_cgal_surface_mesh.cpp:49
properties_surface_mesh.h
initializer_compression.h
DataStructures_cgal_surface_mesh.h