[CGAL Intersection Detection] PR Sofa and cgal intersection detection#2
Open
FadiWahbeh wants to merge 7 commits into
Open
[CGAL Intersection Detection] PR Sofa and cgal intersection detection#2FadiWahbeh wants to merge 7 commits into
FadiWahbeh wants to merge 7 commits into
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 #1
PR 01 — SOFA → CGAL Detection Bridge
Goal
This PR validates the first bridge between SOFA and CGAL inside
MeshRepulsionEngine.The component now:
masterState,slaveState,masterTopology, andslaveTopologyfrom SOFA;CGAL::Surface_meshfrom the SOFA master surface;CGAL::Surface_meshfrom the SOFA slave surface for validation/debug;CGAL::Side_of_triangle_meshto classify slave vertices as:Modify Test Scene
The scene uses the OBJ files at the paths defined in the
MeshOBJLoadercomponents.Example:
Build
From the SOFA build environment, rebuild the plugin:
"/c/Program Files/CMake/bin/cmake.exe" --build /c/projects/sofa-build --config Release --target CGALPluginRun
From the SOFA binary directory:
cd /c/projects/sofa-build/bin/Release ./runSofa.exe /c/projects/sofa-plugins/CGALPlugin/scenes/MeshRepulsion_PR01.scnExpected Console Output
When the scene is loaded and/or when the simulation starts, the terminal should show a diagnostic line similar to:
What This PR Proves
This PR proves that:
MeshRepulsionEngine;Not Included Yet
This PR does not include:
.mshslave handling;Next Step
The next PR will use the CGAL detection result to compute a small smooth displacement for slave vertices detected inside the master mesh.
The objective of PR 02 will be: