<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 "Expression: map/set iterator not incrementable".</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<RealPixelType, Dimension> MeshType;</div><div>typedef itk::SimplexMesh<RealPixelType, Dimension> OutMeshType;</div>
<div><div>typedef itk::TriangleMeshToSimplexMeshFilter<MeshType,OutMeshType> 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->SetInput(mesh) ;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>triangle2SimplexFilter->GraftOutput(simplexmesh);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>triangle2SimplexFilter->Update();</div>
</div><div>***********************************************************************************************************************</div><div><br></div>