Skip to Content.
Sympa Menu

cgal-discuss - Exact_predicates_exact_constructions_kernel

Subject: CGAL users discussion list

List archive

Exact_predicates_exact_constructions_kernel


Chronological Thread 
  • From: sanlington <>
  • To: cgal-discuss <>
  • Subject: Exact_predicates_exact_constructions_kernel
  • Date: Wed, 26 Mar 2008 19:39:42 +0800 (CST)

My compiler is Visual Studio .net 2003,with CGAL-3.2.1,I build a single document project,program code is as following:
 
/**************************************************************************/
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Delaunay_triangulation_3.h>

typedef CGAL::Exact_predicates_exact_constructions_kernel  K;
typedef CGAL::Delaunay_triangulation_3<K>                  Delaunay;
typedef Delaunay::Point                                    Point;
 
 Point pa=Point(-12.1,0,1),
       pd=Point(-12.1,12,1),
       pe=Point(-12.1,12,4),
       pf=Point(-12.1,0,4),
       pk=Point(6,0,4),
       pl=Point(6,12,4);
  
 Delaunay DT;

 DT.insert(pa);
 DT.insert(pd);
 DT.insert(pe);
 DT.insert(pf);
 DT.insert(pk);
 DT.insert(pl);
/***************************************************************/
In console application,this code is ok,but in single document project,it may causes an exception,it seems like "Debug Assertion Failed".
If I change the coordinates of point into this:
 
Point pa=Point(-12,0,1),     
      pd=Point(-12,12,1),
      pe=Point(-12,12,4),
      pf=Point(-12,0,4),
      pk=Point(6,0,4),
      pl=Point(6,12,4);
,then it has no problem, 
or,if I keep the coordinates not being changed,but replace "<CGAL/Exact_predicates_exact_constructions_kernel.h>" and "typedef CGAL::Exact_predicates_exact_constructions_kernel  K" with "<CGAL/Exact_predicates_inexact_constructions_kernel.h>" and "typedef CGAL::Exact_predicates_inexact_constructions_kernel  K" respectively,it also runs successfully both in console application and single document project.
 
I am confused by this situation,may someone tell me something about this?
thanks.



中 国 最 强 网 游 --- 网 易 梦 幻 西 游 ,166 万 玩 家 同 时 在 线


Archive powered by MHonArc 2.6.16.

Top of Page