Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Extending Polyhedron faces do not compile.

Subject: CGAL users discussion list

List archive

[cgal-discuss] Extending Polyhedron faces do not compile.


Chronological Thread 
  • From: Gilles <>
  • To:
  • Subject: [cgal-discuss] Extending Polyhedron faces do not compile.
  • Date: Tue, 10 Nov 2015 06:04:15 -0800 (PST)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:hsrCkBZtpoeiIoSMTmXvPbz/LSx+4OfEezUN459isYplN5qZpcizbnLW6fgltlLVR4KTs6sC0LqL9fy9EjFeqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh730p8CYPlsArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZ2eP6kLuFhFfQYV2x+cjN92Mq+vhbKSU6D52AXT34NuhtOGQnMqh/gDbnrtS6vmet53CSBdZn1S70pQi/k4I93TwXujzxBPDk8pjKEwvdshb5W9Uvy7yd0xJTZNdrNbPc=

Hello,

I'm trying to extend Faces in Polyhedron, I get compilation error :

Error :

C:\MyProjects\projet_dll\CGAL-4.5\include\CGAL\Nef_3\polyhedron_3_to_nef_3.h:265:
erreur : incomplete type
'CGAL::internal::Plane_constructor<CGAL::HalfedgeDS_face_base&lt;CGAL::HalfedgeDS_list_types&lt;CGAL::Epeck,
CGAL::I_Polyhedron_derived_items_3&lt;My_items>, std::allocator<int> >,
CGAL::Boolean_tag<true>, CGAL::Boolean_tag<false> >::Plane_not_supported>'
used in nested name specifier

internal::Plane_constructor<Plane>::get_opposite_orthogonal_vector(pe_prev->facet()->plane()));

Code (*.h) :

#ifndef POLYHEDRON_AC_H
#define POLYHEDRON_AC_H

#include "formvirtual.h"
#include "polygon_ac.h"

#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
#include <CGAL/Bbox_3.h>
#include <CGAL/bounding_box.h>

#include <iostream>
#include <fstream>

// A face type with a color member variable.
template <class Refs>
struct My_face : public CGAL::HalfedgeDS_face_base<Refs> {
CGAL::Color color;
};

// An items type using my face.
struct My_items : public CGAL::Polyhedron_items_3 {
template <class Refs, class Traits>
struct Face_wrapper {
typedef My_face<Refs> Face;
};
};

typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
*typedef CGAL::Polyhedron_3<Kernel, My_items> Polyhedron; // **** HERE
*****
typedef Polyhedron::Halfedge_handle Halfedge_handle;
typedef Polyhedron::Halfedge_around_facet_const_circulator HF_circulator;
typedef Polyhedron::HalfedgeDS HalfedgeDS;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
typedef CGAL::Bbox_3 Bbox_3;
typedef Kernel::Iso_cuboid_3 Iso_cuboid_3;
typedef CGAL::Aff_transformation_3 <Kernel> Transformation_3;
typedef CGAL::Vector_3<Kernel> Vector_ex;

class Polyhedron_ac :public FormVirtual, public Polyhedron

{
Q_OBJECT
...

Any clue ?

Gilles


^



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Extending-Polyhedron-faces-do-not-compile-tp4661326.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] Extending Polyhedron faces do not compile., Gilles, 11/10/2015

Archive powered by MHonArc 2.6.18.

Top of Page