Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: union two polyhedron_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: union two polyhedron_3


Chronological Thread 
  • From: sdg <>
  • To:
  • Subject: [cgal-discuss] Re: union two polyhedron_3
  • Date: Thu, 4 Apr 2013 02:38:35 -0700 (PDT)

I read this package and found this function "import_from_polyhedron_3" may
change Polyhedron_3 to LCC.

Questions:
1. Do I have to change kernel from
Exact_predicates_exact_constructions_kernel to LCC::Traits?
2. I tried to make a small program, but it failed. The following is my code.

typedef CGAL::Linear_cell_complex<3> LCC_3;
typedef LCC_3::Traits Kernel;
typedef LCC_3::Dart_handle Dart_handle;
typedef Kernel::Point_3 Point_3;

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);

CGAL::Polyhedron_3<Kernel> P;
LCC_3 lcc;

P.make_tetrahedron(p, q, r, s);
CGAL::import_from_polyhedron_3<LCC_3, CGAL::Polyhedron_3&lt;Kernel>
>(lcc, P);
lcc.display_characteristics(std::cout);

}

The error message is "Combinatorial_map_constructors.h:52: error: there are
no arguments to 'CGAL_assertion' that depend on a template parameter, so a
declaration of 'CGAL_assertion' must be available". What's wrong?



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/union-two-polyhedron-3-tp4657092p4657115.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page