Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Outputting results from an exact kernel

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Outputting results from an exact kernel


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Outputting results from an exact kernel
  • Date: Thu, 09 Dec 2010 07:58:16 +0100

Hamid G wrote:
On 12/6/10 12:41 PM, Sebastien Loriot (GeometryFactory) wrote:


CGAL::Cartesian_converter<K1,K2> converter;

K1::Point_3 p_k1(1,2,3);
K2::Point_3 p_k2 = converter( p_k1 );


Thanks for this, I really need to try it.

Can the assertion happen at any step 1,2,3,4 ? or is it happening always
at 3 or 4? does this happen while reading Polyhedra?

No that assertion failure happens only when I use Make_mesh_3, which uses a polyhedron as its input. So it only happens at step 4.

The error is happening because it seems you have at least one degenerate triangle (its three vertices are collinear). You can make a
preprocessing step that remove such a triangle and all the incident one.
To retriangulate, take one of the collinear vertices and connect them to each vertex of the hole made after removing the triangles.

You can also try not to do 3) to see if it introduces such flat element
but I think it is coming from 2).

S.



Archive powered by MHonArc 2.6.16.

Top of Page