<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Hello,<div><br></div><div>I am trying to modify vtkPolyDataConnectivityFilter.</div>
<div>Everything is fine except when I try to reset the PointMap array (vtkIdType).</div><div><br></div><div>I use this code (the same used to initializate the array):</div><div><br></div><div>for (int i = 0; i < numPts; i++)</div>
<div>{</div><div>this->PointMap[i] = -1;</div><div>}</div><div><br></div><div>I put this code just after the for loop to find the largest region id.</div><div><br></div><div>It compiled without any problem.</div><div><br>
</div><div>But when I run this code I have this error:</div><div><br></div><div><div>Slicer3-real: malloc.c:3574: mremap_chunk: Assertion `((size + offset) & (mp_.pagesize-1)) == 0' failed.</div><div>zsh: abort /home/freak/Slicer3/Slicer3-Experimental/Slicer3-build/bin/Slicer3-real</div>
</div><div><br></div><div>numPts seems not to be modified, so I don't understand what this problem is not happening during initialization.</div><div><br></div><div>Do you have an idea what the problem could be ?</div>
<div><br></div><div>Thank you.</div><div>Laurent.</div></span>