1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/modalg_2/bug2785_2
ski 58cf74e0c0 0025945: Make stable checking of shape global properties in tests
- Added function checkprops, set default tolerance parameter to 1.0e-4
- Using "area" instead of "square".
- Options "-equal\notequal" isn't used together with "-s" in blend and offset test cases.
- Correct regressions/differences/improvements and CPU problem (set props tolerance to 0.1)
- Corrected test cases to use checkprops proc.
- Correct image difference
- Updated TODOs in test cases.
- Updated test cases to get correct images of result shape
2015-12-10 16:56:03 +03:00

42 lines
951 B
Plaintext
Executable File

puts "============"
puts "OCC2785"
puts "============"
puts ""
######################################################
# Cut and fuse operations for two faces that share same domain give invalid result
######################################################
# Cut and fuse operations for two faces that share same domain gives invalid
# result, if one face has a hole and other face touches a boundary of this hole.
######################################################
## (old topology)
## (cut)
## (fuse)
######################################################
############# data #############
pcylinder c1 2 10
pcylinder c2 2 2
explode c1 f
explode c2 f
mksurface gs c2_1
trim trgs gs 1 2 2 4
mkface ff trgs
trim trgs gs 0 1 2 4
mkface ff2 trgs
bcut rcut1 c1_1 ff
checkshape rcut1
bcut rcut2 rcut1 ff2
checkshape rcut2
bfuse fuse1 rcut2 ff2
checkshape fuse1
bfuse result fuse1 ff
checkprops result -s 125.664
checkshape result
set 3dviewer 1