Files
OCCT/tests/bugs/modalg_7/bug29311_4
Pasukhin Dmitry a56f2394ce Modeling - Revert changes to original version (#1187)
Refactor GeomBndLib classes for old version of bounding box calculations
Can be fixed later.
- Added new test case for BSplineCurve trimmed range comparison with BndLib.
- Enhanced GeomBndLib_BSplineCurve to handle parameter adjustments for periodic curves.
- Updated GeomBndLib_BSplineCurve2d to improve bounding box calculations.
- Refined GeomBndLib_BSplineSurface to use grid sampling for bounding box determination.
- Optimized GeomBndLib_BezierCurve and GeomBndLib_BezierCurve2d for bounding box calculations.
- Simplified GeomBndLib_SurfaceOfExtrusion and GeomBndLib_SurfaceOfRevolution by leveraging GeomBndLib_OtherSurface for bounding box computations.
- Improved GeomBndLib_Torus to utilize BndLib for bounding box calculations, including handling degenerate cases.
2026-04-05 14:57:53 +01:00

29 lines
592 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 28694.7
smallview
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png