Files
OCCT/tests/bugs/modalg_7/bug29311_4
Pasukhin Dmitry 39db714224 Modeling Data - Migrate BndLib to delegate to GeomBndLib (#1137)
- Replace monolithic switch statements in BndLib_Add3dCurve, BndLib_AddSurface, and BndLib_Add2dCurve with thin wrappers delegating to GeomBndLib_Curve, GeomBndLib_Surface, and GeomBndLib_Curve2d respectively.
- Remove now-dead internal helpers AddGenCurv, AddGenSurf, and BndLib_Box2dCurve. Public BndLib API is preserved unchanged.
- Implement proper BoxOptimal() in GeomBndLib_OffsetSurface: try the analytic equivalent surface first (offset plane -> plane, offset sphere -> sphere), then fall back to OtherSurface PSO sampling for general cases.
- Refactor GeomBndLib_OffsetCurve2d to share exact fast paths for line and circle offsets between Box() and BoxOptimal(), matching the 3D OffsetCurve pattern; BoxOptimal falls back to OtherCurve2d PSO for general curves.
- Update tests to reflect tighter bounds from GeomBndLib delegation.
2026-03-07 17:55:33 +00:00

29 lines
590 B
Plaintext

puts "========"
puts "OCC29311"
puts "========"
puts ""
#################################################
# Implementation of the Oriented Bounding Boxes (OBB) functionality
#################################################
ptorus result 20 5
trotate result 5 10 15 1 1 1 28
puts "AABB"
bounding result -shape ra -dump -save x1 y1 z1 x2 y2 z2
dump x1 y1 z1 x2 y2 z2
set VaExp [ dval (x2-x1)*(y2-y1)*(z2-z1) ]
checkprops ra -v $VaExp
puts "OBB"
bounding result -shape ro -dump -obb
checkprops ro -v 25000
smallview
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png