* mln/io/off/save.hh
(mln::io::off::internal::float_off_saver::write_face_data)
(mln::io::off::internal::rgb8_off_saver::write_face_data):
Do not print extra blank lines.
---
milena/ChangeLog | 9 +++++++++
milena/mln/io/off/save.hh | 5 ++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 423ebb4..aab403c 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,14 @@
2009-04-06 Roland Levillain <roland(a)lrde.epita.fr>
+ Aesthetic changes in the output of the save routine for OFF file.
+
+ * mln/io/off/save.hh
+ (mln::io::off::internal::float_off_saver::write_face_data)
+ (mln::io::off::internal::rgb8_off_saver::write_face_data):
+ Do not print extra blank lines.
+
+2009-04-06 Roland Levillain <roland(a)lrde.epita.fr>
+
Add a load routine for color (RGB) OFF (surface mesh) files.
* mln/io/off/load.hh
diff --git a/milena/mln/io/off/save.hh b/milena/mln/io/off/save.hh
index 7bb4292..e983525 100644
--- a/milena/mln/io/off/save.hh
+++ b/milena/mln/io/off/save.hh
@@ -127,7 +127,6 @@ namespace mln
void write_face_data(std::ostream& ostr, const value& v) const;
};
-
struct int_u8_off_saver
: public off_saver< int_u8_2complex_image3df, int_u8_off_saver >
{
@@ -423,7 +422,7 @@ namespace mln
mln_assertion(0.0f <= v);
mln_assertion(v <= 1.0f);
ostr << ' ' << v << ' ' << v << '
' << v
- << ' ' << 1.0f << std::endl;
+ << ' ' << 1.0f;
}
void
@@ -436,7 +435,7 @@ namespace mln
the range 0..255. A fourth channel, A, controls the
transparency. */
ostr << ' ' << v.red() << ' ' << v.green()
<< ' ' << v.blue()
- << ' ' << 1.0f << std::endl;
+ << ' ' << 1.0f;
}
/* \} */
--
1.6.1.2