<div dir="ltr">However it seems to compile fine when SimplexMesh is prototyped as: SimplexMesh< float, 3 ><div>The compiler error message is:</div><div><br></div><div><div>In file included from /home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.h:186:0,</div>
<div> from /home/andrew/workspace/gvfReg/meshLaplacian.cxx:17:</div><div>/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>]’:</div>
<div>/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>]’</div>
<div>/home/andrew/workspace/gvfReg/meshLaplacian.cxx:173:1: instantiated from here</div><div>/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*)’</div>
<div>/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:77:61: note: candidate is:</div><div>/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>]</div>
<div>/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>*}’</div>
<div>/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*)’</div>
<div>/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:78:61: note: candidate is:</div><div>/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>]</div>
<div>/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>*}’</div>
<div>/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*)’</div>
<div>/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:79:61: note: candidate is:</div><div>/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>]</div>
<div>/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>*}’</div>
<div>make[2]: *** [CMakeFiles/meshLaplacian.dir/meshLaplacian.o] Error 1</div><div>make[1]: *** [CMakeFiles/meshLaplacian.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div></div>