Commit 3f53978c authored by Martin Marinov's avatar Martin Marinov
Browse files

Input mesh stitching and feature line detection improvements.

[git-p4: depot-paths = "//ReForm/ReForm/main/Base/": change = 11423]
parent 8b292f3f
......@@ -165,32 +165,40 @@ public:
};
DebStream& operator<<(DebStream& ds, const int i);
DebStream& operator<<(DebStream& ds, const double d);
DebStream& operator<<(DebStream& _ds, const int i);
DebStream& operator<<(DebStream& _ds, const double d);
DebStream& operator<<(DebStream& ds, const size_t i);
DebStream& operator<<(DebStream& ds, const unsigned int i);
DebStream& operator<<(DebStream& ds, const float d);
DebStream& operator<<(DebStream& _ds, const size_t i);
DebStream& operator<<(DebStream& _ds, const unsigned int i);
DebStream& operator<<(DebStream& _ds, const float d);
DebStream& operator<<(DebStream& ds, const char c);
DebStream& operator<<(DebStream& ds, const char* const s);
DebStream& operator<<(DebStream& ds, const std::string& s);
DebStream& operator<<(DebStream& _ds, const char c);
DebStream& operator<<(DebStream& _ds, const char* const s);
DebStream& operator<<(DebStream& _ds, const std::string& s);
DebStream& operator<<(DebStream& ds, const DebCommand& co);
DebStream& operator<<(DebStream& _ds, const DebCommand& co);
template< typename _Ty>
DebStream& operator<<(DebStream& ds, const std::vector< _Ty >& vec)
// DebStream operator for std::vector<>
template< typename ElementT>
DebStream& operator<<(DebStream& _ds, const std::vector<ElementT>& _vec)
{
typename std::vector<_Ty>::const_iterator itr;
ds << "[ ";
for (itr = vec.begin(); itr != vec.end(); ++itr)
ds << *itr << " ";
ds << "]";
return ds;
_ds << "[ ";
for (const auto el : _vec)
_ds << el << " ";
_ds << "]";
return _ds;
}
// A std::stream streamer might be useful here. Add when needed.
// DebStream operator for fixed size arrays
template <typename ElementT, size_t _el_nmbr>
DebStream& operator<<(DebStream& _ds, const ElementT (&_arr)[_el_nmbr])
{
_ds << "[ ";
for (const auto el : _arr)
_ds << el << " ";
_ds << "]";
return _ds;
}
}//namespace
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment