Files
OCCT/tests/bugs/modalg_8/bug33894
Sander Adamson 65742e7375 Modeling - Fix null surface crash in UnifySameDomain (#624)
- Added null safety checks in the ClearRts function and IntUnifyFaces method
- Refactored ClearRts to use a more concise implementation with null handling
- Added a test case to verify the fix works with tessellated geometry
2025-08-01 09:47:28 +01:00

22 lines
741 B
Plaintext

puts "========================================================================"
puts "Bug 33894: unifysamedom crashes on tessellated geometry without surfaces"
puts "No crash expected"
puts "========================================================================"
pload XDE MODELING
stepread [locate_data_file gh624_tessellated_tetrahedron_ap242.step] anInputShape *
# Check what kind of shape we get
checknbshapes anInputShape_1 -t
# Validate shape - will show BRepCheck_NoSurface errors
puts "REQUIRED All: Faulty shapes in variables faulty_1 to faulty_6"
checkshape anInputShape_1
# Unify shapes. No crash expected.
unifysamedom aUnified anInputShape_1
# Check result.
checknbshapes aUnified -face 4 -shell 1 -solid 1 -shape 6 -t