Adding mesh_repulsion_general.scn scene so the whole mesh_intersection_resolver pipeline works as intended - #5
Open
FadiWahbeh wants to merge 13 commits into
Open
Conversation
…ct in the scene. quick and dirty code, no safeguard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #4
Summary
This PR adds
mesh_repulsion_general.scn, a reusable SOFA scene based onMeshRepulsionEngine.The scene doesn't contain patient-specific mesh paths, positions, translations, scales, or dimensions. The required values are injected automatically by
run_intersection_detection.pybefore each execution.What was added
1.General SOFA scene
The following reusable scene was added:
scenes/mesh_repulsion_general.scn
Instead of containing fixed patient paths, the scene uses placeholders:
{{MASTER_MSH}}
{{SLAVE_MSH}}
{{SLAVE_OBJ}}
{{CSV_PATH}}
{{EXPORT_BASENAME}}
Before running SOFA, run_intersection_detection.py replaces these placeholders with the files and output paths corresponding to the current patient and slave.
Consequently, the scene itself does not need to be edited when switching patients.
2. Finding Patients Folder
master
The master object is found using filename = "{{MASTER_MSH}}"
Slave
The slave is found using filename = "{{SLAVE_MSH}}
Export
The export will be in .OBJ format and is going to to be places is choosen in
run_intersection_detection.py. But right now it's placed inside the folder of SOFA inside of Patient_xx folder