Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?


Chronological Thread 
  • From: tang <>
  • To:
  • Subject: [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?
  • Date: Fri, 19 Jul 2013 07:10:23 -0700 (PDT)

Dear Sebastien,

I have modified code as follows, howerver, there are still some errors when
compiling, could you please help me to take a look at it?

Thanks,
Zhanghong Tang

#include <CGAL/Polyhedron_incremental_builder_3.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Polyhedron_items_with_id_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Nef_polyhedron_3.h>

#include "math.h"
#include <iostream>
#include <istream>
#include <fstream>

namespace CGAL {
class MyPolyhedron_items_with_id_3 {
public:
template < class Refs, class Traits>
struct Vertex_wrapper {
typedef typename Traits::Point_3 Point;
typedef HalfedgeDS_vertex_max_base_with_id< Refs,
Point,std::size_t> Vertex;
};
template < class Refs, class Traits>
struct Halfedge_wrapper {
typedef HalfedgeDS_halfedge_max_base_with_id<Refs, std::size_t>
Halfedge;
};
template < class Refs, class Traits>
struct Face_wrapper {
typedef HalfedgeDS_face_max_base_with_id< Refs,
Tag_true,std::size_t> Face;
};
};
}

using namespace std;
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef Kernel::Point_3 Point_3;
typedef Kernel::Line_3 Line_3;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
typedef CGAL::Polyhedron_3<Kernel,CGAL::MyPolyhedron_items_with_id_3>
Polyhedron;
typedef Polyhedron::HalfedgeDS HalfedgeDS;
typedef Kernel::Plane_3 Plane_3;
typedef Polyhedron::Vertex Vertex;
typedef Polyhedron::Vertex_iterator Vertex_iterator;
typedef Polyhedron::Vertex_handle Vertex_handle ;
typedef Polyhedron::Facet_iterator Facet_iterator;
typedef Polyhedron::Halfedge_handle Halfedge_handle;
typedef Polyhedron::Halfedge_around_vertex_circulator
Halfedge_vertex_circulator;
typedef Polyhedron::Halfedge_around_facet_circulator
Halfedge_facet_circulator;
typedef Nef_polyhedron::Aff_transformation_3 Aff_transformation_3;
typedef Nef_polyhedron::Vector_3 Vector_3;


error information:
2>D:\CGAL4.2\CGAL/Nef_3/polyhedron_3_to_nef_3.h(265): error C2027: use of
undefined type 'CGAL::internal::Plane_constructor<T>'
2> with
2> [
2> T=Plane
2> ]
2> D:\CGAL4.2\CGAL/Nef_polyhedron_3.h(567) : see reference to
function template instantiation 'void
CGAL::polyhedron_3_to_nef_3<CGAL::Polyhedron_3&lt;PolyhedronTraits_3,PolyhedronItems_3>,CGAL::SNC_structure<Kernel_,Items_,Mark_>>(Polyhedron_
&,SNC_structure &)' being compiled
2> with
2> [
2> PolyhedronTraits_3=Kernel,
2> PolyhedronItems_3=CGAL::MyPolyhedron_items_with_id_3,
2> Kernel_=Kernel,
2> Items_=CGAL::Default_items<Kernel>::Items,
2> Mark_=bool,
2>
Polyhedron_=CGAL::Polyhedron_3<Kernel,CGAL::MyPolyhedron_items_with_id_3>,
2>
SNC_structure=CGAL::SNC_structure<Kernel,CGAL::Default_items&lt;Kernel>::Items,bool>
2> ]
2> CSGlib.cpp(363) : see reference to function template
instantiation
'CGAL::Nef_polyhedron_3<Kernel_>::Nef_polyhedron_3<Kernel,CGAL::MyPolyhedron_items_with_id_3,CGAL::HalfedgeDS_default,std::allocator&lt;_Ty>>(CGAL::Polyhedron_3<PolyhedronTraits_3,PolyhedronItems_3>
&)' being compiled
2> with
2> [
2> Kernel_=Kernel,
2> _Ty=int,
2> PolyhedronTraits_3=Kernel,
2> PolyhedronItems_3=CGAL::MyPolyhedron_items_with_id_3
2> ]
2>D:\CGAL4.2\CGAL/Nef_3/polyhedron_3_to_nef_3.h(265): error C3861:
'get_opposite_orthogonal_vector': identifier not found
2>D:\CGAL4.2\CGAL/Nef_3/polyhedron_3_to_nef_3.h(309): error C2027: use of
undefined type 'CGAL::internal::Plane_constructor<T>'
2> with
2> [
2> T=Plane
2> ]
2>D:\CGAL4.2\CGAL/Nef_3/polyhedron_3_to_nef_3.h(309): error C3861:
'get_opposite_orthogonal_vector': identifier not found
2>
2>Build FAILED.




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Suggestion-How-to-output-a-unique-polyhedron-after-boolean-operation-tp4657807p4657822.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page