Commit 0f0c1735 authored by Sylvain Thery's avatar Sylvain Thery
Browse files

resolve picking pb in topo3

parent bb7622ee
......@@ -75,6 +75,7 @@ void Topo3Render::updateDataMap3(typename PFP::MAP& mapx, const VertexAttribute<
m_nbDarts = 0;
for (Dart d = mapx.begin(); d != mapx.end(); mapx.next(d))
{
if (!mapx.isBoundaryMarked3(d)) // in the following code Traversor do not traverse boundary
m_nbDarts++;
}
......@@ -236,6 +237,8 @@ void Topo3Render::setDartsIdColor(typename PFP::MAP& map)
unsigned int nb=0;
for (Dart d = map.begin(); d != map.end(); map.next(d))
{
if ( !map.isBoundaryMarked3(d)) // topo3 Render do not traverse boundary
{
if (nb < m_nbDarts)
{
......@@ -249,7 +252,6 @@ void Topo3Render::setDartsIdColor(typename PFP::MAP& map)
*local++ = r;
*local++ = g;
*local++ = b;
nb++;
}
else
......@@ -258,6 +260,7 @@ void Topo3Render::setDartsIdColor(typename PFP::MAP& map)
break;
}
}
}
glUnmapBuffer(GL_ARRAY_BUFFER);
}
......@@ -269,6 +272,8 @@ void Topo3Render::updateColors(typename PFP::MAP& map, const VertexAttribute<typ
unsigned int nb=0;
for (Dart d = map.begin(); d != map.end(); map.next(d))
{
if ( !map.isBoundaryMarked3(d)) // topo3 Render do not traverse boundary
{
if (nb < m_nbDarts)
{
......@@ -281,6 +286,7 @@ void Topo3Render::updateColors(typename PFP::MAP& map, const VertexAttribute<typ
break;
}
}
}
glUnmapBuffer(GL_ARRAY_BUFFER);
}
......@@ -313,6 +319,7 @@ void Topo3Render::updateDataGMap3(typename PFP::MAP& mapx, const VertexAttribute
m_nbDarts = 0;
for (Dart d = mapx.begin(); d != mapx.end(); mapx.next(d))
{
if (!map.isBoundaryMarked3(d)) // in the following code Traversor do not traverse boundary
m_nbDarts++;
}
......
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