diff --git a/Modules/Core/Mesh/wrapping/itkMeshSource.wrap b/Modules/Core/Mesh/wrapping/itkMeshSource.wrap index 8150932174a..38a3a3d35f0 100644 --- a/Modules/Core/Mesh/wrapping/itkMeshSource.wrap +++ b/Modules/Core/Mesh/wrapping/itkMeshSource.wrap @@ -1,5 +1,4 @@ itk_wrap_include("itkMesh.h") -itk_wrap_include("itkPointSet.h") itk_wrap_include("itkDefaultStaticMeshTraits.h") itk_wrap_class("itk::MeshSource" POINTER) diff --git a/Modules/Core/Mesh/wrapping/itkTransformMeshFilter.wrap b/Modules/Core/Mesh/wrapping/itkTransformMeshFilter.wrap new file mode 100644 index 00000000000..5724ff7a003 --- /dev/null +++ b/Modules/Core/Mesh/wrapping/itkTransformMeshFilter.wrap @@ -0,0 +1,16 @@ +itk_wrap_include("itkMesh.h") +itk_wrap_include("itkPointSet.h") +itk_wrap_include("itkTransform.h") + +itk_wrap_class("itk::TransformMeshFilter" POINTER) + # Transform parameter types + UNIQUE(transform_type "D;${WRAP_ITK_REAL}") + foreach(d ${ITK_WRAP_IMAGE_DIMS}) + foreach(t ${WRAP_ITK_REAL}) + foreach(tt ${transform_type}) + itk_wrap_template("M${ITKM_${t}}${d}M${ITKM_${t}}${d}T${ITKM_${tt}}${d}${d}" + "itk::Mesh< ${ITKT_${t}},${d} >, itk::Mesh< ${ITKT_${t}},${d} >, itk::Transform< ${ITKT_${tt}}, ${d}, ${d} >") + endforeach() + endforeach() + endforeach() +itk_end_wrap_class() diff --git a/Modules/Core/Mesh/wrapping/test/CMakeLists.txt b/Modules/Core/Mesh/wrapping/test/CMakeLists.txt index afd860e0442..5cbfe39c5e0 100644 --- a/Modules/Core/Mesh/wrapping/test/CMakeLists.txt +++ b/Modules/Core/Mesh/wrapping/test/CMakeLists.txt @@ -4,19 +4,21 @@ if(wrap_3_index GREATER -1) EXPRESSION "instance = itk.TriangleMeshToBinaryImageFilter.New()") endif() - itk_python_expression_add_test(NAME itkBYUMeshIOPythonTest - EXPRESSION "instance = itk.BYUMeshIO.New()") - itk_python_expression_add_test(NAME itkFreeSurferAsciiMeshIOPythonTest - EXPRESSION "instance = itk.FreeSurferAsciiMeshIO.New()") - itk_python_expression_add_test(NAME itkFreeSurferBinaryMeshIOPythonTest - EXPRESSION "instance = itk.FreeSurferBinaryMeshIO.New()") - itk_python_expression_add_test(NAME itkMeshFileReaderPythonTest - EXPRESSION "instance = itk.MeshFileReader.New()") - itk_python_expression_add_test(NAME itkMeshFileWriterPythonTest - EXPRESSION "instance = itk.MeshFileWriter.New()") - itk_python_expression_add_test(NAME itkOBJMeshIOPythonTest - EXPRESSION "instance = itk.OBJMeshIO.New()") - itk_python_expression_add_test(NAME itkOFFMeshIOPythonTest - EXPRESSION "instance = itk.OFFMeshIO.New()") - itk_python_expression_add_test(NAME itkVTKPolyDataMeshIOPythonTest - EXPRESSION "instance = itk.VTKPolyDataMeshIO.New()") +itk_python_expression_add_test(NAME itkBYUMeshIOPythonTest + EXPRESSION "instance = itk.BYUMeshIO.New()") +itk_python_expression_add_test(NAME itkFreeSurferAsciiMeshIOPythonTest + EXPRESSION "instance = itk.FreeSurferAsciiMeshIO.New()") +itk_python_expression_add_test(NAME itkFreeSurferBinaryMeshIOPythonTest + EXPRESSION "instance = itk.FreeSurferBinaryMeshIO.New()") +itk_python_expression_add_test(NAME itkMeshFileReaderPythonTest + EXPRESSION "instance = itk.MeshFileReader.New()") +itk_python_expression_add_test(NAME itkMeshFileWriterPythonTest + EXPRESSION "instance = itk.MeshFileWriter.New()") +itk_python_expression_add_test(NAME itkOBJMeshIOPythonTest + EXPRESSION "instance = itk.OBJMeshIO.New()") +itk_python_expression_add_test(NAME itkOFFMeshIOPythonTest + EXPRESSION "instance = itk.OFFMeshIO.New()") +itk_python_expression_add_test(NAME itkVTKPolyDataMeshIOPythonTest + EXPRESSION "instance = itk.VTKPolyDataMeshIO.New()") +itk_python_expression_add_test(NAME itkTransformMeshFilterPythonTest + EXPRESSION "instance = itk.TransformMeshFilter.New()")