Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] CGAL 3.4 - Nef_3::intersection() problem

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] CGAL 3.4 - Nef_3::intersection() problem


Chronological Thread 
  • From: "Max" <>
  • To: <>
  • Subject: RE: [cgal-discuss] CGAL 3.4 - Nef_3::intersection() problem
  • Date: Fri, 3 Apr 2009 22:41:26 +0800

Hello Peter,

 

I've upgrade to version 3.4. I've managed to rebuild the libs with VC9SP1.

I got an runtime error with the following code. The test Nef_3 model is as attached.

 

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;

typedef CGAL::Nef_polyhedron_3<Kernel>  Nef_polyhedron_3;

typedef CGAL::Plane_3<Kernel>     Plane_3;

 

Nef_polyhedron_3 N;

std::ifstream is;

is.open("./COT1P.nef");

is >> N;

 

Plane_3 pl(0, 0, 1, -4000);

 

Nef_polyhedron_3 N1, N2;

N1 = N.intersection(pl, Nef_polyhedron_3::Combine_with_halfspace::CLOSED_HALFSPACE);

// ERROR HERE

N2 = N1.intersection(pl.opposite(), Nef_polyhedron_3::Combine_with_halfspace::CLOSED_HALFSPACE);

 

I've modified the following lines of Nef_polyhedron_3.h to have access to

the enum CLOSED_HALFSPACE.

 

public:   // Max added 2009-03-31

  typedef CGAL::Combine_with_halfspace<SNC_structure, SNC_point_locator>

          Combine_with_halfspace;

protected:     // Max added 2009-03-31

 

I need your help. Thank you, Peter.

 

B/Rgds

Max

 

From: Peter Hachenberger [mailto:]
Sent: Saturday, January 31, 2009 7:03 AM
To:
Subject: RE: [cgal-discuss] CGAL 3.4

 

Hi Max,

I hoped that these were the patches that we did for you. These
were all patches that I wanted to do either way at some time
for CGAL 3.4. I guess that CGAL 3.4 will work nicely for you, as
everything works now fine with indexed_items. I even made the
indexed items the standard configuration, now. So, if you don't
specify the items, the indexed items will be used. Still, I can only
advice you to do the change slowly as suggested. I'll help you
if you have problems.

Peter

Attachment: COT1P.nef
Description: Binary data



  • RE: [cgal-discuss] CGAL 3.4 - Nef_3::intersection() problem, Max, 04/03/2009

Archive powered by MHonArc 2.6.16.

Top of Page