<div dir="ltr">However it seems to compile fine when SimplexMesh is prototyped as:  SimplexMesh&lt; float, 3 &gt;<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&lt;TInputMesh, TOutputMesh&gt;::CreateTriangles() [with TInputMesh = itk::SimplexMesh&lt;double, 3u&gt;, TOutputMesh = itk::Mesh&lt;double, 3u&gt;]’:</div>

<div>/home/andrew/src/InsightToolkit-4.3.2/Modules/Core/Mesh/include/itkSimplexMeshToTriangleMeshFilter.hxx:39:3:   instantiated from ‘void itk::SimplexMeshToTriangleMeshFilter&lt;TInputMesh, TOutputMesh&gt;::GenerateData() [with TInputMesh = itk::SimplexMesh&lt;double, 3u&gt;, TOutputMesh = itk::Mesh&lt;double, 3u&gt;]’</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&lt;long unsigned int, itk::Point&lt;double, 3u&gt; &gt;::GetElementIfIndexExists(itk::SimplexMeshToTriangleMeshFilter&lt;itk::SimplexMesh&lt;double, 3u&gt;, itk::Mesh&lt;double, 3u&gt; &gt;::CellIdentifier&amp;, itk::AutomaticTopologyMeshSource&lt;itk::Mesh&lt;double, 3u&gt; &gt;::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&lt;TElementIdentifier, TElement&gt;::GetElementIfIndexExists(itk::MapContainer&lt;TElementIdentifier, TElement&gt;::ElementIdentifier, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::Element*) const [with TElementIdentifier = long unsigned int, TElement = itk::Point&lt;double, 3u&gt;, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::ElementIdentifier = long unsigned int, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::Element = itk::Point&lt;double, 3u&gt;]</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&lt;itk::Mesh&lt;double, 3u&gt; &gt;::PointType* {aka itk::Point&lt;float, 3u&gt;*}’ to ‘itk::MapContainer&lt;long unsigned int, itk::Point&lt;double, 3u&gt; &gt;::Element* {aka itk::Point&lt;double, 3u&gt;*}’</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&lt;long unsigned int, itk::Point&lt;double, 3u&gt; &gt;::GetElementIfIndexExists(itk::SimplexMeshToTriangleMeshFilter&lt;itk::SimplexMesh&lt;double, 3u&gt;, itk::Mesh&lt;double, 3u&gt; &gt;::CellIdentifier&amp;, itk::AutomaticTopologyMeshSource&lt;itk::Mesh&lt;double, 3u&gt; &gt;::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&lt;TElementIdentifier, TElement&gt;::GetElementIfIndexExists(itk::MapContainer&lt;TElementIdentifier, TElement&gt;::ElementIdentifier, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::Element*) const [with TElementIdentifier = long unsigned int, TElement = itk::Point&lt;double, 3u&gt;, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::ElementIdentifier = long unsigned int, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::Element = itk::Point&lt;double, 3u&gt;]</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&lt;itk::Mesh&lt;double, 3u&gt; &gt;::PointType* {aka itk::Point&lt;float, 3u&gt;*}’ to ‘itk::MapContainer&lt;long unsigned int, itk::Point&lt;double, 3u&gt; &gt;::Element* {aka itk::Point&lt;double, 3u&gt;*}’</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&lt;long unsigned int, itk::Point&lt;double, 3u&gt; &gt;::GetElementIfIndexExists(itk::SimplexMeshToTriangleMeshFilter&lt;itk::SimplexMesh&lt;double, 3u&gt;, itk::Mesh&lt;double, 3u&gt; &gt;::CellIdentifier&amp;, itk::AutomaticTopologyMeshSource&lt;itk::Mesh&lt;double, 3u&gt; &gt;::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&lt;TElementIdentifier, TElement&gt;::GetElementIfIndexExists(itk::MapContainer&lt;TElementIdentifier, TElement&gt;::ElementIdentifier, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::Element*) const [with TElementIdentifier = long unsigned int, TElement = itk::Point&lt;double, 3u&gt;, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::ElementIdentifier = long unsigned int, itk::MapContainer&lt;TElementIdentifier, TElement&gt;::Element = itk::Point&lt;double, 3u&gt;]</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&lt;itk::Mesh&lt;double, 3u&gt; &gt;::PointType* {aka itk::Point&lt;float, 3u&gt;*}’ to ‘itk::MapContainer&lt;long unsigned int, itk::Point&lt;double, 3u&gt; &gt;::Element* {aka itk::Point&lt;double, 3u&gt;*}’</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>