mirror of https://github.com/CGAL/cgal
Fixing a bug when referencing the point of the infinite vertex.
This commit is contained in:
parent
cba1240d90
commit
7ea41f049b
|
|
@ -443,7 +443,10 @@ compute_anchor_vor (Vertex_handle const v) {
|
|||
for (adj_vertex = adj_vertices.begin();
|
||||
adj_vertex != adj_vertices.end();
|
||||
adj_vertex++) {
|
||||
if (v_other != (*adj_vertex)) {
|
||||
if ((v_other != (*adj_vertex)) && (!reg.is_infinite(*adj_vertex))) {
|
||||
CGAL_assertion(!reg.is_infinite(v));
|
||||
CGAL_assertion(!reg.is_infinite(v_other));
|
||||
CGAL_assertion(!reg.is_infinite(*adj_vertex));
|
||||
side = test_anchor(v->point(), v_other->point(),
|
||||
(*adj_vertex)->point());
|
||||
if (side==ZERO) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
|
||||
#include <CGAL/Skin_surface_3.h>
|
||||
#include <CGAL/Polyhedron_3.h>
|
||||
#include <CGAL/IO/Polyhedron_iostream.h>
|
||||
#include <CGAL/mesh_skin_surface_3.h>
|
||||
|
||||
#include <list>
|
||||
|
|
@ -42,6 +43,8 @@ public:
|
|||
CGAL::mesh_skin_surface_3(skin_surface, p);
|
||||
|
||||
CGAL_assertion(p.is_valid() && p.is_closed());
|
||||
|
||||
//std::cout << p << std::endl;
|
||||
}
|
||||
private:
|
||||
double s;
|
||||
|
|
|
|||
Loading…
Reference in New Issue