* mln/io/off/load.hh (mln::io::off::load): Adjust.
---
milena/ChangeLog | 6 ++++++
milena/mln/io/off/load.hh | 6 ++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index e32143d..4d2c9e9 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,11 @@
2008-10-23 Roland Levillain <roland(a)lrde.epita.fr>
+ Adjust I/O routines to algebraic faces.
+
+ * mln/io/off/load.hh (mln::io::off::load): Adjust.
+
+2008-10-23 Roland Levillain <roland(a)lrde.epita.fr>
+
Convert iterators on complexes to algebraic faces.
* mln/topo/internal/complex_relative_iterator_base.hh
diff --git a/milena/mln/io/off/load.hh b/milena/mln/io/off/load.hh
index 6cdf3d5..38e6b6e 100644
--- a/milena/mln/io/off/load.hh
+++ b/milena/mln/io/off/load.hh
@@ -220,14 +220,16 @@ namespace mln
topo::n_face<0, D> vertex(c, vertex_id);
topo::n_face<0, D> next_vertex(c, next_vertex_id);
// The current edge.
- topo::n_face<1, D> edge;
+ topo::algebraic_n_face<1, D> edge;
// If the edge has been constructed yet, create it;
// otherwise, retrieve its id from the complex.
if (!complex_edges[vertex_id][next_vertex_id])
{
complex_edges[vertex_id][next_vertex_id] = true;
complex_edges[next_vertex_id][vertex_id] = true;
- edge = c.add_face(vertex + next_vertex);
+ edge =
+ make_algebraic_n_face(c.add_face(vertex - next_vertex),
+ true);
}
else
{
--
1.5.6.5
Show replies by date