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: Benjamin Kehlet <>
  • To: cgal-discuss <>
  • Subject: Re: [cgal-discuss] Problem when meshing polyhedron with sharp features
  • Date: Thu, 1 May 2014 22:33:44 +0200

2014-04-30 14:30 GMT+02:00 Laurent Rineau (CGAL/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.

Thanks! I really appreciate your quick response!

Regards

Benjamin Kehlet

>
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
> Release Manager of the CGAL Project http://www.cgal.org/
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>


  • Re: [cgal-discuss] Problem when meshing polyhedron with sharp features, Benjamin Kehlet, 05/01/2014

Archive powered by MHonArc 2.6.18.

Top of Page