Skip to Content.
Sympa Menu

cgal-discuss - Re: Polyhedron_3 to Nef_Polyhedron_3

Subject: CGAL users discussion list

List archive

Re: Polyhedron_3 to Nef_Polyhedron_3


Chronological Thread 
  • From: "Joe C" <>
  • To:
  • Subject: Re: Polyhedron_3 to Nef_Polyhedron_3
  • Date: Thu, 8 May 2008 11:33:42 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=axYqW68H3laFNealOEyuqT0QVOBPGyu7d304umC3uIvs6qdbrIzlyU8oKl0ZZb1xdTXezjp12PKdms0KNNPgFNud7b3k3fTSmimSnDcVqoMFNv3SZ79zb9iTL0vzkTC1r3s6e45Ph7Bq/nRLC9tvlqUX0qkTj8GVunyAa+oEFrE=

I found solution: I simply forgot enabling Run-Time Type Info in my Visual Studio 2003.

Cheers.

Joe


On Tue, May 6, 2008 at 12:07 PM, Joe C <> wrote:
Hi, all,

I am newbie for CGAL and trying to run a simple program as attached:


#include <CGAL/Gmpz.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/Polyhedron_3.h>

typedef CGAL::Homogeneous<CGAL::Gmpz>             Kernel;
typedef Kernel::Point_3                    Point_3;
typedef CGAL::Polyhedron_3<Kernel>         Polyhedron;

int main() {
    Point_3 p( 1.0, 0.0, 0.0);
    Point_3 q( 0.0, 1.0, 0.0);
    Point_3 r( 0.0, 0.0, 1.0);
    Point_3 s( 0.0, 0.0, 0.0);

    Polyhedron P;
    P.make_tetrahedron( p, q, r, s);

    Nef_polyhedron N2(P); // This is where the problem occurs.
   
    return 0;
}

The program halts at "Nef_polyhedron N2(P)". When I run debug, I see it is really in "polyhedron_3_to_nef_3h", at the statement "SM.check_integrity_and_topological_planarity();". It reports there is Unhandled exception from "dbgheadp.c".  I am using Visual Studio 2003 with SP1.

Can anyone help me figure this out? Thanks.

Joe.








Archive powered by MHonArc 2.6.16.

Top of Page