From 5b625afc5dc8e9cdba91a703c3ded6b5f4bfd229 Mon Sep 17 00:00:00 2001 From: Pierre Kraemer Date: Wed, 4 Jan 2012 11:22:53 +0100 Subject: [PATCH] micro modifs --- include/Algo/Modelisation/polyhedron.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/Algo/Modelisation/polyhedron.hpp b/include/Algo/Modelisation/polyhedron.hpp index dec3e47fa..f7a6efc5d 100644 --- a/include/Algo/Modelisation/polyhedron.hpp +++ b/include/Algo/Modelisation/polyhedron.hpp @@ -597,7 +597,7 @@ Dart Polyhedron::cube_topo(unsigned int x, unsigned int y, unsigned int z) { if (m_kind != NONE) return m_dart; - m_dart = cylinder_topo(2*(x+y),z, false,false); + m_dart = cylinder_topo(2*(x+y), z, false, false); m_kind = CUBE; m_nx = x; m_ny = y; @@ -697,17 +697,17 @@ Dart Polyhedron::tore_topo(unsigned int m, unsigned int n) if (m_kind != NONE) return m_dart; m_dart = cylinder_topo(n, m, false, false); - m_nx=n; - m_ny=m; + m_nx = n; + m_ny = m; m_kind = TORE; - // juste finish to sew + // just finish to sew for(unsigned int i = 0; i < n; ++i) { Dart d = m_tableVertDarts[i]; Dart e = m_tableVertDarts[(m*n)+i]; e = m_map.phi_1(e); - m_map.sewFaces(d, e, true); + m_map.sewFaces(d, e); } // remove the last n vertex darts that are no more necessary (sewed with n first) @@ -722,7 +722,8 @@ void Polyhedron::embedGrid(float x, float y, float z) { typedef typename PFP::VEC3 VEC3 ; - if (m_kind != GRID) { + if (m_kind != GRID) + { CGoGNerr << "Warning try to embedGrid something that is not a grid"<