Commit 61a03a10 authored by Sylvain Thery's avatar Sylvain Thery
Browse files

Resolve bug of missing phi1 in GMap3 topo rendering

parent 924c5ab5
...@@ -354,7 +354,7 @@ int main(int argc, char **argv) ...@@ -354,7 +354,7 @@ int main(int argc, char **argv)
{ {
position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position"); position = myMap.addAttribute<PFP::VEC3>(VERTEX, "position");
Algo::Modelisation::Primitive3D<PFP> prim(myMap, position); Algo::Modelisation::Primitive3D<PFP> prim(myMap, position);
int nb = 32; int nb = 8;
prim.hexaGrid_topo(nb,nb,nb); prim.hexaGrid_topo(nb,nb,nb);
prim.embedHexaGrid(1.0f,1.0f,1.0f); prim.embedHexaGrid(1.0f,1.0f,1.0f);
......
...@@ -515,6 +515,7 @@ void Topo3Render::updateDataGMap3(typename PFP::MAP& mapx, const typename PFP::T ...@@ -515,6 +515,7 @@ void Topo3Render::updateDataGMap3(typename PFP::MAP& mapx, const typename PFP::T
*positionF1++ = fv1[d]; *positionF1++ = fv1[d];
d = map.beta1(d); d = map.beta1(d);
*positionF1++ = fv1[d]; *positionF1++ = fv1[d];
m_nbRel1++;
} while (d != *face ); } while (d != *face );
} }
......
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