Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Precondition violation in surface simplification

Subject: CGAL users discussion list

List archive

[cgal-discuss] Precondition violation in surface simplification


Chronological Thread 
  • From: "Lehtonen, Matti/HIIT" <>
  • To:
  • Subject: [cgal-discuss] Precondition violation in surface simplification
  • Date: Tue, 03 Aug 2010 14:33:16 +0300

Hi!

What does precondition
terminate called after throwing an instance of 'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: !lTopFaceExists || (lTopFaceExists && ( pt->vertex()->vertex_degree() >
2
) )
File:
/usr/include/CGAL/Surface_mesh_simplification/halfedge_collapse_Polyhedron_3.h
Line: 55

mean in practice? How to get rid of it?

Simplification is called as
int r = CGAL::Surface_mesh_simplification::edge_collapse(
P,
stop, // Simple stop, until 7000 edges
CGAL::vertex_index_map( boost::get( CGAL::vertex_external_index, P ) )
.edge_index_map (boost::get(CGAL::edge_external_index, P ) )
.edge_is_border_map( constrains_map )
.get_cost(
CGAL::Surface_mesh_simplification::Edge_length_cost<Polyhedron>()
)
.get_placement(
CGAL::Surface_mesh_simplification::Midpoint_placement<Polyhedron>() )
.visitor( vis ) );

And execution goes
*** Read Polyhedron from OFF file ***
* Input - ./Polyhedron_100-LOD_GRND-DOMAIN.off
*** Polyhedron ***
* facets - 168068
* halfedges - 534714
* vertices - 100252
* is_valid - YES
*** Border of polyhedron ***
* border halfedges - 30510
* border edges - 30510
* border is_valid - YES
*** Simplification ***
267357
0.110375 267354
0.10118 267351
...
0.163945 265166
0.168582 265164
0.149602terminate called after throwing an instance of
'CGAL::Precondition_exception'


Lehtonen, Matti


Researcher, head programmer - Helsinki Institute for Information Technology
HIIT
http://www.hiit.fi/
--
Life is complex. It has real and imaginary parts.




  • [cgal-discuss] Precondition violation in surface simplification, Lehtonen, Matti/HIIT, 08/03/2010

Archive powered by MHonArc 2.6.16.

Top of Page