diff --git a/.github/workflows/build-test-package.yml b/.github/workflows/build-test-package.yml index 4b5f746..c4f9940 100644 --- a/.github/workflows/build-test-package.yml +++ b/.github/workflows/build-test-package.yml @@ -1,6 +1,14 @@ name: Build, test, package -on: [push,pull_request] +on: + push: + branches: + - main + tags: + - 'v*' + pull_request: + branches: + - main jobs: cxx-build-workflow: diff --git a/.github/workflows/clang-format-linter.yml b/.github/workflows/clang-format-linter.yml index 69166d9..630ae57 100644 --- a/.github/workflows/clang-format-linter.yml +++ b/.github/workflows/clang-format-linter.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 - uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master diff --git a/wrapping/itkCuberilleImageToMeshFilter.wrap b/wrapping/itkCuberilleImageToMeshFilter.wrap index 08478ec..f08177f 100644 --- a/wrapping/itkCuberilleImageToMeshFilter.wrap +++ b/wrapping/itkCuberilleImageToMeshFilter.wrap @@ -2,8 +2,9 @@ itk_wrap_class("itk::CuberilleImageToMeshFilter" POINTER_WITH_2_SUPERCLASSES) UNIQUE(types "${WRAP_ITK_SCALAR}") foreach(d ${ITK_WRAP_IMAGE_DIMS}) foreach(t ${types}) - itk_wrap_template("${ITKM_I${t}${d}}M${ITKM_${t}}${d}" - "${ITKT_I${t}${d}}, itk::Mesh< ${ITKT_${t}},${d} >, itk::InterpolateImageFunction< ${ITKT_I${t}${d}}, ${ITKT_D} >") + # in all cases use float for mesh coordinates and double for interpolator's internal coordinates + itk_wrap_template("${ITKM_I${t}${d}}M${ITKM_F${d}}" + "${ITKT_I${t}${d}}, itk::Mesh< float,${d} >, itk::InterpolateImageFunction< ${ITKT_I${t}${d}}, double >") endforeach() endforeach() itk_end_wrap_class()