Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel


Chronological Thread 
  • From: "Ophir Setter" <>
  • To:
  • Subject: Re: [cgal-discuss] Exact_predicates_exact_constructions_kernel
  • Date: Fri, 28 Mar 2008 10:58:13 +0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=gEtEFzcAlciXW9mi/tu/EqoryiL/aOAHr/xCS+kVkt9Ps67xHHcLnYeBtz03c/H6C28VEMIUt53yXIKuljNNYL2/CQxlB2PfyzjW7Fh/bJoVmt2BTBkZ5tzvhhD+o8V1zbVRTYU15QWU5nHkjMgCqcOuSrNeZLcQa2oTGbe0MQo=

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 万 玩 家 同 时 在 线




Archive powered by MHonArc 2.6.16.

Top of Page