Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tibial_cartilage_cropped test case in C++ and Python #80

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dzenanz
Copy link
Member

@dzenanz dzenanz commented Nov 27, 2024

This adds a an input which causes crash in Python, and generates an empty mesh in C++.

EXPRESSION "filter = itk.CuberilleImageToMeshFilter.New()"
)

set(test_input_dir ${CMAKE_CURRENT_SOURCE_DIR}/../../test/Input)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blowekamp I was unable to get ${itk-module} from InsightSoftwareConsortium/ITK@7d50786 to work here. Is there a prettier way to construct this?

TEST_DRIVER_ARGS
COMMAND cuberille_test.py
DATA{${test_input_dir}/tibial_cartilage_cropped.nrrd}
${ITK_TEST_OUTPUT_DIR}/tibial_cartilage_cropped.vtk
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blowekamp How to add module subdirectory here?

@dzenanz dzenanz requested a review from thewtex November 28, 2024 14:56
@dzenanz dzenanz force-pushed the tcCrash branch 4 times, most recently from 54d9f86 to 15ccc1d Compare December 2, 2024 22:07
@dzenanz
Copy link
Member Author

dzenanz commented Dec 4, 2024

@yehan0223 will look into this.

@yehan0223
Copy link

yehan0223 commented Dec 5, 2024

Some notes: Changing isosurface value to 0.1 will successfully create mesh below. Setting it to 0.5 will cause topological issue (corner case) with error message ITK/Modules/Core/QuadEdgeMesh/include/itkGeometricalQuadEdge.hxx:299: No border edge available; point is internal .

This can potentially be fixed by changing one of the labelarray (

this->m_LabelsArray[0] = { { -1, -1, -1, -1, -1, -1, -1, -1 } };
), as some of the labels were changed from 0 to 1, 2 or 3 to handle corner cases in the existing tests which otherwise would incur the same error message above.
image

whole model with isosurfacevalue = 0.1
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants