Skip to content

Commit

Permalink
Merge pull request #1109 from thewtex/wrap-transform-mesh-filter
Browse files Browse the repository at this point in the history
BUG: Add wrapping for TransformMeshFilter
  • Loading branch information
thewtex authored Jul 22, 2019
2 parents fb5c0e7 + 04c443a commit b1c0e59
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 17 deletions.
1 change: 0 additions & 1 deletion Modules/Core/Mesh/wrapping/itkMeshSource.wrap
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
16 changes: 16 additions & 0 deletions Modules/Core/Mesh/wrapping/itkTransformMeshFilter.wrap
Original file line number Diff line number Diff line change
@@ -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()
34 changes: 18 additions & 16 deletions Modules/Core/Mesh/wrapping/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()")

0 comments on commit b1c0e59

Please sign in to comment.