[Insight-users] SimplexMeshToTriangleMeshFilter fails to instantiate when prototyped with SimplexMesh< double, 3 >

Andrew Ho andrewkennethho at gmail.com
Sun Jul 7 02:53:03 EDT 2013


However it seems to compile fine when SimplexMesh is prototyped as:
 SimplexMesh< float, 3 >
The compiler error message is:

In file included from
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.h:186:0,
                 from /home/andrew/workspace/gvfReg/meshLaplacian.cxx:17:
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:
In member function ‘void itk::SimplexMeshToTriangleMeshFilter<TInputMesh,
TOutputMesh>::CreateTriangles() [with TInputMesh = itk::SimplexMesh<double,
3u>, TOutputMesh = itk::Mesh<double, 3u>]’:
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:39:3:
  instantiated from ‘void itk::SimplexMeshToTriangleMeshFilter<TInputMesh,
TOutputMesh>::GenerateData() [with TInputMesh = itk::SimplexMesh<double,
3u>, TOutputMesh = itk::Mesh<double, 3u>]’
/home/andrew/workspace/gvfReg/meshLaplacian.cxx:173:1:   instantiated from
here
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:77:61:
error: no matching function for call to ‘itk::MapContainer<long unsigned
int, itk::Point<double, 3u>
>::GetElementIfIndexExists(itk::SimplexMeshToTriangleMeshFilter<itk::SimplexMesh<double,
3u>, itk::Mesh<double, 3u> >::CellIdentifier&,
itk::AutomaticTopologyMeshSource<itk::Mesh<double, 3u> >::PointType*)’
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:77:61:
note: candidate is:
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Common/include/itkMapContainer.hxx:125:1:
note: bool itk::MapContainer<TElementIdentifier,
TElement>::GetElementIfIndexExists(itk::MapContainer<TElementIdentifier,
TElement>::ElementIdentifier, itk::MapContainer<TElementIdentifier,
TElement>::Element*) const [with TElementIdentifier = long unsigned int,
TElement = itk::Point<double, 3u>, itk::MapContainer<TElementIdentifier,
TElement>::ElementIdentifier = long unsigned int,
itk::MapContainer<TElementIdentifier, TElement>::Element =
itk::Point<double, 3u>]
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Common/include/itkMapContainer.hxx:125:1:
note:   no known conversion for argument 2 from
‘itk::AutomaticTopologyMeshSource<itk::Mesh<double, 3u> >::PointType* {aka
itk::Point<float, 3u>*}’ to ‘itk::MapContainer<long unsigned int,
itk::Point<double, 3u> >::Element* {aka itk::Point<double, 3u>*}’
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:78:61:
error: no matching function for call to ‘itk::MapContainer<long unsigned
int, itk::Point<double, 3u>
>::GetElementIfIndexExists(itk::SimplexMeshToTriangleMeshFilter<itk::SimplexMesh<double,
3u>, itk::Mesh<double, 3u> >::CellIdentifier&,
itk::AutomaticTopologyMeshSource<itk::Mesh<double, 3u> >::PointType*)’
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:78:61:
note: candidate is:
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Common/include/itkMapContainer.hxx:125:1:
note: bool itk::MapContainer<TElementIdentifier,
TElement>::GetElementIfIndexExists(itk::MapContainer<TElementIdentifier,
TElement>::ElementIdentifier, itk::MapContainer<TElementIdentifier,
TElement>::Element*) const [with TElementIdentifier = long unsigned int,
TElement = itk::Point<double, 3u>, itk::MapContainer<TElementIdentifier,
TElement>::ElementIdentifier = long unsigned int,
itk::MapContainer<TElementIdentifier, TElement>::Element =
itk::Point<double, 3u>]
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Common/include/itkMapContainer.hxx:125:1:
note:   no known conversion for argument 2 from
‘itk::AutomaticTopologyMeshSource<itk::Mesh<double, 3u> >::PointType* {aka
itk::Point<float, 3u>*}’ to ‘itk::MapContainer<long unsigned int,
itk::Point<double, 3u> >::Element* {aka itk::Point<double, 3u>*}’
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:79:61:
error: no matching function for call to ‘itk::MapContainer<long unsigned
int, itk::Point<double, 3u>
>::GetElementIfIndexExists(itk::SimplexMeshToTriangleMeshFilter<itk::SimplexMesh<double,
3u>, itk::Mesh<double, 3u> >::CellIdentifier&,
itk::AutomaticTopologyMeshSource<itk::Mesh<double, 3u> >::PointType*)’
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:79:61:
note: candidate is:
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Common/include/itkMapContainer.hxx:125:1:
note: bool itk::MapContainer<TElementIdentifier,
TElement>::GetElementIfIndexExists(itk::MapContainer<TElementIdentifier,
TElement>::ElementIdentifier, itk::MapContainer<TElementIdentifier,
TElement>::Element*) const [with TElementIdentifier = long unsigned int,
TElement = itk::Point<double, 3u>, itk::MapContainer<TElementIdentifier,
TElement>::ElementIdentifier = long unsigned int,
itk::MapContainer<TElementIdentifier, TElement>::Element =
itk::Point<double, 3u>]
/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Common/include/itkMapContainer.hxx:125:1:
note:   no known conversion for argument 2 from
‘itk::AutomaticTopologyMeshSource<itk::Mesh<double, 3u> >::PointType* {aka
itk::Point<float, 3u>*}’ to ‘itk::MapContainer<long unsigned int,
itk::Point<double, 3u> >::Element* {aka itk::Point<double, 3u>*}’
make[2]: *** [CMakeFiles/meshLaplacian.dir/meshLaplacian.o] Error 1
make[1]: *** [CMakeFiles/meshLaplacian.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130706/98ff1ab9/attachment.htm>


More information about the Insight-users mailing list