Improve GUI .dmn loading and add advanced lumen detection for mesh face extraction #20
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.
Current situation
This PR addresses critical usability issues in GUI workflow and
mesh processing:
data
surfaces as walls or merging them with caps
These improvements enable proper handling of vessel network
geometries and seamless GUI operation with persisted domain
files.
Breaking Changes
wall_surfaces, cap_surfaces, lumen_surfaces, shared_boundaries)
with lumens as a separate list (previously returned 4 values, now
returns 5)
New Features
cylindrical lumen surfaces separately from caps and walls
sharp separation from surroundings
planarity, aspect ratio)
share edges/vertices with other boundaries are now correctly
reclassified as walls
Bug Fixes
now load correctly
AttributeError
auto-orientation with non-manifold traversal for better handling
of surfaces with interior holes
Enhancements
surfaces using connected component analysis
Migration Guide
If your code uses extract_faces(), update to handle the new
return signature:
Before:
faces, walls, caps, shared_boundaries = extract_faces(surface,
mesh)
After:
faces, walls, caps, lumens, shared_boundaries =
extract_faces(surface, mesh)
Documentation
logic
hierarchy:
(perpendicular normals)
boundaries)
Testing
holes
cylindrical surfaces separate from 4 endcaps
overlap with lumens
patches
Files Modified:
detection, boundary overlap checks, graph-based wall merging)
boundaries)
Code of Conduct & Contributing Guidelines