Commit 98f4c489 authored by Kenneth Vanhoey's avatar Kenneth Vanhoey
Browse files

corrections sur gestion des boundingbox

parent c6d8c4e1
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#define __EDGESELECTOR_H__ #define __EDGESELECTOR_H__
#include "Algo/Decimation/selector.h" #include "Algo/Decimation/selector.h"
#include "Algo/Geometry/boundingbox.h"
#include "Container/fakeAttribute.h" #include "Container/fakeAttribute.h"
#include "Utils/qem.h" #include "Utils/qem.h"
......
...@@ -41,7 +41,7 @@ namespace Geometry ...@@ -41,7 +41,7 @@ namespace Geometry
template <typename PFP> template <typename PFP>
Geom::BoundingBox<typename PFP::VEC3> computeBoundingBox(typename PFP::MAP& map, const typename PFP::TVEC3& position, const FunctorSelect& select = SelectorTrue()) Geom::BoundingBox<typename PFP::VEC3> computeBoundingBox(typename PFP::MAP& map, const typename PFP::TVEC3& position, const FunctorSelect& select = SelectorTrue())
{ {
Geom::BoundingBox<typename PFP::VEC3> bb(position[map.begin()]) ; Geom::BoundingBox<typename PFP::VEC3> bb ;
CellMarker vmarker(map, VERTEX); CellMarker vmarker(map, VERTEX);
for(Dart d = map.begin(); d != map.end(); map.next(d)) for(Dart d = map.begin(); d != map.end(); map.next(d))
......
...@@ -129,6 +129,7 @@ void BoundingBox<VEC>::addPoint(const VEC& p) ...@@ -129,6 +129,7 @@ void BoundingBox<VEC>::addPoint(const VEC& p)
{ {
m_pMin = p ; m_pMin = p ;
m_pMax = p ; m_pMax = p ;
m_initialized = true ;
} }
else else
{ {
......
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