Basic code to output triangulation, something goes wrong when getting materials...

This commit is contained in:
Ken Arroyo Ohori
2017-02-08 16:12:19 -06:00
parent 2894b0cb92
commit 7051104bc7
3 changed files with 189 additions and 20 deletions
@@ -132,20 +132,6 @@ bool IfcGeom::CgalKernel::convert(const IfcSchema::IfcConnectedFaceSet* l, cgal_
face_list.push_back(face);
}
// for (auto const &face : face_list) {
// std::cout << "Face" << std::endl;
// std::cout << "\touter: ";
// for (auto const &point: *face->outer) {
// std::cout << "(" << point << ") ";
// } std::cout << std::endl;
// for (auto const &inner: face->inner) {
// std::cout << "\tinner: ";
// for (auto const &point: *inner) {
// std::cout << "(" << point << ") ";
// } std::cout << std::endl;
// }
// }
cgal_shape_t polyhedron = CGAL::Polyhedron_3<Kernel>();
PolyhedronBuilder builder(&face_list);
polyhedron.delegate(builder);