Skip to content

Commit

Permalink
make Vertex_status enum local
Browse files Browse the repository at this point in the history
  • Loading branch information
aboudev committed Jul 11, 2017
1 parent 7f4df5e commit 7c23a72
Showing 1 changed file with 3 additions and 8 deletions.
Expand Up @@ -129,7 +129,7 @@ template<typename PlaneProxy,
template<typename FacetIterator>
FT operator()(FacetIterator beg, FacetIterator end, PlaneProxy &px) {
CGAL_assertion(beg != end);

// update proxy normal
FT area(0);
Vector norm = CGAL::NULL_VECTOR;
Expand Down Expand Up @@ -195,10 +195,8 @@ template <typename Polyhedron,
typedef typename GeomTraits::Vector_3 Vector;
typedef typename GeomTraits::Plane_3 Plane;
typedef typename GeomTraits::Construct_vector_3 Construct_vector_3;
typedef typename GeomTraits::Construct_normal_3 Construct_normal_3;
typedef typename GeomTraits::Construct_scaled_vector_3 Construct_scaled_vector_3;
typedef typename GeomTraits::Construct_sum_of_vectors_3 Construct_sum_of_vectors_3;
typedef typename GeomTraits::Compute_squared_area_3 Compute_squared_area_3;
typedef typename GeomTraits::Compute_scalar_product_3 Compute_scalar_product_3;

typedef typename boost::graph_traits<Polyhedron>::halfedge_descriptor halfedge_descriptor;
Expand All @@ -216,11 +214,6 @@ template <typename Polyhedron,
typedef std::vector<halfedge_descriptor> ChordVector;
typedef typename ChordVector::iterator ChordVectorIterator;

// The attached anchor index of a vertex.
enum Vertex_status {
NO_ANCHOR = -1 // No anchor attached
};

// Halfedge status.
enum Halfedge_status {
OFF_BORDER, // In the inside of a region.
Expand Down Expand Up @@ -273,6 +266,7 @@ template <typename Polyhedron,
const FacetAreaMap area_pmap;

// Mesh vertex anchor map and halfedge status map.
// The attached anchor index of a vertex.
std::map<vertex_descriptor, int> vertex_status_map;
VertexStatusPMap vertex_status_pmap;
std::map<halfedge_descriptor, int> halfedge_status_map;
Expand Down Expand Up @@ -319,6 +313,7 @@ template <typename Polyhedron,
scalar_product_functor = traits.compute_scalar_product_3_object();

// initialize all vertex anchor status
enum Vertex_status { NO_ANCHOR = -1 };
BOOST_FOREACH(vertex_descriptor v, vertices(mesh))
vertex_status_map.insert(std::pair<vertex_descriptor, int>(v, static_cast<int>(NO_ANCHOR)));

Expand Down

0 comments on commit 7c23a72

Please sign in to comment.