mirror of https://github.com/CGAL/cgal
remove trivial example
This commit is contained in:
parent
b4c6f78f97
commit
3f7267502a
|
|
@ -102,7 +102,6 @@ create_single_source_cgal_program( "corefinement_difference_remeshed.cpp" )
|
|||
create_single_source_cgal_program( "corefinement_mesh_union.cpp" )
|
||||
create_single_source_cgal_program( "corefinement_polyhedron_union.cpp" )
|
||||
create_single_source_cgal_program( "smoothing_example.cpp")
|
||||
create_single_source_cgal_program( "curvature_flow_example.cpp")
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||
#include <CGAL/Surface_mesh.h>
|
||||
|
||||
#include <CGAL/Polygon_mesh_processing/smoothing.h>
|
||||
|
||||
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|
||||
typedef CGAL::Surface_mesh<K::Point_3> Mesh;
|
||||
|
||||
int main(int argc, char* argv[]){
|
||||
|
||||
const char* filename = "data/mannequin-devil.off";
|
||||
std::ifstream input(filename);
|
||||
std::ofstream output;
|
||||
|
||||
Mesh mesh;
|
||||
if (!input || !(input >> mesh) || mesh.is_empty()) {
|
||||
std::cerr << "Not a valid .off file." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
CGAL::Polygon_mesh_processing::curvature_flow(mesh);
|
||||
|
||||
output.open("data/mannequin-devil_smoothed.off");
|
||||
output << mesh;
|
||||
output.close();
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue