Skip to content

Commit 15ccc1d

Browse files
committed
ENH: Add tibial_cartilage_cropped test case in C++ and Python
1 parent 3b35bb2 commit 15ccc1d

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

test/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,19 @@ add_test(
316316
100 # Maximum number of steps
317317
)
318318

319+
add_test(
320+
NAME Cuberille_tibial_cartilage_cropped
321+
COMMAND CuberilleTestDriver CuberilleTest01
322+
${DATA_DIR}/tibial_cartilage_cropped.nrrd
323+
${ITK_TEST_OUTPUT_DIR}/tibial_cartilage_cropped.vtk
324+
0.5 # Iso-surface value
325+
20036 # Expected number of points
326+
40048 # Expected number of cells
327+
1 # Generate triangle faces
328+
1 # Project vertices to iso-surface
329+
0.05 # Surface distance threshold
330+
)
331+
319332
#add_test(
320333
# Cuberille_Engine_01
321334
# CuberilleTest01
5.49 KB
Binary file not shown.

wrapping/test/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ set(test_input_dir ${CMAKE_CURRENT_SOURCE_DIR}/../../test/Input)
88

99
list(FIND ITK_WRAP_IMAGE_DIMS 3 wrap_3_index)
1010
if(wrap_3_index GREATER -1)
11+
itk_python_add_test(NAME Cuberille_tibial_cartilage_cropped_python
12+
TEST_DRIVER_ARGS
13+
COMMAND cuberille_test.py
14+
DATA{${test_input_dir}/tibial_cartilage_cropped.nrrd}
15+
${ITK_TEST_OUTPUT_DIR}/tibial_cartilage_cropped.vtk
16+
0.5 # iso-surface value
17+
)
18+
1119
itk_python_add_test(NAME Cuberille_blob0_python
1220
TEST_DRIVER_ARGS
1321
COMMAND cuberille_test.py

0 commit comments

Comments
 (0)