[Insight-users] runtime error with itk::SimplexMeshToTriangleMeshFilter
Reda, Fitsum A
fitecx at gmail.com
Thu May 5 22:27:00 EDT 2011
Hello Users,
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".
I appreciate your help in advance.
Fitsum
***********************************************************************************************************************
const unsigned int Dimension = 3;
typedef short PixelType;
typedef float RealPixelType;
typedef itk::Mesh<RealPixelType, Dimension> MeshType;
typedef itk::SimplexMesh<RealPixelType, Dimension> OutMeshType;
typedef itk::TriangleMeshToSimplexMeshFilter<MeshType,OutMeshType>
Triangle2SimplexFiterType;
// mesh has been created
Triangle2SimplexFiterType::Pointer triangle2SimplexFilter =
Triangle2SimplexFiterType::New();
OutMeshType::Pointer simplexmesh = OutMeshType::New();
triangle2SimplexFilter->SetInput(mesh) ;
triangle2SimplexFilter->GraftOutput(simplexmesh);
triangle2SimplexFilter->Update();
***********************************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110505/1efbd14d/attachment.htm>
More information about the Insight-users
mailing list