<div>Hello Users, </div><div><br></div><div>can anyone tell me what is wrong about the way I used the itk::TriangleMeshToSimplexMeshFilter shown below? I am getting runtime error &quot;Expression: map/set iterator not incrementable&quot;.</div>
<div><br></div><div>I appreciate your help in advance.</div><div>Fitsum</div><div>***********************************************************************************************************************</div><div>const unsigned int Dimension = 3;</div>
<div>typedef short PixelType;</div><div>typedef float  RealPixelType;</div><div>typedef itk::Mesh&lt;RealPixelType, Dimension&gt; MeshType;</div><div>typedef itk::SimplexMesh&lt;RealPixelType, Dimension&gt; OutMeshType;</div>
<div><div>typedef itk::TriangleMeshToSimplexMeshFilter&lt;MeshType,OutMeshType&gt; Triangle2SimplexFiterType;</div><div><br></div><div>// mesh has been created </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Triangle2SimplexFiterType::Pointer triangle2SimplexFilter = Triangle2SimplexFiterType::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>OutMeshType::Pointer simplexmesh = OutMeshType::New();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>triangle2SimplexFilter-&gt;SetInput(mesh) ;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>triangle2SimplexFilter-&gt;GraftOutput(simplexmesh);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>triangle2SimplexFilter-&gt;Update();</div>
</div><div>***********************************************************************************************************************</div><div><br></div>