Commit a0318596 authored by maesius's avatar maesius

debug

parent 1a7c2062
......@@ -119,7 +119,8 @@ void LrBinderRegularGrid::initBinder()
(*itEntity)->getMinMax(minTMP, maxTMP, i, infoVoxel.m_entite, infoVoxel.m_numFragment);
/*
minVoxelI = (int)(((minTMP.x - min.x) / m_lenBinder.x) * m_nbVoxelX);
minVoxelJ = (int)(((minTMP.y - min.y) / m_lenBinder.y) * m_nbVoxelY);
minVoxelK = (int)(((minTMP.z - min.z) / m_lenBinder.z) * m_nbVoxelZ);
......@@ -127,10 +128,11 @@ void LrBinderRegularGrid::initBinder()
maxVoxelI = (int)(((maxTMP.x - min.x) / m_lenBinder.x) * m_nbVoxelX);
maxVoxelJ = (int)(((maxTMP.y - min.y) / m_lenBinder.y) * m_nbVoxelY);
maxVoxelK = (int)(((maxTMP.z - min.z) / m_lenBinder.z) * m_nbVoxelZ);
*/
for (int i = minVoxelI; i < maxVoxelI; i++) {
for (int j = minVoxelJ; j < maxVoxelJ; j++) {
for (int k = minVoxelK; k < maxVoxelK; k++) {
for (int i = 0; i < m_nbVoxelX; i++) {
for (int j = 0; j < m_nbVoxelY; j++) {
for (int k = 0; k < m_nbVoxelZ; k++) {
int numCase = (i + m_nbVoxelX * (j + k * m_nbVoxelY));
m_tabVoxel[numCase].push_back(infoVoxel);
......
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