Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## This config file is only relevant for clang-format version 19.1.4
## This config file is only relevant for clang-format version 19.1.7
##
## Examples of each format style can be found on the in the clang-format documentation
## See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html for details of each option
Expand All @@ -10,11 +10,11 @@
## maintaining a consistent code style.
##
## EXAMPLE apply code style enforcement before commit:
# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.4} --modified
# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.7} --modified
## EXAMPLE apply code style enforcement after commit:
# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.4} --last
# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.7} --last
---
# This configuration requires clang-format version 19.1.4 exactly.
# This configuration requires clang-format version 19.1.7 exactly.
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
Expand Down Expand Up @@ -297,6 +297,7 @@ StatementMacros:
- ITK_CLANG_PRAGMA_PUSH
- ITK_CLANG_PRAGMA_POP
- ITK_CLANG_SUPPRESS_Wzero_as_null_pointer_constant
- ITK_CLANG_SUPPRESS_Wduplicate_enum
- CLANG_PRAGMA_PUSH
- CLANG_PRAGMA_POP
- CLANG_SUPPRESS_Wfloat_equal
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/clang-format-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master
- uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@main
with:
itk-branch: master
itk-branch: main
29 changes: 16 additions & 13 deletions include/itkCleaverImageToMeshFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ class CleaverImageToMeshFilter : public ImageToMeshFilter<TInputImage, TOutputMe
itkSetMacro(Sigma, double);
itkGetConstMacro(Sigma, double);

/** Sizing field sampling rate. The sampling rate of the input indicator functions or calculated indicator functions from segmentation files.
* The default sample rate will be the dimensions of the volume. Smaller sampling creates coarser meshes.
* Adjusting this parameter will also affect Cleaver’s runtime, with smaller values running faster. */
/** Sizing field sampling rate. The sampling rate of the input indicator functions or calculated indicator functions
* from segmentation files. The default sample rate will be the dimensions of the volume. Smaller sampling creates
* coarser meshes. Adjusting this parameter will also affect Cleaver’s runtime, with smaller values running faster. */
itkSetMacro(SamplingRate, double);
itkGetConstMacro(SamplingRate, double);

Expand All @@ -84,7 +84,8 @@ class CleaverImageToMeshFilter : public ImageToMeshFilter<TInputImage, TOutputMe
itkSetMacro(Lipschitz, double);
itkGetConstMacro(Lipschitz, double);

/** Sizing field feature scaling. Scales features of the mesh effecting element size. Higher feature scaling creates coaser meshes. */
/** Sizing field feature scaling. Scales features of the mesh effecting element size. Higher feature scaling creates
* coaser meshes. */
itkSetMacro(FeatureScaling, double);
itkGetConstMacro(FeatureScaling, double);

Expand All @@ -106,20 +107,22 @@ class CleaverImageToMeshFilter : public ImageToMeshFilter<TInputImage, TOutputMe
CleaverImageToMeshFilter();
~CleaverImageToMeshFilter() override = default;

void PrintSelf(std::ostream & os, Indent indent) const override;
void
PrintSelf(std::ostream & os, Indent indent) const override;

using OutputRegionType = typename OutputMeshType::RegionType;

void GenerateData() override;
void
GenerateData() override;

private:
bool m_InputIsIndicatorFunction{false};
double m_Alpha{0.4};
double m_SamplingRate{1.0};
double m_Lipschitz{0.2};
double m_FeatureScaling{1.0};
int m_Padding{0};
double m_Sigma{1.0};
bool m_InputIsIndicatorFunction{ false };
double m_Alpha{ 0.4 };
double m_SamplingRate{ 1.0 };
double m_Lipschitz{ 0.2 };
double m_FeatureScaling{ 1.0 };
int m_Padding{ 0 };
double m_Sigma{ 1.0 };
};
} // namespace itk

Expand Down
Loading