diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/PolySetCGALEvaluator.cc | 2 | ||||
-rw-r--r-- | src/polyset.cc | 50 |
2 files changed, 26 insertions, 26 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc index ee19531..8e8c8a1 100644 --- a/src/PolySetCGALEvaluator.cc +++ b/src/PolySetCGALEvaluator.cc @@ -52,7 +52,7 @@ public: // CGAL::Direction_3<CGAL_Kernel3> up(0,0,1); CGAL::Plane_3<CGAL_Kernel3> plane = hfacet->plane(); - out << " direction == up? " << ( plane.orthogonal_direction() == up ) << "\n"; + // out << " direction == up? " << ( plane.orthogonal_direction() == up ) << "\n"; if ( plane.orthogonal_direction() != up ) { // out << "direction == down. skipping"; return; diff --git a/src/polyset.cc b/src/polyset.cc index b6df0c2..b412f5f 100644 --- a/src/polyset.cc +++ b/src/polyset.cc @@ -50,32 +50,32 @@ PolySet::~PolySet() std::string PolySet::dump() const { - std::stringstream out; - out << "PolySet:" - << "\n dimensions:" << std::string( this->is2d ? "2" : "3" ) - << "\n convexity:" << this->convexity - << "\n num polygons: " << polygons.size() - << "\n num borders: " << borders.size() - << "\n polygons data:"; - for (size_t i = 0; i < polygons.size(); i++) { - out << "\n polygon begin:"; - const Polygon *poly = &polygons[i]; - for (size_t j = 0; j < poly->size(); j++) { - Vector3d v = poly->at(j); - out << "\n vertex:" << v.transpose(); - } - } + std::stringstream out; + out << "PolySet:" + << "\n dimensions:" << std::string( this->is2d ? "2" : "3" ) + << "\n convexity:" << this->convexity + << "\n num polygons: " << polygons.size() + << "\n num borders: " << borders.size() + << "\n polygons data:"; + for (size_t i = 0; i < polygons.size(); i++) { + out << "\n polygon begin:"; + const Polygon *poly = &polygons[i]; + for (size_t j = 0; j < poly->size(); j++) { + Vector3d v = poly->at(j); + out << "\n vertex:" << v.transpose(); + } + } out << "\n borders data:"; - for (size_t i = 0; i < borders.size(); i++) { - out << "\n border polygon begin:"; - const Polygon *poly = &borders[i]; - for (size_t j = 0; j < poly->size(); j++) { - Vector3d v = poly->at(j); - out << "\n vertex:" << v.transpose(); - } - } - out << "\nPolySet end"; - return out.str(); + for (size_t i = 0; i < borders.size(); i++) { + out << "\n border polygon begin:"; + const Polygon *poly = &borders[i]; + for (size_t j = 0; j < poly->size(); j++) { + Vector3d v = poly->at(j); + out << "\n vertex:" << v.transpose(); + } + } + out << "\nPolySet end"; + return out.str(); } void PolySet::append_poly() |