22 #ifndef SKELETON_BLOCKER_GEOMETRIC_COMPLEX_H_
23 #define SKELETON_BLOCKER_GEOMETRIC_COMPLEX_H_
26 #include "gudhi/Utils.h"
27 #include "gudhi/Skeleton_blocker_simplifiable_complex.h"
28 #include "gudhi/Skeleton_blocker/Skeleton_blocker_sub_complex.h"
41 template<
typename SkeletonBlockerGeometricDS>
51 typedef typename SimplifiableSkeletonblocker::Edge_handle
Edge_handle;
65 (*this)[ad].point() =
point;
74 assert(this->contains_vertex(v));
75 return (*
this)[v].point();
82 assert(this->contains_vertex(v));
83 return (*
this)[v].point();
87 Vertex_handle local_v ( (*
this)[global_v]) ;
88 assert(this->contains_vertex(local_v));
89 return (*
this)[local_v].point();
93 Vertex_handle local_v ( (*
this)[global_v]) ;
94 assert(this->contains_vertex(local_v));
95 return (*
this)[local_v].point();
99 typedef Skeleton_blocker_link_complex<Skeleton_blocker_geometric_complex> Geometric_link;
107 add_points_to_link(link);
117 add_points_to_link(link);
121 void add_points_to_link(Geometric_link&
link)
const{
122 for(Vertex_handle v : link.vertex_range()){
124 link.point(v) = (*this).point(v_root);
Class that allows simplification operation on a simplicial complex represented by a skeleton/blockers...
Definition: Skeleton_blocker_simplifiable_complex.h:38
Class representing the link of a simplicial complex encoded by a skeleton/blockers pair...
Definition: Skeleton_blocker_link_complex.h:42
Vertex_handle add_vertex(const Point &point)
Add a vertex to the complex with its associated point.
Definition: Skeleton_blocker_geometric_complex.h:63
Geometric_link link(const Simplex_handle &simplex) const
Definition: Skeleton_blocker_geometric_complex.h:104
boost::graph_traits< Graph >::edge_descriptor Edge_handle
Handle to an edge of the complex.
Definition: Skeleton_blocker_complex.h:139
Class that represents a geometric complex that can be simplified. The class allows access to points o...
Definition: Skeleton_blocker_geometric_complex.h:42
GeometryTrait::Point Point
Definition: SkeletonBlockerGeometricDS.h:36
const Point & point(Vertex_handle v) const
Returns the Point associated to the vertex v.
Definition: Skeleton_blocker_geometric_complex.h:73
Point & point(Vertex_handle v)
Returns the Point associated to the vertex v.
Definition: Skeleton_blocker_geometric_complex.h:81
Vertex_handle add_vertex()
Adds a vertex to the simplicial complex and returns its Vertex_handle.
Definition: Skeleton_blocker_complex.h:443
Abstract simplex used in Skeleton blockers data-structure.
Definition: Skeleton_blocker_simplex.h:48
Definition: SkeletonBlockerDS.h:60
The type of vertices that are stored the boost graph. A Vertex must be Default Constructible and Equa...
Definition: SkeletonBlockerDS.h:72
GeometryTrait GT
Definition: SkeletonBlockerGeometricDS.h:31
Root_vertex_handle and Vertex_handle are similar to global and local vertex descriptor used in boost ...
Definition: SkeletonBlockerDS.h:50
Geometric_link link(Edge_handle edge) const
Definition: Skeleton_blocker_geometric_complex.h:114