[Insight-users] Problem converting SimplexMesh back into Mesh

Sven Olaf Lüttmann sven.luettmann at fh-dortmund.de
Thu Oct 27 10:06:27 EDT 2011


I did some further testing and could solve the compiler errors mentioned before. But now I get these 
error messages from the compiler.
They seem to have something to do with the itk::MapContainer, but I can't figure out what is wrong.

Any suggestions on that?

Here are the error messages:
=====================

In file included from 
/usr/local/include/InsightToolkit/BasicFilters/itkSimplexMeshToTriangleMeshFilter.h:190:0,
                  from vtkMySegmentation.h:19,
                  from vtkMySegmentation.cxx:1:
/usr/local/include/InsightToolkit/BasicFilters/itkSimplexMeshToTriangleMeshFilter.txx: In member 
function 'void itk::SimplexMeshToTriangleMeshFilter<TInputMesh, TOutputMesh>::CreateTriangles() 
[with TInputMesh = itk::SimplexMesh<double>, TOutputMesh = itk::Mesh<double>]':

/usr/local/include/InsightToolkit/BasicFilters/itkSimplexMeshToTriangleMeshFilter.txx:42:3:   
instantiated from 'void itk::SimplexMeshToTriangleMeshFilter<TInputMesh, 
TOutputMesh>::GenerateData() [with TInputMesh = itk::SimplexMesh<double>, TOutputMesh = 
itk::Mesh<double>]'

vtkMySegmentation.cxx:536:1:   instantiated from here
/usr/local/include/InsightToolkit/BasicFilters/itkSimplexMeshToTriangleMeshFilter.txx:79:62: error: 
no matching function for call to 'itk::MapContainer<long unsigned int, itk::Point<double, 3u> 
 >::GetElementIfIndexExists(long unsigned int&, itk::AutomaticTopologyMeshSource<itk::Mesh<double> 
 >::PointType*)'

/usr/local/include/InsightToolkit/Common/itkMapContainer.txx:130:1: note: candidate is: bool 
itk::MapContainer<TElementIdentifier, TElement>::GetElementIfIndexExists(ElementIdentifier, 
Element*) const [with TElementIdentifier = long unsigned int, TElement = itk::Point<double, 3u>, 
ElementIdentifier = long unsigned int, Element = itk::Point<double, 3u>]

/usr/local/include/InsightToolkit/BasicFilters/itkSimplexMeshToTriangleMeshFilter.txx:80:62: error: 
no matching function for call to 'itk::MapContainer<long unsigned int, itk::Point<double, 3u> 
 >::GetElementIfIndexExists(long unsigned int&, itk::AutomaticTopologyMeshSource<itk::Mesh<double> 
 >::PointType*)'

/usr/local/include/InsightToolkit/Common/itkMapContainer.txx:130:1: note: candidate is: bool 
itk::MapContainer<TElementIdentifier, TElement>::GetElementIfIndexExists(ElementIdentifier, 
Element*) const [with TElementIdentifier = long unsigned int, TElement = itk::Point<double, 3u>, 
ElementIdentifier = long unsigned int, Element = itk::Point<double, 3u>]

/usr/local/include/InsightToolkit/BasicFilters/itkSimplexMeshToTriangleMeshFilter.txx:81:62: error: 
no matching function for call to 'itk::MapContainer<long unsigned int, itk::Point<double, 3u> 
 >::GetElementIfIndexExists(long unsigned int&, itk::AutomaticTopologyMeshSource<itk::Mesh<double> 
 >::PointType*)'

/usr/local/include/InsightToolkit/Common/itkMapContainer.txx:130:1: note: candidate is: bool 
itk::MapContainer<TElementIdentifier, TElement>::GetElementIfIndexExists(ElementIdentifier, 
Element*) const [with TElementIdentifier = long unsigned int, TElement = itk::Point<double, 3u>, 
ElementIdentifier = long unsigned int, Element = itk::Point<double, 3u>]


Thank you very much.

Sven




-- 
*Fachhochschule Dortmund*
*University of Applied Sciences and Arts*

Sven Olaf Lüttmann
B.Sc. Medizinische Informatik

FB Informatik, Medizinische Informatik
Emil-Figge-Str. 42
44227 Dortmund

Raum: EFS 42 B.1.21

Fax: 0231 / 755-6725
E-Mail: sven.luettmann at fh-dortmund.de <mailto:sven.luettmann at fh-dortmund.de>
Web: http://www.fh-dortmund.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111027/cff5400c/attachment.htm>


More information about the Insight-users mailing list