[ITK-users] Create PolygonToMeshFilter

Jose Ignacio Prieto joseignacio.prieto at gmail.com
Tue Aug 26 11:35:50 EDT 2014


Hi all,
I am trying to create a filter that receives many 2D polygons in the form
of PolyLineParametricPath (which in turn has an itkImage as input) and
returns an itkMesh for later visualization. I have completed the
GenerateData() method by calling internally to
itkAutomaticTopologyMeshSource. The problem seems to be that before
GenerateData, the filter fails in itkPointSet::CopyInformation (because it
tries to cast the polygon as a mesh). I discovered that the call stack
comes from UpdateOutputInformation on my PolygonToMeshFilter and then
GenerateOutputInformation, then itkMesh::CopyInformation and
itkPointset::CopyInformation.
I think I should edit my PolygonToMesh::GenerateOutputInformation() but I
don't know how. Inside it I just called
Superclass::GenerateOutputInformation.
My filter PolygonToMeshFilter is a copy of MeshToMesh filter and inherits
from MeshSource. Maybe I should inherit from anothe filter.
Thank you very much

Ignacio Prieto

--
Ignacio Prieto
Research Assistant
Biomedical Imaging Center
Pontificia Universidad Catolica de Chile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140826/b952893b/attachment.html>


More information about the Insight-users mailing list