Skip to Content.
Sympa Menu

cgal-discuss - Re:Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel

Subject: CGAL users discussion list

List archive

Re:Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel


Chronological Thread 
  • From:
  • To: cgal-discuss <>
  • Subject: Re:Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel
  • Date: Sat, 29 Mar 2008 00:03:45 +0800 (CST)

To display the error ,I uploaded an example named "Exact_or_inexact" in appendix,Click Exact_or_Inexact->Demo to run the code fragment bellow:
/*******************************/
AfxMessageBox("Start !");
  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);
  AfxMessageBox("Done");
/*********************************************/ 
I wrote the code fragment above in Exact_or_inexact class in the example project.
 
In my own compiler Visual Studio .net 2003,I add the following paths:
 
C:\Program Files\CGAL-3.2.1\include
C:\Program Files\CGAL-3.2.1\include\CGAL\config\msvc7
C:\Program Files\CGAL-3.2.1\auxiliary\gmp\include
C:\Program Files\CGAL-3.2.1\auxiliary\taucs\include
C:\Program Files\CGAL-3.2.1\auxiliary\zlib\include
 
and
 
C:\Program Files\CGAL-3.2.1\lib\msvc7
C:\Program Files\CGAL-3.2.1\auxiliary\gmp\lib
C:\Program Files\CGAL-3.2.1\auxiliary\taucs\lib
C:\Program Files\CGAL-3.2.1\auxiliary\zlib\lib
 
to Tools->Options->Projects->VC++ Directories->Include files and Tools->Options->Projects->VC++ Directories->Library files,respectively, and,I havn't installed Boost strictly, just downloaded boost_1_34_1.zip and unzip it,then move the unziped file into "C:\",add "C:\boost_1_34_1" to Tools->Options->Projects->VC++ Directories->Include files ,set Project->Properties->Configuration Properties->C/C++ ->Precompiled Header->Creat/Use Precompile Header to be "Not Using Precompiled Headers",
 
I don't know whether all these settings above has something to do with the error.

在2008-03-28,"Ophir Setter" <> 写道:
What Assertion do you get?

If I had to guess what you have to do in order to make the example work, is to construct the numbers not with double (AKA 12.1) but use a constructor that receives a  numerator and denominator.
Still, I have no idea what is the problem as it should work. I also don't understand why is it different in single document.

Ophir



2008/3/28 <>:
 
 
 
 
---------- 转发邮件信息 ----------
发件人:"sanlington <>"
发送日期:2008-03-26 19:39:42
收件人:cgal-discuss <>
主题: Exact_predicates_exact_constructions_kernel
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 万 玩 家 同 时 在 线


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




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

Attachment: Exact_or_inexact.rar
Description: Binary data




Archive powered by MHonArc 2.6.16.

Top of Page