Files
OCCT/tests/bugs/modalg_8/bug33895
Sander Adamson 599869329c Modeling - Fix null surface crash in fixshape (#623)
- Added null surface validation in ShapeAnalysis_Surface constructor and Init method
- Added null surface checks throughout ShapeFix_Face methods to prevent crashes
- Enhanced robustness by validating surface availability before performing surface-dependent operations
2025-08-01 18:10:21 +01:00

22 lines
730 B
Plaintext

puts "========================================================================"
puts "Bug 33895: fixshape crashes on tessellated geometry without surfaces"
puts "No crash expected"
puts "========================================================================"
pload XDE MODELING
stepread [locate_data_file gh623_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
# Fix shapes. No crash expected.
fixshape aFixed anInputShape_1
# Check result.
checknbshapes aFixed -face 4 -shell 4 -compound 1 -shape 9 -t