Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem when meshing polyhedron with sharp features

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem when meshing polyhedron with sharp features


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Problem when meshing polyhedron with sharp features
  • Date: Wed, 30 Apr 2014 14:30:31 +0200
  • Organization: GeometryFactory

Le Wednesday 30 April 2014 12:21:19 Benjamin Kehlet a écrit :
> That worked very well! Now, however, I get this one when trying to
> mesh file "handle.off" in the same directory.
>
> terminate called after throwing an instance of
> 'CGAL::Precondition_exception' what(): CGAL ERROR: precondition violation!
> Expr: dimension() >= 2
> File:
> /home/benjamik/software/cgal-4.4-install/include/CGAL/Regular_triangulation
> _3.h Line: 373
> Aborted (core dumped)
>
> Just replace the filename and change the variable "cs" (just before
> the mesh criteria is set) to 0.075 to reproduce.

Here is another patch.


--- a/include/CGAL/Mesh_3/Protect_edges_sizing_field.h
+++ b/include/CGAL/Mesh_3/Protect_edges_sizing_field.h
@@ -1197,7 +1197,8 @@ change_ball_size(const Vertex_handle& v, const FT size,
const bool special_ball)
CGAL_assertion_code(Tr& tr = c3t3_.triangulation());
CGAL_assertion_code(Cell_handle ch = tr.locate(p));
CGAL_assertion_code(std::vector<Vertex_handle> hidden_vertices);
- CGAL_assertion_code(tr.vertices_inside_conflict_zone(Weighted_point(p, w),
+ CGAL_assertion_code(if(tr.dimension() > 1)
+ tr.vertices_inside_conflict_zone(Weighted_point(p, w),
ch,

std::back_inserter(hidden_vertices)));



I do not understand why that bug never occurred before. Probably the
assertion was added recently (CGAL-4.3, again), and that was not tested
enough. I am sorry for that situation.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page