[ITK] [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/community/attachments/20140826/b952893b/attachment-0001.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list