]> OCCT Git - occt.git/commit
Shape Healing - Optimize FixFaceOrientation (#584) IR master
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 11 Oct 2025 11:19:50 +0000 (12:19 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Oct 2025 11:19:50 +0000 (12:19 +0100)
commit87c50319c71decf06d9294721238a09c78c16e7f
tree2652c83345ab37344b94c9f8ffd0419aebdcf829
parenta042bed1751413edfb4731536bfde9cdcc451a13
Shape Healing - Optimize FixFaceOrientation (#584)

Refactor shell construction algorithm for improved performance:
- Add GetConnectedFaceGroups function using DFS to identify topologically
  connected face groups before shell construction
- Replace O(nˆ3) iterations with pre-built connectivity maps (FaceEdgesMap,
  EdgeFacesMap) using STL unordered_map with custom allocators for O(1) lookup.
- Process only the largest connected component first, significantly reducing
  time complexity for large face sets
src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Shell.cxx