Skip to content

Commit

Permalink
Merge pull request CGAL#8373 from janetournois/Mesh_3-document_exampl…
Browse files Browse the repository at this point in the history
…e-jtournois

Mesh_3 - document example Weighted image + triple lines
  • Loading branch information
lrineau committed Sep 27, 2024
2 parents 5a06283 + 5771547 commit 01bc8fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions Mesh_3/doc/Mesh_3/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
\example Mesh_3/mesh_3D_image_with_detection_of_features.cpp
\example Mesh_3/mesh_3D_image_with_input_features.cpp
\example Mesh_3/mesh_3D_weighted_image.cpp
\example Mesh_3/mesh_3D_weighted_image_with_detection_of_features.cpp
\example Mesh_3/random_labeled_image.h
\example CGAL/Mesh_3/initialize_triangulation_from_gray_image.h
\example CGAL/Mesh_3/initialize_triangulation_from_labeled_image.h
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#define CGAL_MESH_3_WEIGHTED_IMAGES_DEBUG
#define CGAL_MESH_3_VERBOSE 1

#include <iostream>

#include <CGAL/Mesh_triangulation_3.h>
Expand All @@ -23,18 +20,17 @@ using Mesh_domain = CGAL::Mesh_domain_with_polyline_features_3<Image_domain>;
/// [Domain definition]

#ifdef CGAL_CONCURRENT_MESH_3
typedef CGAL::Parallel_tag Concurrency_tag;
using Concurrency_tag = CGAL::Parallel_tag;
#else
typedef CGAL::Sequential_tag Concurrency_tag;
using Concurrency_tag = CGAL::Sequential_tag;
#endif

// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain,CGAL::Default,Concurrency_tag>::type Tr;

typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;
using Tr = CGAL::Mesh_triangulation_3<Mesh_domain,CGAL::Default,Concurrency_tag>::type;
using C3t3 = CGAL::Mesh_complex_3_in_triangulation_3<Tr>;

// Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;
using Mesh_criteria = CGAL::Mesh_criteria_3<Tr>;

// To avoid verbose function and named parameters call
using namespace CGAL::parameters;
Expand Down

0 comments on commit 01bc8fe

Please sign in to comment.