diff --git a/Tools/MeshSkinning/main.cpp b/Tools/MeshSkinning/main.cpp index f1607929..fe04ff57 100644 --- a/Tools/MeshSkinning/main.cpp +++ b/Tools/MeshSkinning/main.cpp @@ -111,11 +111,13 @@ unsigned int getNeighbor(const unsigned int pointSetIndex, const unsigned int in return neighborhoodSearch->point_set(0).neighbor(pointSetIndex, index, k); } +namespace std { std::ostream& operator << (std::ostream& out, const Vector3r& r) { out << r[0] << ", " << r[1] << ", " << r[2]; return out; } +} // main @@ -216,18 +218,18 @@ int main( int argc, char **argv ) } if (result.count("scale")) - scale = Vector3r(result["scale"].as>().data()); + scale = Vector3r(result["scale"].as>().data()); LOG_INFO << "Scale: " << scale; if (result.count("translation")) - translation = Vector3r(result["translation"].as>().data()); + translation = Vector3r(result["translation"].as>().data()); LOG_INFO << "Translation: " << translation; Vector3r axis = Vector3r::Zero(); Real angle = 0.0; rotation = Matrix3r::Identity(); if (result.count("axis")) - axis = Vector3r(result["axis"].as>().data()); + axis = Vector3r(result["axis"].as>().data()); if (result.count("angle")) { angle = result["angle"].as(); diff --git a/Tools/VolumeSampling/main.cpp b/Tools/VolumeSampling/main.cpp index 6125b963..f4e0b33b 100644 --- a/Tools/VolumeSampling/main.cpp +++ b/Tools/VolumeSampling/main.cpp @@ -62,6 +62,7 @@ bool useCache = true; std::shared_ptr distanceField; +namespace std { std::ostream& operator << (std::ostream& out, const Eigen::Matrix& r) { out << r[0] << ", " << r[1] << ", " << r[2]; @@ -73,6 +74,7 @@ std::ostream& operator << (std::ostream& out, const Vector3r& r) out << r[0] << ", " << r[1] << ", " << r[2]; return out; } +} // main int main(int argc, char **argv) @@ -161,7 +163,7 @@ int main(int argc, char **argv) LOG_INFO << "Radius: " << radius; if (result.count("scale")) - scale = Vector3r(result["scale"].as>().data()); + scale = Vector3r(result["scale"].as>().data()); LOG_INFO << "Scale: " << scale; if (result.count("steps")) @@ -209,7 +211,7 @@ int main(int argc, char **argv) const std::vector &v = result["region"].as>(); if (v.size() == 6) region = SamplingBase::Region(v[0], v[1], v[2], v[3], v[4], v[5]); - else + else LOG_WARN << "Region parameter has wrong number of elements."; useRegion = true; LOG_INFO << "Region - min: " << region.m_min.transpose();