Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Bug: Surface_mesh_segmentation/segmentation_via_sdf_values_examples
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Bug: Surface_mesh_segmentation/segmentation_via_sdf_values_examples
- Date: Mon, 16 Jun 2014 17:46:56 +0200
- Organization: GeometryFactory
You have some degenerate triangles which make the intersection test crash. Compiling in debug you'd see
terminate called after throwing an instance of 'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: ! k.is_degenerate_3_object()(t)
File: /home/sloriot/CGAL/git/cgal/Intersections_3/include/CGAL/Triangle_3_Segment_3_do_intersect.h
Line: 216
Aborted
What you can do with CGAL is collect the facets that are degenerate
and remove them from the polyhedron. This will not change the output
of the segmentation.
Or you can run tools that can fix your off like meshfix for example.
Sebastien.
On 06/16/2014 05:28 PM,
wrote:
which operating system, compiler, and hardware you are using;
-- Linux, g++, Intel i7-2640M CPU @ 2.80GHz
information about how CGAL was installed on your system (i.e., which
options were used, how the library was built, etc.);
-- Download the source code, make install
any third-party software (such as GMP) that is involved;
--NO.
a description of the problem or bug and a way to reproduce it (such as a
small sample program or a sequence of commands);
-- run the
examples/Surface_mesh_segmentation/segmentation_via_sdf_values_examples
using the data file:
https://www.dropbox.com/s/4zb734mq08vyq7m/351.off
Bug: report "Floating point exception (core dumped)"
The stack trace is below:
[bug.PNG]
do not forget to mention which kernel you are using, and check for
potential robustness issues you may have;
in case of run-time crash, please include a stack trace provided by the
debugger;
in case of problems with the installation, make sure to include the
install.log file.
Best Regards
Guilin Liu
Ph.D. student
Computer Science Department
George Mason University
http://masc.cs.gmu.edu/wiki/GuilinLiu​
- [cgal-discuss] Bug: Surface_mesh_segmentation/segmentation_via_sdf_values_examples, , 06/16/2014
- Re: [cgal-discuss] Bug: Surface_mesh_segmentation/segmentation_via_sdf_values_examples, Sebastien Loriot (GeometryFactory), 06/16/2014
Archive powered by MHonArc 2.6.18.