Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: "Max" <>
  • To: <>
  • Subject: RE: [cgal-discuss] CGAL 3.3.1 - Nef_3::intersection() problem
  • Date: Sat, 4 Apr 2009 21:47:46 +0800

Hello,

I'm testing the following code and get a runtime error.

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("DB1P.nef");
is >> N;

Plane_3 pl1(-0, -0.984808, 0.173648, -0);
N1 = N.intersection(pl1,
Nef_polyhedron_3::Combine_with_halfspace::CLOSED_HALFSPACE);
N2 = N.intersection(pl1,
Nef_polyhedron_3::Combine_with_halfspace::PLANE_ONLY);

The error message given in the console window:

CGAL error: assertion violation!
Expr: itl != it->second.end()
File: e:\lib\cgal-3.3.1\include\cgal\nef_3\snc_external_structure.h
Line: 567
Explanation: <_no explanation here_>

I'm using VS2008SP1 under WinXP/SP1. The test model is attached.

Thanks for any help.

B/Rgds
Max

Attachment: DB1P.nef
Description: Binary data




Archive powered by MHonArc 2.6.16.

Top of Page