diff --git a/src/ifcgeom/kernels/cgal/CgalConversionFunctions.cpp b/src/ifcgeom/kernels/cgal/CgalConversionFunctions.cpp index c3645d77b8..026b491b88 100644 --- a/src/ifcgeom/kernels/cgal/CgalConversionFunctions.cpp +++ b/src/ifcgeom/kernels/cgal/CgalConversionFunctions.cpp @@ -87,29 +87,29 @@ CGAL::Nef_polyhedron_3 IfcGeom::CgalKernel::create_nef_polyhedron(CGAL:: } } -CGAL::Polyhedron_3 IfcGeom::CgalKernel::triangulate_faces(CGAL::Polyhedron_3 &polyhedron) { - std::list face_list; - - for (CGAL::Polyhedron_3::Facet_const_iterator current_facet = polyhedron.facets_begin(); - current_facet != polyhedron.facets_end(); - ++current_facet) { - - // Triangle - if (current_facet->is_triangle()) { - face_list.push_back(cgal_face_t()); - CGAL::Polyhedron_3::Halfedge_around_facet_const_circulator current_halfedge = current_facet->facet_begin(); - do { - face_list.back().outer.push_back(current_halfedge->vertex()->point()); - ++current_halfedge; - } while (current_halfedge != current_facet->facet_begin()); - } - - // Polygon - else { - std::list points_in_polygon; - - } - } - - return create_polyhedron(face_list); -} +//CGAL::Polyhedron_3 IfcGeom::CgalKernel::triangulate_faces(CGAL::Polyhedron_3 &polyhedron) { +// std::list face_list; +// +// for (CGAL::Polyhedron_3::Facet_const_iterator current_facet = polyhedron.facets_begin(); +// current_facet != polyhedron.facets_end(); +// ++current_facet) { +// +// // Triangle +// if (current_facet->is_triangle()) { +// face_list.push_back(cgal_face_t()); +// CGAL::Polyhedron_3::Halfedge_around_facet_const_circulator current_halfedge = current_facet->facet_begin(); +// do { +// face_list.back().outer.push_back(current_halfedge->vertex()->point()); +// ++current_halfedge; +// } while (current_halfedge != current_facet->facet_begin()); +// } +// +// // Polygon +// else { +// std::list points_in_polygon; +// +// } +// } +// +// return create_polyhedron(face_list); +//} diff --git a/src/ifcgeom/kernels/cgal/CgalKernel.h b/src/ifcgeom/kernels/cgal/CgalKernel.h index a445ec275c..ed3ba02b69 100644 --- a/src/ifcgeom/kernels/cgal/CgalKernel.h +++ b/src/ifcgeom/kernels/cgal/CgalKernel.h @@ -140,7 +140,7 @@ namespace IfcGeom { bool convert_openings(const IfcSchema::IfcProduct* entity, const IfcSchema::IfcRelVoidsElement::list::ptr& openings, const ConversionResults& entity_shapes, const cgal_placement_t& entity_trsf, ConversionResults& cut_shapes); - CGAL::Polyhedron_3 triangulate_faces(CGAL::Polyhedron_3 &polyhedron); +// CGAL::Polyhedron_3 triangulate_faces(CGAL::Polyhedron_3 &polyhedron); CGAL::Polyhedron_3 create_polyhedron(std::list &face_list); CGAL::Polyhedron_3 create_polyhedron(CGAL::Nef_polyhedron_3 &nef_polyhedron); CGAL::Nef_polyhedron_3 create_nef_polyhedron(std::list &face_list);