]> OCCT Git - occt-copy.git/commitdiff
Adding test cases for chl grid
authorapn <apn@opencascade.com>
Fri, 21 Dec 2012 12:39:38 +0000 (16:39 +0400)
committerapn <apn@opencascade.com>
Fri, 21 Dec 2012 12:39:38 +0000 (16:39 +0400)
Test case tests/bugs/modalg/dxf906 was renamed to bug889
Adding test cases to tests/bugs/moddata
Modified expressions puts [checkshape result]. Added command vzfit in end file in folder bugs. Unlocked command coordload in QABugs_3.cxx
Modified test case bugs vis buc60738
Added test cases to modalg and moddata
Added test cases to caf and fclasses
Added test cases to group heal

712 files changed:
src/QABugs/QABugs_3.cxx
tests/bugs/caf/buc60921 [changed mode: 0644->0755]
tests/bugs/caf/bug1029 [new file with mode: 0755]
tests/bugs/caf/bug1030 [new file with mode: 0755]
tests/bugs/caf/bug1031 [new file with mode: 0755]
tests/bugs/caf/bug1032 [new file with mode: 0755]
tests/bugs/caf/bug1033 [new file with mode: 0755]
tests/bugs/caf/bug1034 [new file with mode: 0755]
tests/bugs/caf/bug114 [changed mode: 0644->0755]
tests/bugs/caf/bug170_3 [new file with mode: 0755]
tests/bugs/caf/bug5023 [new file with mode: 0755]
tests/bugs/caf/bug669 [new file with mode: 0755]
tests/bugs/caf/bug738_1 [new file with mode: 0755]
tests/bugs/caf/bug738_2 [new file with mode: 0755]
tests/bugs/caf/bug739 [new file with mode: 0755]
tests/bugs/demo/bug23409 [changed mode: 0644->0755]
tests/bugs/demo/bug23416 [changed mode: 0644->0755]
tests/bugs/end
tests/bugs/fclasses/bug11568_1 [new file with mode: 0755]
tests/bugs/fclasses/bug11568_2 [new file with mode: 0755]
tests/bugs/fclasses/bug23237 [changed mode: 0644->0755]
tests/bugs/fclasses/bug23403 [changed mode: 0644->0755]
tests/bugs/fclasses/bug63
tests/bugs/fclasses/bug670 [new file with mode: 0755]
tests/bugs/fclasses/bug6794 [new file with mode: 0755]
tests/bugs/fclasses/bug710 [new file with mode: 0755]
tests/bugs/fclasses/bug7287_1 [new file with mode: 0755]
tests/bugs/fclasses/bug7287_2 [new file with mode: 0755]
tests/bugs/fclasses/bug7287_3 [new file with mode: 0755]
tests/bugs/fclasses/bug7287_4 [new file with mode: 0755]
tests/bugs/fclasses/bug7287_5 [new file with mode: 0755]
tests/bugs/fclasses/bug7287_6 [new file with mode: 0755]
tests/bugs/fclasses/bug7639 [new file with mode: 0755]
tests/bugs/fclasses/bug902 [new file with mode: 0755]
tests/bugs/fclasses/bug984 [new file with mode: 0755]
tests/bugs/fclasses/bug9848_1 [new file with mode: 0755]
tests/bugs/fclasses/bug9848_2 [new file with mode: 0755]
tests/bugs/fclasses/bug984_1 [new file with mode: 0755]
tests/bugs/heal/buc60940 [changed mode: 0644->0755]
tests/bugs/heal/buc60950 [changed mode: 0644->0755]
tests/bugs/heal/bug1642 [new file with mode: 0755]
tests/bugs/heal/bug208
tests/bugs/heal/bug209
tests/bugs/heal/bug210 [new file with mode: 0755]
tests/bugs/heal/bug210_2
tests/bugs/heal/bug22 [new file with mode: 0755]
tests/bugs/heal/bug329
tests/bugs/heal/bug482
tests/bugs/heal/bug518 [new file with mode: 0755]
tests/bugs/heal/bug884 [new file with mode: 0755]
tests/bugs/iges/buc60591_1 [changed mode: 0644->0755]
tests/bugs/iges/buc60591_2 [changed mode: 0644->0755]
tests/bugs/iges/buc60591_3 [changed mode: 0644->0755]
tests/bugs/iges/buc60591_4 [changed mode: 0644->0755]
tests/bugs/iges/buc60594 [changed mode: 0644->0755]
tests/bugs/iges/buc60595_1 [changed mode: 0644->0755]
tests/bugs/iges/buc60595_2 [changed mode: 0644->0755]
tests/bugs/iges/buc60595_3 [changed mode: 0644->0755]
tests/bugs/iges/buc60610 [changed mode: 0644->0755]
tests/bugs/iges/buc60625 [changed mode: 0644->0755]
tests/bugs/iges/buc60646 [changed mode: 0644->0755]
tests/bugs/iges/buc60685
tests/bugs/iges/buc60686 [changed mode: 0644->0755]
tests/bugs/iges/buc60687 [changed mode: 0644->0755]
tests/bugs/iges/buc60820_1 [changed mode: 0644->0755]
tests/bugs/iges/buc60820_2 [changed mode: 0644->0755]
tests/bugs/iges/buc60823 [changed mode: 0644->0755]
tests/bugs/iges/buc60850 [changed mode: 0644->0755]
tests/bugs/iges/buc60894 [changed mode: 0644->0755]
tests/bugs/iges/buc60949 [changed mode: 0644->0755]
tests/bugs/iges/bug111_1
tests/bugs/iges/bug111_2
tests/bugs/iges/bug131_1
tests/bugs/iges/bug131_2
tests/bugs/iges/bug131_3
tests/bugs/iges/bug131_4
tests/bugs/iges/bug131_5
tests/bugs/iges/bug131_6
tests/bugs/iges/bug131_7
tests/bugs/iges/bug131_8
tests/bugs/iges/bug133_1
tests/bugs/iges/bug133_10
tests/bugs/iges/bug133_5
tests/bugs/iges/bug133_7
tests/bugs/iges/bug133_8
tests/bugs/iges/bug201
tests/bugs/iges/bug22888 [changed mode: 0644->0755]
tests/bugs/iges/bug23377 [changed mode: 0644->0755]
tests/bugs/iges/bug272_1
tests/bugs/iges/bug272_2
tests/bugs/iges/bug272_3
tests/bugs/iges/bug283
tests/bugs/iges/bug285
tests/bugs/iges/bug306
tests/bugs/iges/bug365_1
tests/bugs/iges/bug365_3
tests/bugs/iges/bug365_4
tests/bugs/iges/bug365_5
tests/bugs/iges/bug386
tests/bugs/iges/bug514 [new file with mode: 0755]
tests/bugs/iges/bug58_1
tests/bugs/iges/bug58_2
tests/bugs/iges/bug58_3
tests/bugs/iges/bug700 [new file with mode: 0755]
tests/bugs/iges/bug89
tests/bugs/iges/fra62523 [changed mode: 0644->0755]
tests/bugs/iges/ger61337 [changed mode: 0644->0755]
tests/bugs/mesh/end
tests/bugs/modalg/buc60409_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60409_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60409_3 [changed mode: 0644->0755]
tests/bugs/modalg/buc60462_1
tests/bugs/modalg/buc60462_2
tests/bugs/modalg/buc60463
tests/bugs/modalg/buc60523 [changed mode: 0644->0755]
tests/bugs/modalg/buc60531_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60531_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60532 [changed mode: 0644->0755]
tests/bugs/modalg/buc60532_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60532_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60533 [changed mode: 0644->0755]
tests/bugs/modalg/buc60555_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60555_2
tests/bugs/modalg/buc60555_3
tests/bugs/modalg/buc60585_1
tests/bugs/modalg/buc60585_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60623_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60623_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60635 [changed mode: 0644->0755]
tests/bugs/modalg/buc60649
tests/bugs/modalg/buc60663_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60663_2
tests/bugs/modalg/buc60668 [changed mode: 0644->0755]
tests/bugs/modalg/buc60669
tests/bugs/modalg/buc60684 [changed mode: 0644->0755]
tests/bugs/modalg/buc60703_1
tests/bugs/modalg/buc60703_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60703_3 [changed mode: 0644->0755]
tests/bugs/modalg/buc60703_4 [changed mode: 0644->0755]
tests/bugs/modalg/buc60704 [changed mode: 0644->0755]
tests/bugs/modalg/buc60708
tests/bugs/modalg/buc60712
tests/bugs/modalg/buc60714 [changed mode: 0644->0755]
tests/bugs/modalg/buc60728 [changed mode: 0644->0755]
tests/bugs/modalg/buc60776_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60776_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60782_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60782_3 [changed mode: 0644->0755]
tests/bugs/modalg/buc60787_1
tests/bugs/modalg/buc60787_2
tests/bugs/modalg/buc60788_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60788_2
tests/bugs/modalg/buc60788_3
tests/bugs/modalg/buc60789_1
tests/bugs/modalg/buc60789_2
tests/bugs/modalg/buc60801 [changed mode: 0644->0755]
tests/bugs/modalg/buc60803 [changed mode: 0644->0755]
tests/bugs/modalg/buc60826
tests/bugs/modalg/buc60830_4
tests/bugs/modalg/buc60839 [changed mode: 0644->0755]
tests/bugs/modalg/buc60841 [changed mode: 0644->0755]
tests/bugs/modalg/buc60849 [changed mode: 0644->0755]
tests/bugs/modalg/buc60853
tests/bugs/modalg/buc60865 [changed mode: 0644->0755]
tests/bugs/modalg/buc60878_1
tests/bugs/modalg/buc60878_2
tests/bugs/modalg/buc60878_3
tests/bugs/modalg/buc60880
tests/bugs/modalg/buc60881 [changed mode: 0644->0755]
tests/bugs/modalg/buc60899_1 [changed mode: 0644->0755]
tests/bugs/modalg/buc60899_2 [changed mode: 0644->0755]
tests/bugs/modalg/buc60901 [changed mode: 0644->0755]
tests/bugs/modalg/buc60905 [changed mode: 0644->0755]
tests/bugs/modalg/buc60909 [changed mode: 0644->0755]
tests/bugs/modalg/buc60922
tests/bugs/modalg/buc60926
tests/bugs/modalg/buc60927 [changed mode: 0644->0755]
tests/bugs/modalg/buc60930 [changed mode: 0644->0755]
tests/bugs/modalg/buc60934 [changed mode: 0644->0755]
tests/bugs/modalg/buc60942 [changed mode: 0644->0755]
tests/bugs/modalg/buc60946
tests/bugs/modalg/buc60971 [changed mode: 0644->0755]
tests/bugs/modalg/bug100
tests/bugs/modalg/bug101
tests/bugs/modalg/bug1013
tests/bugs/modalg/bug102_1
tests/bugs/modalg/bug102_2
tests/bugs/modalg/bug108
tests/bugs/modalg/bug109
tests/bugs/modalg/bug110_1
tests/bugs/modalg/bug110_2
tests/bugs/modalg/bug110_3
tests/bugs/modalg/bug116
tests/bugs/modalg/bug117_1
tests/bugs/modalg/bug117_2
tests/bugs/modalg/bug118 [new file with mode: 0755]
tests/bugs/modalg/bug118_1
tests/bugs/modalg/bug118_2
tests/bugs/modalg/bug122_1
tests/bugs/modalg/bug122_2
tests/bugs/modalg/bug122_3
tests/bugs/modalg/bug122_4
tests/bugs/modalg/bug123_1
tests/bugs/modalg/bug123_2
tests/bugs/modalg/bug140
tests/bugs/modalg/bug144
tests/bugs/modalg/bug1665 [new file with mode: 0755]
tests/bugs/modalg/bug178_1
tests/bugs/modalg/bug178_2
tests/bugs/modalg/bug178_3
tests/bugs/modalg/bug21
tests/bugs/modalg/bug212 [new file with mode: 0755]
tests/bugs/modalg/bug212_1
tests/bugs/modalg/bug212_2
tests/bugs/modalg/bug212_3 [new file with mode: 0755]
tests/bugs/modalg/bug213 [new file with mode: 0755]
tests/bugs/modalg/bug213_1
tests/bugs/modalg/bug213_2
tests/bugs/modalg/bug23137_1 [changed mode: 0644->0755]
tests/bugs/modalg/bug23137_2 [changed mode: 0644->0755]
tests/bugs/modalg/bug23394 [changed mode: 0644->0755]
tests/bugs/modalg/bug23429 [changed mode: 0644->0755]
tests/bugs/modalg/bug251_1
tests/bugs/modalg/bug251_2
tests/bugs/modalg/bug264_0
tests/bugs/modalg/bug264_1
tests/bugs/modalg/bug264_10
tests/bugs/modalg/bug264_11
tests/bugs/modalg/bug264_2
tests/bugs/modalg/bug264_3
tests/bugs/modalg/bug264_4
tests/bugs/modalg/bug264_5
tests/bugs/modalg/bug264_6
tests/bugs/modalg/bug264_7
tests/bugs/modalg/bug264_8
tests/bugs/modalg/bug264_9
tests/bugs/modalg/bug269_1
tests/bugs/modalg/bug269_2
tests/bugs/modalg/bug269_3
tests/bugs/modalg/bug269_4
tests/bugs/modalg/bug287
tests/bugs/modalg/bug291
tests/bugs/modalg/bug292
tests/bugs/modalg/bug293
tests/bugs/modalg/bug298
tests/bugs/modalg/bug305
tests/bugs/modalg/bug307_1
tests/bugs/modalg/bug307_2
tests/bugs/modalg/bug315
tests/bugs/modalg/bug322
tests/bugs/modalg/bug323
tests/bugs/modalg/bug334
tests/bugs/modalg/bug335
tests/bugs/modalg/bug336
tests/bugs/modalg/bug338
tests/bugs/modalg/bug340
tests/bugs/modalg/bug341
tests/bugs/modalg/bug347_1
tests/bugs/modalg/bug347_2
tests/bugs/modalg/bug356
tests/bugs/modalg/bug357
tests/bugs/modalg/bug358
tests/bugs/modalg/bug397
tests/bugs/modalg/bug409
tests/bugs/modalg/bug410_1
tests/bugs/modalg/bug410_2
tests/bugs/modalg/bug410_3
tests/bugs/modalg/bug410_4
tests/bugs/modalg/bug411
tests/bugs/modalg/bug412
tests/bugs/modalg/bug413_1
tests/bugs/modalg/bug413_2
tests/bugs/modalg/bug415
tests/bugs/modalg/bug416
tests/bugs/modalg/bug417
tests/bugs/modalg/bug418_1
tests/bugs/modalg/bug418_2
tests/bugs/modalg/bug419
tests/bugs/modalg/bug420
tests/bugs/modalg/bug423_1
tests/bugs/modalg/bug423_2
tests/bugs/modalg/bug426 [new file with mode: 0755]
tests/bugs/modalg/bug439
tests/bugs/modalg/bug442
tests/bugs/modalg/bug449
tests/bugs/modalg/bug4717_1 [new file with mode: 0755]
tests/bugs/modalg/bug4717_2 [new file with mode: 0755]
tests/bugs/modalg/bug4717_3 [new file with mode: 0755]
tests/bugs/modalg/bug4717_4 [new file with mode: 0755]
tests/bugs/modalg/bug4717_5 [new file with mode: 0755]
tests/bugs/modalg/bug4717_6 [new file with mode: 0755]
tests/bugs/modalg/bug4717_7 [new file with mode: 0755]
tests/bugs/modalg/bug4717_8 [new file with mode: 0755]
tests/bugs/modalg/bug472_1
tests/bugs/modalg/bug472_2
tests/bugs/modalg/bug472_3
tests/bugs/modalg/bug476_1 [new file with mode: 0755]
tests/bugs/modalg/bug476_2 [new file with mode: 0755]
tests/bugs/modalg/bug476_3 [new file with mode: 0755]
tests/bugs/modalg/bug476_4 [new file with mode: 0755]
tests/bugs/modalg/bug476_5 [new file with mode: 0755]
tests/bugs/modalg/bug476_6 [new file with mode: 0755]
tests/bugs/modalg/bug476_7 [new file with mode: 0755]
tests/bugs/modalg/bug476_8 [new file with mode: 0755]
tests/bugs/modalg/bug481
tests/bugs/modalg/bug485
tests/bugs/modalg/bug488
tests/bugs/modalg/bug490
tests/bugs/modalg/bug492
tests/bugs/modalg/bug497_1
tests/bugs/modalg/bug497_2
tests/bugs/modalg/bug497_3
tests/bugs/modalg/bug497_4
tests/bugs/modalg/bug497_5
tests/bugs/modalg/bug4993_1 [new file with mode: 0755]
tests/bugs/modalg/bug4993_2 [new file with mode: 0755]
tests/bugs/modalg/bug500
tests/bugs/modalg/bug526 [new file with mode: 0755]
tests/bugs/modalg/bug527 [new file with mode: 0755]
tests/bugs/modalg/bug528 [new file with mode: 0755]
tests/bugs/modalg/bug530 [new file with mode: 0755]
tests/bugs/modalg/bug534_1 [new file with mode: 0755]
tests/bugs/modalg/bug534_2 [new file with mode: 0755]
tests/bugs/modalg/bug534_3 [new file with mode: 0755]
tests/bugs/modalg/bug534_4 [new file with mode: 0755]
tests/bugs/modalg/bug534_5 [new file with mode: 0755]
tests/bugs/modalg/bug534_6 [new file with mode: 0755]
tests/bugs/modalg/bug535 [new file with mode: 0755]
tests/bugs/modalg/bug548 [new file with mode: 0755]
tests/bugs/modalg/bug571_1
tests/bugs/modalg/bug571_2
tests/bugs/modalg/bug57_1
tests/bugs/modalg/bug57_2
tests/bugs/modalg/bug59_1
tests/bugs/modalg/bug59_2
tests/bugs/modalg/bug600
tests/bugs/modalg/bug602
tests/bugs/modalg/bug605
tests/bugs/modalg/bug615
tests/bugs/modalg/bug616
tests/bugs/modalg/bug62
tests/bugs/modalg/bug620_1
tests/bugs/modalg/bug620_2
tests/bugs/modalg/bug625
tests/bugs/modalg/bug629
tests/bugs/modalg/bug636
tests/bugs/modalg/bug637_1
tests/bugs/modalg/bug637_2
tests/bugs/modalg/bug67
tests/bugs/modalg/bug673
tests/bugs/modalg/bug68_1
tests/bugs/modalg/bug68_2
tests/bugs/modalg/bug693
tests/bugs/modalg/bug693_1 [new file with mode: 0755]
tests/bugs/modalg/bug697_1
tests/bugs/modalg/bug697_2
tests/bugs/modalg/bug698
tests/bugs/modalg/bug712_1
tests/bugs/modalg/bug714
tests/bugs/modalg/bug726_1
tests/bugs/modalg/bug726_2
tests/bugs/modalg/bug743
tests/bugs/modalg/bug745_1
tests/bugs/modalg/bug745_11
tests/bugs/modalg/bug745_12
tests/bugs/modalg/bug745_13 [new file with mode: 0755]
tests/bugs/modalg/bug745_2
tests/bugs/modalg/bug745_3 [new file with mode: 0755]
tests/bugs/modalg/bug745_4
tests/bugs/modalg/bug745_5 [new file with mode: 0755]
tests/bugs/modalg/bug745_6
tests/bugs/modalg/bug745_7
tests/bugs/modalg/bug745_8
tests/bugs/modalg/bug745_9
tests/bugs/modalg/bug748
tests/bugs/modalg/bug755_1
tests/bugs/modalg/bug758
tests/bugs/modalg/bug763
tests/bugs/modalg/bug77
tests/bugs/modalg/bug770
tests/bugs/modalg/bug771
tests/bugs/modalg/bug772
tests/bugs/modalg/bug774_1
tests/bugs/modalg/bug774_2
tests/bugs/modalg/bug775
tests/bugs/modalg/bug776_1
tests/bugs/modalg/bug776_2
tests/bugs/modalg/bug778_1
tests/bugs/modalg/bug778_2
tests/bugs/modalg/bug779
tests/bugs/modalg/bug78
tests/bugs/modalg/bug780_1
tests/bugs/modalg/bug780_2
tests/bugs/modalg/bug80
tests/bugs/modalg/bug81
tests/bugs/modalg/bug817_1 [new file with mode: 0755]
tests/bugs/modalg/bug817_2 [new file with mode: 0755]
tests/bugs/modalg/bug817_3 [new file with mode: 0755]
tests/bugs/modalg/bug82
tests/bugs/modalg/bug822_1
tests/bugs/modalg/bug822_2
tests/bugs/modalg/bug823
tests/bugs/modalg/bug823_1
tests/bugs/modalg/bug824
tests/bugs/modalg/bug824_1
tests/bugs/modalg/bug825
tests/bugs/modalg/bug825_1
tests/bugs/modalg/bug825_2
tests/bugs/modalg/bug826
tests/bugs/modalg/bug826_1
tests/bugs/modalg/bug827
tests/bugs/modalg/bug827_1
tests/bugs/modalg/bug827_2
tests/bugs/modalg/bug827_3 [new file with mode: 0755]
tests/bugs/modalg/bug828
tests/bugs/modalg/bug829_1
tests/bugs/modalg/bug829_2
tests/bugs/modalg/bug83_1
tests/bugs/modalg/bug83_2
tests/bugs/modalg/bug86
tests/bugs/modalg/bug87
tests/bugs/modalg/bug889 [new file with mode: 0755]
tests/bugs/modalg/bug890
tests/bugs/modalg/bug910
tests/bugs/modalg/bug919
tests/bugs/modalg/bug951_1 [new file with mode: 0755]
tests/bugs/modalg/bug951_2 [new file with mode: 0755]
tests/bugs/modalg/bug951_3 [new file with mode: 0755]
tests/bugs/modalg/bug951_4 [new file with mode: 0755]
tests/bugs/modalg/dxf906 [deleted file]
tests/bugs/modalg/fra62369 [changed mode: 0644->0755]
tests/bugs/modalg/pro16983 [changed mode: 0644->0755]
tests/bugs/modalg/pro18892
tests/bugs/modalg/pro19424 [changed mode: 0644->0755]
tests/bugs/modalg/pro19626 [changed mode: 0644->0755]
tests/bugs/modalg/pro19653 [changed mode: 0644->0755]
tests/bugs/moddata/buc60609 [new file with mode: 0755]
tests/bugs/moddata/buc60623_3
tests/bugs/moddata/buc60637 [changed mode: 0644->0755]
tests/bugs/moddata/buc60652_1 [changed mode: 0644->0755]
tests/bugs/moddata/buc60652_2 [changed mode: 0644->0755]
tests/bugs/moddata/buc60652_3 [changed mode: 0644->0755]
tests/bugs/moddata/buc60652_4 [changed mode: 0644->0755]
tests/bugs/moddata/buc60667 [changed mode: 0644->0755]
tests/bugs/moddata/buc60707 [changed mode: 0644->0755]
tests/bugs/moddata/buc60729 [changed mode: 0644->0755]
tests/bugs/moddata/buc60755 [changed mode: 0644->0755]
tests/bugs/moddata/buc60769 [changed mode: 0644->0755]
tests/bugs/moddata/buc60825 [changed mode: 0644->0755]
tests/bugs/moddata/buc60828 [changed mode: 0644->0755]
tests/bugs/moddata/buc60842 [changed mode: 0644->0755]
tests/bugs/moddata/buc60848 [changed mode: 0644->0755]
tests/bugs/moddata/buc60852 [changed mode: 0644->0755]
tests/bugs/moddata/buc60854 [changed mode: 0644->0755]
tests/bugs/moddata/buc60868 [changed mode: 0644->0755]
tests/bugs/moddata/buc60870 [changed mode: 0644->0755]
tests/bugs/moddata/buc60889 [changed mode: 0644->0755]
tests/bugs/moddata/buc60895 [changed mode: 0644->0755]
tests/bugs/moddata/buc60897 [changed mode: 0644->0755]
tests/bugs/moddata/buc60911 [changed mode: 0644->0755]
tests/bugs/moddata/buc60924 [changed mode: 0644->0755]
tests/bugs/moddata/buc60955 [changed mode: 0644->0755]
tests/bugs/moddata/buc60960 [changed mode: 0644->0755]
tests/bugs/moddata/buc60965 [changed mode: 0644->0755]
tests/bugs/moddata/buc60967 [changed mode: 0644->0755]
tests/bugs/moddata/buc60968 [changed mode: 0644->0755]
tests/bugs/moddata/buc61006 [changed mode: 0644->0755]
tests/bugs/moddata/bug104
tests/bugs/moddata/bug1048 [new file with mode: 0755]
tests/bugs/moddata/bug105
tests/bugs/moddata/bug107
tests/bugs/moddata/bug119
tests/bugs/moddata/bug12
tests/bugs/moddata/bug126
tests/bugs/moddata/bug130
tests/bugs/moddata/bug134_1
tests/bugs/moddata/bug134_2
tests/bugs/moddata/bug135
tests/bugs/moddata/bug15
tests/bugs/moddata/bug150_1
tests/bugs/moddata/bug150_2
tests/bugs/moddata/bug151_1
tests/bugs/moddata/bug151_2
tests/bugs/moddata/bug152_1
tests/bugs/moddata/bug152_2
tests/bugs/moddata/bug160_1
tests/bugs/moddata/bug160_2
tests/bugs/moddata/bug160_3
tests/bugs/moddata/bug160_4
tests/bugs/moddata/bug160_5
tests/bugs/moddata/bug160_6
tests/bugs/moddata/bug163
tests/bugs/moddata/bug164_1
tests/bugs/moddata/bug164_2
tests/bugs/moddata/bug165_1
tests/bugs/moddata/bug165_2
tests/bugs/moddata/bug165_3
tests/bugs/moddata/bug17
tests/bugs/moddata/bug175
tests/bugs/moddata/bug183_1
tests/bugs/moddata/bug183_2
tests/bugs/moddata/bug183_3
tests/bugs/moddata/bug183_4
tests/bugs/moddata/bug183_5
tests/bugs/moddata/bug183_6
tests/bugs/moddata/bug188
tests/bugs/moddata/bug188_1
tests/bugs/moddata/bug20
tests/bugs/moddata/bug211_1
tests/bugs/moddata/bug211_2
tests/bugs/moddata/bug217
tests/bugs/moddata/bug227_1
tests/bugs/moddata/bug227_2
tests/bugs/moddata/bug228
tests/bugs/moddata/bug252_1
tests/bugs/moddata/bug252_2
tests/bugs/moddata/bug252_3
tests/bugs/moddata/bug254
tests/bugs/moddata/bug256
tests/bugs/moddata/bug257
tests/bugs/moddata/bug258_1
tests/bugs/moddata/bug258_2
tests/bugs/moddata/bug259
tests/bugs/moddata/bug266
tests/bugs/moddata/bug268
tests/bugs/moddata/bug26_1
tests/bugs/moddata/bug26_2
tests/bugs/moddata/bug276
tests/bugs/moddata/bug278_1
tests/bugs/moddata/bug278_2
tests/bugs/moddata/bug27_1
tests/bugs/moddata/bug27_2
tests/bugs/moddata/bug28_1
tests/bugs/moddata/bug28_2
tests/bugs/moddata/bug31
tests/bugs/moddata/bug332
tests/bugs/moddata/bug354_1
tests/bugs/moddata/bug354_2
tests/bugs/moddata/bug368
tests/bugs/moddata/bug372 [new file with mode: 0755]
tests/bugs/moddata/bug37_1
tests/bugs/moddata/bug37_2
tests/bugs/moddata/bug3_1
tests/bugs/moddata/bug3_2
tests/bugs/moddata/bug4
tests/bugs/moddata/bug408
tests/bugs/moddata/bug42
tests/bugs/moddata/bug432
tests/bugs/moddata/bug466
tests/bugs/moddata/bug469
tests/bugs/moddata/bug486 [new file with mode: 0755]
tests/bugs/moddata/bug496
tests/bugs/moddata/bug50
tests/bugs/moddata/bug505
tests/bugs/moddata/bug513 [new file with mode: 0755]
tests/bugs/moddata/bug515 [new file with mode: 0755]
tests/bugs/moddata/bug525 [new file with mode: 0755]
tests/bugs/moddata/bug531 [new file with mode: 0755]
tests/bugs/moddata/bug537 [new file with mode: 0755]
tests/bugs/moddata/bug54
tests/bugs/moddata/bug541 [new file with mode: 0755]
tests/bugs/moddata/bug542 [new file with mode: 0755]
tests/bugs/moddata/bug565 [new file with mode: 0755]
tests/bugs/moddata/bug567 [new file with mode: 0755]
tests/bugs/moddata/bug569 [new file with mode: 0755]
tests/bugs/moddata/bug593 [new file with mode: 0755]
tests/bugs/moddata/bug601 [new file with mode: 0755]
tests/bugs/moddata/bug604 [new file with mode: 0755]
tests/bugs/moddata/bug611_1 [new file with mode: 0755]
tests/bugs/moddata/bug611_2 [new file with mode: 0755]
tests/bugs/moddata/bug611_3 [new file with mode: 0755]
tests/bugs/moddata/bug613_1 [new file with mode: 0755]
tests/bugs/moddata/bug613_2 [new file with mode: 0755]
tests/bugs/moddata/bug618
tests/bugs/moddata/bug65
tests/bugs/moddata/bug703 [new file with mode: 0755]
tests/bugs/moddata/bug726_3 [new file with mode: 0755]
tests/bugs/moddata/bug736 [new file with mode: 0755]
tests/bugs/moddata/bug747 [new file with mode: 0755]
tests/bugs/moddata/bug76
tests/bugs/moddata/bug766 [new file with mode: 0755]
tests/bugs/moddata/bug8
tests/bugs/moddata/bug813 [new file with mode: 0755]
tests/bugs/moddata/bug814 [new file with mode: 0755]
tests/bugs/moddata/bug862 [new file with mode: 0755]
tests/bugs/moddata/bug867 [new file with mode: 0755]
tests/bugs/moddata/bug88
tests/bugs/moddata/bug889 [new file with mode: 0755]
tests/bugs/moddata/bug909 [new file with mode: 0755]
tests/bugs/moddata/bug921 [new file with mode: 0755]
tests/bugs/moddata/bug935_1 [new file with mode: 0755]
tests/bugs/moddata/bug935_2 [new file with mode: 0755]
tests/bugs/moddata/bug943_1 [new file with mode: 0755]
tests/bugs/moddata/bug943_2 [new file with mode: 0755]
tests/bugs/moddata/bug956_1 [new file with mode: 0755]
tests/bugs/moddata/bug956_2 [new file with mode: 0755]
tests/bugs/moddata/fra62476_1 [changed mode: 0644->0755]
tests/bugs/moddata/fra62476_2 [changed mode: 0644->0755]
tests/bugs/moddata/ger61235
tests/bugs/moddata/pro19422_1
tests/bugs/moddata/pro19422_2
tests/bugs/moddata/pro20333 [changed mode: 0644->0755]
tests/bugs/step/buc60624 [changed mode: 0644->0755]
tests/bugs/step/buc60809 [changed mode: 0644->0755]
tests/bugs/step/buc60810 [changed mode: 0644->0755]
tests/bugs/step/buc60906 [changed mode: 0644->0755]
tests/bugs/step/buc60948 [changed mode: 0644->0755]
tests/bugs/step/bug272_7
tests/bugs/step/bug348_1
tests/bugs/step/bug348_2
tests/bugs/step/bug348_3
tests/bugs/step/bug348_4
tests/bugs/step/bug365_2
tests/bugs/step/bug51
tests/bugs/step/bug55
tests/bugs/step/bug609 [new file with mode: 0755]
tests/bugs/step/bug630 [new file with mode: 0755]
tests/bugs/step/bug725 [new file with mode: 0755]
tests/bugs/step/bug725_1 [new file with mode: 0755]
tests/bugs/step/bug926 [new file with mode: 0755]
tests/bugs/step/pro19854 [changed mode: 0644->0755]
tests/bugs/step/pro19895 [changed mode: 0644->0755]
tests/bugs/step/pro20361_1 [changed mode: 0644->0755]
tests/bugs/step/pro20361_2 [changed mode: 0644->0755]
tests/bugs/step/pro20361_3 [changed mode: 0644->0755]
tests/bugs/step/pro20362 [changed mode: 0644->0755]
tests/bugs/vis/buc60547 [new file with mode: 0755]
tests/bugs/vis/buc60574 [new file with mode: 0755]
tests/bugs/vis/buc60587 [new file with mode: 0755]
tests/bugs/vis/buc60614 [new file with mode: 0755]
tests/bugs/vis/buc60632_1 [new file with mode: 0755]
tests/bugs/vis/buc60632_2 [new file with mode: 0755]
tests/bugs/vis/buc60659 [new file with mode: 0755]
tests/bugs/vis/buc60661 [new file with mode: 0755]
tests/bugs/vis/buc60688 [new file with mode: 0755]
tests/bugs/vis/buc60701 [new file with mode: 0755]
tests/bugs/vis/buc60738 [new file with mode: 0755]
tests/bugs/vis/buc60740 [new file with mode: 0755]
tests/bugs/vis/buc60747 [new file with mode: 0755]
tests/bugs/vis/buc60753 [new file with mode: 0755]
tests/bugs/vis/buc60774 [new file with mode: 0755]
tests/bugs/vis/buc60814 [new file with mode: 0755]
tests/bugs/vis/buc60818 [new file with mode: 0755]
tests/bugs/vis/buc60821 [new file with mode: 0755]
tests/bugs/vis/buc60830_1 [new file with mode: 0755]
tests/bugs/vis/buc60830_2 [new file with mode: 0755]
tests/bugs/vis/buc60830_3 [new file with mode: 0755]
tests/bugs/vis/buc60832 [new file with mode: 0755]
tests/bugs/vis/buc60851 [new file with mode: 0755]
tests/bugs/vis/buc60857 [new file with mode: 0755]
tests/bugs/vis/buc60858 [new file with mode: 0755]
tests/bugs/vis/buc60876 [new file with mode: 0755]
tests/bugs/vis/buc60887 [new file with mode: 0755]
tests/bugs/vis/buc60915 [new file with mode: 0755]
tests/bugs/vis/buc60920 [new file with mode: 0755]
tests/bugs/vis/bug112_1
tests/bugs/vis/bug173_1
tests/bugs/vis/bug173_2
tests/bugs/vis/bug173_3
tests/bugs/vis/bug19_1
tests/bugs/vis/bug19_2
tests/bugs/vis/bug288_1
tests/bugs/vis/bug288_2
tests/bugs/vis/bug288_3
tests/bugs/vis/bug288_4
tests/bugs/vis/bug288_5
tests/bugs/vis/bug344
tests/bugs/vis/bug364
tests/bugs/vis/bug378 [new file with mode: 0755]
tests/bugs/vis/bug443 [new file with mode: 0755]
tests/bugs/vis/bug451 [new file with mode: 0755]
tests/bugs/vis/bug591 [new file with mode: 0755]
tests/bugs/vis/bug597_1 [new file with mode: 0755]
tests/bugs/vis/bug597_2 [new file with mode: 0755]
tests/bugs/vis/bug597_3 [new file with mode: 0755]
tests/bugs/vis/bug597_4 [new file with mode: 0755]
tests/bugs/vis/bug597_5 [new file with mode: 0755]
tests/bugs/vis/bug597_6 [new file with mode: 0755]
tests/bugs/vis/bug597_7 [new file with mode: 0755]
tests/bugs/vis/bug641 [new file with mode: 0755]
tests/bugs/vis/bug708 [new file with mode: 0755]
tests/bugs/vis/bug727 [new file with mode: 0755]
tests/bugs/vis/bug872 [new file with mode: 0755]
tests/bugs/vis/ger61351_1 [new file with mode: 0755]
tests/bugs/vis/ger61351_2 [new file with mode: 0755]
tests/bugs/vis/ger61351_3 [new file with mode: 0755]
tests/bugs/vis/ger61351_4 [new file with mode: 0755]
tests/bugs/vis/ger61351_5 [new file with mode: 0755]
tests/bugs/vis/ger61351_6 [new file with mode: 0755]
tests/bugs/vis/pro20342 [new file with mode: 0755]
tests/bugs/xde/bug125_1
tests/bugs/xde/bug125_2
tests/bugs/xde/bug168
tests/bugs/xde/bug169
tests/bugs/xde/bug184
tests/bugs/xde/bug2
tests/bugs/xde/bug23384 [changed mode: 0644->0755]
tests/bugs/xde/bug321
tests/bugs/xde/bug34
tests/bugs/xde/bug445
tests/bugs/xde/bug547_1 [new file with mode: 0755]
tests/bugs/xde/bug547_2 [new file with mode: 0755]
tests/bugs/xde/bug659 [new file with mode: 0755]
tests/bugs/xde/bug660 [new file with mode: 0755]
tests/bugs/xde/bug810 [new file with mode: 0755]
tests/bugs/xde/bug816_1 [new file with mode: 0755]
tests/bugs/xde/bug816_2 [new file with mode: 0755]
tests/bugs/xde/bug859 [new file with mode: 0755]
tests/bugs/xde/bug861 [new file with mode: 0755]
tests/bugs/xde/bug901 [new file with mode: 0755]
tests/bugs/xde/bug904 [new file with mode: 0755]
tests/bugs/xde/bug991 [new file with mode: 0755]

index 3e398ceb9a71f8812fd9eceda924d5d77b64f2e4..6184282bc9fb290a2b142f721e357fd71197cc7c 100644 (file)
@@ -1364,7 +1364,6 @@ static Standard_Integer BUC60856(Draw_Interpretor& di, Standard_Integer /*argc*/
   return 0;
 }
 
-#if ! defined(WNT)
 //#include <fstream.h>
 #ifdef HAVE_FSTREAM
 # include <fstream>
@@ -1420,7 +1419,6 @@ static Standard_Integer coordload (Draw_Interpretor& di, Standard_Integer argc,
   DBRep::Set (argv[1],Face);
   return 0;
 }
-#endif
 
 static Standard_Integer TestMem (Draw_Interpretor& /*di*/,
                                 Standard_Integer /*nb*/, 
@@ -2254,9 +2252,7 @@ void QABugs::Commands_3(Draw_Interpretor& theCommands) {
 
   theCommands.Add("BUC60856","BUC60856",__FILE__,BUC60856,group);
 
-#if ! defined(WNT)
   theCommands.Add("coordload","load coord from file",__FILE__,coordload);
-#endif
 
   theCommands.Add("TestMem","TestMem",__FILE__,TestMem,group);
   theCommands.Add("BUC60945","BUC60945",__FILE__,TestMem,group);
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/tests/bugs/caf/bug1029 b/tests/bugs/caf/bug1029
new file mode 100755 (executable)
index 0000000..6a2e49b
--- /dev/null
@@ -0,0 +1,96 @@
+puts "================"
+puts "OCC1029"
+puts "================"
+puts ""
+#
+# Note:   Numerical control of setting transparency
+#
+
+pload QAcommands
+
+NewDocument D MDTV-Standard
+UndoLimit D 100
+NewCommand D
+
+# Create two boxis
+box aBox1 100 200 300
+set aLabel1 0:2
+SetShape D ${aLabel1} aBox1
+
+box aBox2 50 50 0 100 200 300
+set aLabel2 0:3
+SetShape D ${aLabel2} aBox2
+
+# Initialize 3D viewer
+AISInitViewer D
+
+# Add AISPresentation attribute with parameter NS
+AISSet D ${aLabel1} NS
+AISSet D ${aLabel2} NS
+
+# Set shading mode
+vsetdispmode 1
+
+# Set a color of the second shape as NOC_GREEN
+AISColor D ${aLabel2} 229
+
+# Display presentation of NamedShape in the viewer
+AISDisplay D ${aLabel1}
+AISDisplay D ${aLabel2}
+
+# Close/Open transaction
+NewCommand D
+
+# Set a transparency of the second shape 
+set SetTransparency 0.9
+OCC1029_AISTransparency D ${aLabel2} ${SetTransparency}
+
+set list [OCC1029_AISTransparency D ${aLabel2}]
+set Transparency1 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Close/Open transaction
+NewCommand D
+
+# Undo
+Undo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1029_AISTransparency D ${aLabel2}]
+set Transparency2 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Redo
+Redo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1029_AISTransparency D ${aLabel2}]
+set Transparency3 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Check the transparency
+puts "Transparency1 = ${Transparency1}"
+puts "Transparency2 = ${Transparency2}"
+puts "Transparency3 = ${Transparency3}"
+
+set status 0
+if { ${Transparency1} != ${SetTransparency} } {
+       puts "OCC1029_Transparency command: Error (case 1)"
+       set status 1
+}
+
+if { ${Transparency2} != 0. } {
+       puts "OCC1029_Transparency command: Error (case 2)"
+       set status 1
+}
+
+if { ${Transparency3} != ${SetTransparency} } {
+       puts "OCC1029_Transparency command: Error (case 3)"
+       set status 1
+}
+
+if { ${status} == 0} {
+       puts "OCC1029_Transparency command: OK"
+}
+
diff --git a/tests/bugs/caf/bug1030 b/tests/bugs/caf/bug1030
new file mode 100755 (executable)
index 0000000..2c6e965
--- /dev/null
@@ -0,0 +1,94 @@
+puts "================"
+puts "OCC1030"
+puts "================"
+#
+# Note:   Numerical control of setting color
+#
+
+pload QAcommands
+
+NewDocument D MDTV-Standard
+UndoLimit D 100
+NewCommand D
+
+# Set NamedShape attribute
+box aBox1 100 200 300
+set aLabel 0:2
+SetShape D ${aLabel} aBox1
+
+# Initialize 3D viewer
+AISInitViewer D
+
+# Add AISPresentation attribute with parameter NS
+AISSet D ${aLabel} NS
+
+# Display presentation of NamedShape in the viewer
+AISDisplay D ${aLabel}
+
+# Close/Open transaction
+NewCommand D
+
+set list [OCC1030_AISColor D ${aLabel}]
+set AISColor1 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Set a color of the shape as NOC_GREEN
+set GreenColor 229
+AISColor D ${aLabel} ${GreenColor}
+
+set list [OCC1030_AISColor D ${aLabel}]
+set AISColor2 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Close/Open transaction
+NewCommand D
+
+# Undo
+Undo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1030_AISColor D ${aLabel}]
+set AISColor3 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Redo
+Redo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1030_AISColor D ${aLabel}]
+set AISColor4 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Check the color
+puts "AISColor1 = ${AISColor1}"
+puts "AISColor2 = ${AISColor2}"
+puts "AISColor3 = ${AISColor3}"
+puts "AISColor4 = ${AISColor4}"
+
+set DefaultAISColor 516
+set status 0
+if { ${AISColor1} != ${DefaultAISColor} } {
+       puts "OCC1030_AISColor command: Error (case 1)"
+       set status 1
+}
+
+if { ${AISColor2} != ${GreenColor} } {
+       puts "OCC1030_AISColor command: Error (case 2)"
+       set status 1
+}
+
+if { ${AISColor3} != ${DefaultAISColor} } {
+       puts "OCC1030_AISColor command: Error (case 3)"
+       set status 1
+}
+
+if { ${AISColor4} != ${GreenColor} } {
+       puts "OCC1030_AISColor command: Error (case 4)"
+       set status 1
+}
+
+if { ${status} == 0} {
+       puts "OCC1030_AISColor command: OK"
+}
+
+
diff --git a/tests/bugs/caf/bug1031 b/tests/bugs/caf/bug1031
new file mode 100755 (executable)
index 0000000..a9003a0
--- /dev/null
@@ -0,0 +1,96 @@
+puts "================"
+puts "OCC1031"
+puts "================"
+puts ""
+#
+# Note:   Numerical control of setting material
+#
+
+pload QAcommands
+
+NewDocument D MDTV-Standard
+UndoLimit D 100
+NewCommand D
+
+# Set NamedShape attribute
+box aBox1 100 200 300
+set aLabel 0:2
+SetShape D ${aLabel} aBox1
+
+# Initialize 3D viewer
+AISInitViewer D
+
+# Add AISPresentation attribute with parameter NS
+AISSet D ${aLabel} NS
+
+# Set shading mode
+vsetdispmode 1
+
+# Display presentation of NamedShape in the viewer
+AISDisplay D ${aLabel}
+
+# Close/Open transaction
+NewCommand D
+
+set list [OCC1031_AISMaterial D ${aLabel}]
+set AISMaterial1 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Set a material of the shape as NOM_JADE
+set JadeMaterial 18
+OCC1031_AISMaterial D ${aLabel} ${JadeMaterial}
+
+set list [OCC1031_AISMaterial D ${aLabel}]
+set AISMaterial2 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Close/Open transaction
+NewCommand D
+
+# Undo
+Undo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1031_AISMaterial D ${aLabel}]
+set AISMaterial3 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Redo
+Redo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1031_AISMaterial D ${aLabel}]
+set AISMaterial4 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Check the material
+puts "AISMaterial1 = ${AISMaterial1}"
+puts "AISMaterial2 = ${AISMaterial2}"
+puts "AISMaterial3 = ${AISMaterial3}"
+puts "AISMaterial4 = ${AISMaterial4}"
+
+set status 0
+if { ${AISMaterial1} != 0 } {
+       puts "OCC1031_AISMaterial command: Error (case 1)"
+       set status 1
+}
+
+if { ${AISMaterial2} != ${JadeMaterial} } {
+       puts "OCC1031_AISMaterial command: Error (case 2)"
+       set status 1
+}
+
+if { ${AISMaterial3} != 0 } {
+       puts "OCC1031_AISMaterial command: Error (case 3)"
+       set status 1
+}
+
+if { ${AISMaterial4} != ${JadeMaterial} } {
+       puts "OCC1031_AISMaterial command: Error (case 4)"
+       set status 1
+}
+
+if { ${status} == 0} {
+       puts "OCC1031_AISMaterial command: OK"
+}
+
diff --git a/tests/bugs/caf/bug1032 b/tests/bugs/caf/bug1032
new file mode 100755 (executable)
index 0000000..d98eba3
--- /dev/null
@@ -0,0 +1,94 @@
+puts "================"
+puts "OCC1032"
+puts "================"
+puts ""
+#
+# Note:   Numerical control of setting width
+#
+
+pload QAcommands
+
+NewDocument D MDTV-Standard
+UndoLimit D 100
+NewCommand D
+
+# Set NamedShape attribute
+box aBox1 100 200 300
+set aLabel1 0:2
+SetShape D ${aLabel1} aBox1
+
+# Initialize 3D viewer
+AISInitViewer D
+
+# Add AISPresentation attribute with parameter NS
+AISSet D ${aLabel1} NS
+
+# Close/Open transaction
+NewCommand D
+
+set list [OCC1032_AISWidth D ${aLabel1}]
+set AISWidth1 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Display presentation of NamedShape in the viewer
+AISDisplay D ${aLabel1}
+
+# Close/Open transaction
+NewCommand D
+
+# Set a width
+set SetWidth 4.5
+OCC1032_AISWidth D ${aLabel1} ${SetWidth}
+
+set list [OCC1032_AISWidth D ${aLabel1}]
+set AISWidth2 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Close/Open transaction
+NewCommand D
+
+# Undo
+Undo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1032_AISWidth D ${aLabel1}]
+set AISWidth3 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Redo
+Redo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1032_AISWidth D ${aLabel1}]
+set AISWidth4 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Check the mode
+puts "AISWidth1 = ${AISWidth1}"
+puts "AISWidth2 = ${AISWidth2}"
+puts "AISWidth3 = ${AISWidth3}"
+puts "AISWidth4 = ${AISWidth4}"
+
+set DefaultAISWidth 0
+set status 0
+if { ${AISWidth1} != ${DefaultAISWidth} } {
+       puts "OCC1032_AISWidth command: Error (case 1)"
+       set status 1
+}
+if { ${AISWidth2} != ${SetWidth} } {
+       puts "OCC1032_AISWidth command: Error (case 2)"
+       set status 1
+}
+if { ${AISWidth3} != ${DefaultAISWidth} } {
+       puts "OCC1032_AISWidth command: Error (case 3)"
+       set status 1
+}
+if { ${AISWidth4} != ${SetWidth} } {
+       puts "OCC1032_AISWidth command: Error (case 4)"
+       set status 1
+}
+
+if { ${status} == 0} {
+       puts "OCC1032_AISWidth command: OK"
+}
+
diff --git a/tests/bugs/caf/bug1033 b/tests/bugs/caf/bug1033
new file mode 100755 (executable)
index 0000000..4edeb2c
--- /dev/null
@@ -0,0 +1,94 @@
+puts "================"
+puts "OCC1033"
+puts "================"
+puts ""
+#
+# Note:   Numerical control of setting mode
+#
+
+pload QAcommands
+
+NewDocument D MDTV-Standard
+UndoLimit D 100
+NewCommand D
+
+# Set NamedShape attribute
+box aBox1 100 200 300
+set aLabel1 0:2
+SetShape D ${aLabel1} aBox1
+
+# Initialize 3D viewer
+AISInitViewer D
+
+# Add AISPresentation attribute with parameter NS
+AISSet D ${aLabel1} NS
+
+# Close/Open transaction
+NewCommand D
+
+set list [OCC1033_AISMode D ${aLabel1}]
+set AISMode1 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Display presentation of NamedShape in the viewer
+AISDisplay D ${aLabel1}
+
+# Close/Open transaction
+NewCommand D
+
+# Set a mode
+set SetMode 2
+OCC1033_AISMode D ${aLabel1} ${SetMode}
+
+set list [OCC1033_AISMode D ${aLabel1}]
+set AISMode2 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Close/Open transaction
+NewCommand D
+
+# Undo
+Undo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1033_AISMode D ${aLabel1}]
+set AISMode3 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Redo
+Redo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1033_AISMode D ${aLabel1}]
+set AISMode4 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Check the mode
+puts "AISMode1 = ${AISMode1}"
+puts "AISMode2 = ${AISMode2}"
+puts "AISMode3 = ${AISMode3}"
+puts "AISMode4 = ${AISMode4}"
+
+set DefaultAISMode 0
+set status 0
+if { ${AISMode1} != ${DefaultAISMode} } {
+       puts "OCC1033_AISMode command: Error (case 1)"
+       set status 1
+}
+if { ${AISMode2} != ${SetMode} } {
+       puts "OCC1033_AISMode command: Error (case 2)"
+       set status 1
+}
+if { ${AISMode3} != ${DefaultAISMode} } {
+       puts "OCC1033_AISMode command: Error (case 3)"
+       set status 1
+}
+if { ${AISMode4} != ${SetMode} } {
+       puts "OCC1033_AISMode command: Error (case 4)"
+       set status 1
+}
+
+if { ${status} == 0} {
+       puts "OCC1033_AISMode command: OK"
+}
+
diff --git a/tests/bugs/caf/bug1034 b/tests/bugs/caf/bug1034
new file mode 100755 (executable)
index 0000000..3d342b7
--- /dev/null
@@ -0,0 +1,94 @@
+puts "================"
+puts "OCC1034"
+puts "================"
+puts ""
+#
+# Note:   Numerical control of setting selection mode
+#
+
+pload QAcommands
+
+NewDocument D MDTV-Standard
+UndoLimit D 100
+NewCommand D
+
+# Set NamedShape attribute
+box aBox1 100 200 300
+set aLabel1 0:2
+SetShape D ${aLabel1} aBox1
+
+# Initialize 3D viewer
+AISInitViewer D
+
+# Add AISPresentation attribute with parameter NS
+AISSet D ${aLabel1} NS
+
+# Close/Open transaction
+NewCommand D
+
+set list [OCC1034_AISSelectionMode D ${aLabel1}]
+set AISSelectionMode1 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Display presentation of NamedShape in the viewer
+AISDisplay D ${aLabel1}
+
+# Close/Open transaction
+NewCommand D
+
+# Set a mode
+set SetSelectionMode 2
+OCC1034_AISSelectionMode D ${aLabel1} ${SetSelectionMode}
+
+set list [OCC1034_AISSelectionMode D ${aLabel1}]
+set AISSelectionMode2 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Close/Open transaction
+NewCommand D
+
+# Undo
+Undo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1034_AISSelectionMode D ${aLabel1}]
+set AISSelectionMode3 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Redo
+Redo D
+
+# Update the viewer
+AISRepaint D
+
+set list [OCC1034_AISSelectionMode D ${aLabel1}]
+set AISSelectionMode4 [lindex ${list} [expr [llength ${list}] - 1] ]
+
+# Check the mode
+puts "AISSelectionMode1 = ${AISSelectionMode1}"
+puts "AISSelectionMode2 = ${AISSelectionMode2}"
+puts "AISSelectionMode3 = ${AISSelectionMode3}"
+puts "AISSelectionMode4 = ${AISSelectionMode4}"
+
+set DefaultAISSelectionMode 0
+set status 0
+if { ${AISSelectionMode1} != ${DefaultAISSelectionMode} } {
+       puts "OCC1034_AISSelectionMode command: Error (case 1)"
+       set status 1
+}
+if { ${AISSelectionMode2} != ${SetSelectionMode} } {
+       puts "OCC1034_AISSelectionMode command: Error (case 2)"
+       set status 1
+}
+if { ${AISSelectionMode3} != ${DefaultAISSelectionMode} } {
+       puts "OCC1034_AISSelectionMode command: Error (case 3)"
+       set status 1
+}
+if { ${AISSelectionMode4} != ${SetSelectionMode} } {
+       puts "OCC1034_AISSelectionMode command: Error (case 4)"
+       set status 1
+}
+
+if { ${status} == 0} {
+       puts "OCC1034_AISSelectionMode command: OK"
+}
+
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/tests/bugs/caf/bug170_3 b/tests/bugs/caf/bug170_3
new file mode 100755 (executable)
index 0000000..8cbabed
--- /dev/null
@@ -0,0 +1,35 @@
+puts "TODO OCC12345 ALL: OCC170 Error"
+
+puts "========================"
+puts "OCC170"
+puts "(case 3)"
+puts "========================"
+
+set docName OCC170
+set newDocName OCC170_2
+set str1 "~!@#$%^&*():;'{}\|?/.>,<~!@#$%^&*():;'{}\|?/.>,<#$%#$%$%^&*():;'{}\|$%^&*(@#$%^&*():;'{}\|¦/"
+
+NewDocument $docName XmlOcaf
+Label $docName 0:2
+SetComment $docName 0:2 $str1
+
+file delete ${imagedir}/${docName}.xml
+
+if [ catch {SaveAs $docName ${imagedir}/${docName}.xml} ] {
+    puts "Error : (SaveAs)"
+} else {
+    puts "OK : (SaveAs)"
+}
+
+exec cp ${imagedir}/${docName}.xml ${imagedir}/${newDocName}.xml
+
+Open ${imagedir}/${newDocName}.xml $newDocName
+
+# Retrieve string  from document and compare it with initial value
+set str2 [GetComment $newDocName 0:2]
+if {$str1 == $str2} {puts "OCC170 OK"} else {
+  puts "str1=${str1}"
+  puts "str2=${str2}"
+  puts "OCC170 Error"
+}
+
diff --git a/tests/bugs/caf/bug5023 b/tests/bugs/caf/bug5023
new file mode 100755 (executable)
index 0000000..4f255ad
--- /dev/null
@@ -0,0 +1,39 @@
+puts "================"
+puts "OCC5023"
+puts "================"
+puts ""
+######################################################
+# Performance regression in opening OCAF file
+######################################################
+
+set aFile [locate_data_file OCC5023.std]
+
+puts "Info: Restore the document"
+
+if [info exists DD] {
+    catch {Close DD}; unset DD
+}
+
+dchrono h reset
+dchrono h start
+
+Open ${aFile} DD
+dchrono h stop
+set list [dchrono h show]
+Close DD
+
+regexp {CPU user time: +([-0-9.+eE]+)} $list full CPU_user_time
+
+set Good_CPU_user_time 2.
+
+set CPU_user_time_percent [expr (${CPU_user_time} - ${Good_CPU_user_time}) / ${Good_CPU_user_time} * 100.]
+set percent_max 0.1
+
+puts "CPU_user_time = ${CPU_user_time}"
+puts "Good_CPU_user_time = ${Good_CPU_user_time}"
+puts "CPU_user_time_percent = ${CPU_user_time_percent}"
+
+if {${CPU_user_time_percent} > ${percent_max}} {
+    puts "Faulty OCC5023 : CPU user time is wrong"
+}
+
diff --git a/tests/bugs/caf/bug669 b/tests/bugs/caf/bug669
new file mode 100755 (executable)
index 0000000..4851cae
--- /dev/null
@@ -0,0 +1,162 @@
+puts "All exceptions is OK"
+puts "TODO OCC12345 ALL: An exception was caught"
+puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+
+puts "========"
+puts "OCC669"
+puts "========"
+puts ""
+#########################################
+## Standard_GUID("HoleFeature") cause stack overwrite
+#########################################
+
+pload QAcommands
+
+set GoodGUIDList [list 00000000-0000-0000-0000-000000000000 \
+                                                            \
+                       0000000A-0000-0000-0000-000000000000 \
+                       0000000B-0000-0000-0000-000000000000 \
+                       0000000C-0000-0000-0000-000000000000 \
+                       0000000D-0000-0000-0000-000000000000 \
+                       0000000E-0000-0000-0000-000000000000 \
+                       0000000F-0000-0000-0000-000000000000 \
+                                                            \
+                       0000000a-0000-0000-0000-000000000000 \
+                       0000000b-0000-0000-0000-000000000000 \
+                       0000000c-0000-0000-0000-000000000000 \
+                       0000000d-0000-0000-0000-000000000000 \
+                       0000000e-0000-0000-0000-000000000000 \
+                       0000000f-0000-0000-0000-000000000000 \
+                                                            \
+                       00000000-000A-0000-0000-000000000000 \
+                       00000000-000B-0000-0000-000000000000 \
+                       00000000-000C-0000-0000-000000000000 \
+                       00000000-000D-0000-0000-000000000000 \
+                       00000000-000E-0000-0000-000000000000 \
+                       00000000-000F-0000-0000-000000000000 \
+                                                            \
+                       00000000-000a-0000-0000-000000000000 \
+                       00000000-000b-0000-0000-000000000000 \
+                       00000000-000c-0000-0000-000000000000 \
+                       00000000-000d-0000-0000-000000000000 \
+                       00000000-000e-0000-0000-000000000000 \
+                       00000000-000f-0000-0000-000000000000 \
+                                                            \
+                       00000000-0000-000A-0000-000000000000 \
+                       00000000-0000-000B-0000-000000000000 \
+                       00000000-0000-000C-0000-000000000000 \
+                       00000000-0000-000D-0000-000000000000 \
+                       00000000-0000-000E-0000-000000000000 \
+                       00000000-0000-000F-0000-000000000000 \
+                                                            \
+                       00000000-0000-000a-0000-000000000000 \
+                       00000000-0000-000b-0000-000000000000 \
+                       00000000-0000-000c-0000-000000000000 \
+                       00000000-0000-000d-0000-000000000000 \
+                       00000000-0000-000e-0000-000000000000 \
+                       00000000-0000-000f-0000-000000000000 \
+                                                            \
+                       00000000-0000-0000-000A-000000000000 \
+                       00000000-0000-0000-000B-000000000000 \
+                       00000000-0000-0000-000C-000000000000 \
+                       00000000-0000-0000-000D-000000000000 \
+                       00000000-0000-0000-000E-000000000000 \
+                       00000000-0000-0000-000F-000000000000 \
+                                                            \
+                       00000000-0000-0000-000a-000000000000 \
+                       00000000-0000-0000-000b-000000000000 \
+                       00000000-0000-0000-000c-000000000000 \
+                       00000000-0000-0000-000d-000000000000 \
+                       00000000-0000-0000-000e-000000000000 \
+                       00000000-0000-0000-000f-000000000000 \
+                                                            \
+                       00000000-0000-0000-0000-00000000000A \
+                       00000000-0000-0000-0000-00000000000B \
+                       00000000-0000-0000-0000-00000000000C \
+                       00000000-0000-0000-0000-00000000000D \
+                       00000000-0000-0000-0000-00000000000E \
+                       00000000-0000-0000-0000-00000000000F \
+                                                            \
+                       00000000-0000-0000-0000-00000000000a \
+                       00000000-0000-0000-0000-00000000000b \
+                       00000000-0000-0000-0000-00000000000c \
+                       00000000-0000-0000-0000-00000000000d \
+                       00000000-0000-0000-0000-00000000000e \
+                       00000000-0000-0000-0000-00000000000f ]
+
+set BadGUIDList [list  \
+                                                           \
+                      0000000G-0000-0000-0000-000000000000 \
+                      0000000g-0000-0000-0000-000000000000 \
+                                                           \
+                      00000000-000G-0000-0000-000000000000 \
+                      00000000-000g-0000-0000-000000000000 \
+                                                           \
+                      00000000-0000-000G-0000-000000000000 \
+                      00000000-0000-000g-0000-000000000000 \
+                                                           \
+                      00000000-0000-0000-000G-000000000000 \
+                      00000000-0000-0000-000g-000000000000 \
+                                                           \
+                      00000000-0000-0000-0000-00000000000G \
+                      00000000-0000-0000-0000-00000000000g \
+                                                           \
+                      000000000000000000000000000000000000 \
+                      0000000000000000000000000000000000000 \
+                      00000000000000000000000000000000000 \
+                                                           \
+                      0000000000000-0000-0000-000000000000 \
+                      00000000-000000000-0000-000000000000 \
+                      00000000-0000-000000000-000000000000 \
+                      00000000-0000-0000-00000000000000000 \
+                                                           \
+                      000000000-0000-0000-0000-000000000000 \
+                      0000000-0000-0000-0000-000000000000 \
+                                                           \
+                      00000000-00000-0000-0000-000000000000 \
+                      00000000-000-0000-0000-000000000000 \
+                                                           \
+                      00000000-0000-00000-0000-000000000000 \
+                      00000000-0000-000-0000-000000000000 \
+                                                           \
+                      00000000-0000-0000-00000-000000000000 \
+                      00000000-0000-0000-000-000000000000 \
+                                                           \
+                      00000000-0000-0000-0000-0000000000000 \
+                      00000000-0000-0000-0000-00000000000 \
+                                                           \
+                      "" ]
+
+set IsOK 1
+
+set i 0
+
+foreach GUID ${GoodGUIDList} {
+  incr i
+  if [catch { OCC669 ${GUID} }] then {
+    set IsOK 0
+    puts "GUID=\"${GUID}\""
+    puts "Faulty OCC669 (case ${i})"
+  } else {
+    puts "OCC669 OK (case ${i})"
+  }
+}
+
+
+foreach GUID ${BadGUIDList} {
+  incr i
+  if [catch { OCC669 ${GUID} }] then {
+    puts "OCC669 OK (case ${i})"
+  } else {
+    set IsOK 0
+    puts "GUID=\"${GUID}\""
+    puts "Faulty OCC669 (case ${i})"
+  }
+}
+
+if { ${IsOK} == 1} {
+  puts "OCC669 OK"
+} else {
+  puts "Faulty OCC669"
+}
+
diff --git a/tests/bugs/caf/bug738_1 b/tests/bugs/caf/bug738_1
new file mode 100755 (executable)
index 0000000..2a93f50
--- /dev/null
@@ -0,0 +1,17 @@
+puts "========"
+puts "OCC738"
+puts "========"
+puts ""
+###################################
+## The GUIDs in XCAFDoc have incorrect format.
+###################################
+
+pload QAcommands
+
+if [catch { OCC738_Assembly }] then {
+  puts "Faulty OCC738"
+} else {
+  puts "OCC738 OK"
+}
+
+
diff --git a/tests/bugs/caf/bug738_2 b/tests/bugs/caf/bug738_2
new file mode 100755 (executable)
index 0000000..b24ae07
--- /dev/null
@@ -0,0 +1,17 @@
+puts "========"
+puts "OCC738"
+puts "========"
+puts ""
+##################################
+##The GUIDs in XCAFDoc have incorrect format.
+##################################
+
+pload QAcommands
+
+if [catch { OCC738_ShapeRef }] then {
+  puts "Faulty OCC738"
+} else {
+  puts "OCC738 OK"
+}
+
+
diff --git a/tests/bugs/caf/bug739 b/tests/bugs/caf/bug739
new file mode 100755 (executable)
index 0000000..a1b020f
--- /dev/null
@@ -0,0 +1,19 @@
+puts "TODO OCC12345 ALL: Faulty OCC739"
+
+puts "========"
+puts "OCC739"
+puts "========"
+puts ""
+###################################################
+## Invalid GUIDs in DDataStd_DrawPresentation and DDataStd_Sample.
+###################################################
+
+pload QAcommands
+
+if [catch { OCC739_DrawPresentation }] then {
+  puts "Faulty OCC739"
+} else {
+  puts "OCC739 OK"
+}
+
+
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index f9b9af6c2d22d83e16831fa4e29958ad0caaa840..9178db6b3e61bee7c7de883bf7df4d7cc9e1cdca 100755 (executable)
@@ -12,6 +12,7 @@ if { [isdraw result] } {
        vdisplay result
        vsetdispmode 1
        vfit
+       vzfit
        vdump $imagedir/${test_image}.png
     }
 }
diff --git a/tests/bugs/fclasses/bug11568_1 b/tests/bugs/fclasses/bug11568_1
new file mode 100755 (executable)
index 0000000..914c94c
--- /dev/null
@@ -0,0 +1,19 @@
+puts "============"
+puts "OCC11568"
+puts "============"
+puts ""
+#######################################################################
+# UnitsAPI package uses incorrect symbol for minutes: mn instead of min
+#######################################################################
+
+set BugNumber OCC11568
+
+set UnitString "mn"
+set result "Token word : min\n"
+
+if { [unitparsing ${UnitString}] == ${result} } {
+    puts "${BugNumber}: OK"
+} else {
+    puts "${BugNumber}: Faulty"
+}
+
diff --git a/tests/bugs/fclasses/bug11568_2 b/tests/bugs/fclasses/bug11568_2
new file mode 100755 (executable)
index 0000000..544b1c6
--- /dev/null
@@ -0,0 +1,18 @@
+puts "============"
+puts "OCC11568"
+puts "============"
+puts ""
+#######################################################################
+# UnitsAPI package uses incorrect symbol for minutes: mn instead of min
+#######################################################################
+
+set BugNumber OCC11568
+
+set UnitString "mn"
+set result "result: 60\n"
+
+if { [unitconvtoSI 1 ${UnitString}] == ${result} } {
+    puts "${BugNumber}: OK"
+} else {
+    puts "${BugNumber}: Faulty"
+}
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 1f4f94a886b2b09d896785694abf3440a3d7ca11..1a7ec4a6b1c9441dd1e4ef3083153131d78ce155 100755 (executable)
@@ -12,7 +12,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file box__simplifiée.brep] result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
diff --git a/tests/bugs/fclasses/bug670 b/tests/bugs/fclasses/bug670
new file mode 100755 (executable)
index 0000000..8b029d5
--- /dev/null
@@ -0,0 +1,16 @@
+puts "TODO ?OCC12345 ALL: An exception was caught"
+puts "TODO ?OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+
+puts "========"
+puts "OCC670"
+puts "========"
+puts ""
+#########################
+## Problem with the Print method.
+#########################
+
+pload QAcommands
+
+catch { OCC670 }
+
+puts "OCC670 OK"
diff --git a/tests/bugs/fclasses/bug6794 b/tests/bugs/fclasses/bug6794
new file mode 100755 (executable)
index 0000000..4537966
--- /dev/null
@@ -0,0 +1,26 @@
+puts "============"
+puts "OCC6794"
+puts "============"
+puts ""
+######################################################
+# AsciiString corrputs memory in case of MMGT_OPT equal to 0
+######################################################
+
+pload QAcommands
+set BugNumber OCC6794
+set nb 40009
+set env(MMGT_OPT) 0
+set OPT $env(MMGT_OPT)
+
+if { ${OPT} != 0 } {
+    puts "env(MMGT_OPT) = $env(MMGT_OPT)"
+    puts "Faulty ${BugNumber}"
+} else {
+    set result [OCC6794 ${nb}]
+    regexp {Use nb += +([-0-9.+eE]+)} $result full use_nb
+    regexp {aLength += +([-0-9.+eE]+)} $result full length
+    
+    if { ${use_nb} != ${nb} || ${length} != ${nb} } {
+        puts "Faulty ${BugNumber}"
+    }
+}
diff --git a/tests/bugs/fclasses/bug710 b/tests/bugs/fclasses/bug710
new file mode 100755 (executable)
index 0000000..63df4e8
--- /dev/null
@@ -0,0 +1,18 @@
+puts "========"
+puts "OCC710"
+puts "========"
+puts ""
+########################################################
+## If the the file pathname is empty, the Standard_Boolean OSD_FileNode::Exists() 
+## raises an exception
+########################################################
+
+pload QAcommands
+
+set Path ""
+
+if [catch {OCC710 ${Path} } result] {
+  puts "Faulty OCC710"
+} else {
+  puts "OCC710 OK"
+}
diff --git a/tests/bugs/fclasses/bug7287_1 b/tests/bugs/fclasses/bug7287_1
new file mode 100755 (executable)
index 0000000..2fed9a9
--- /dev/null
@@ -0,0 +1,29 @@
+puts "============"
+puts "OCC7287"
+puts "============"
+puts ""
+######################################################
+# Problem of Memory Leak
+######################################################
+
+#
+# Result is Null shape
+#
+
+set BugNumber OCC7287
+
+set NCycles 1000
+box b1 100 100 100
+box b2 50 50 50
+bop b1 b2
+
+set listmem {}
+for {set i 1} {${i} <= ${NCycles}} {incr i } {
+    bopcut r
+    
+    lappend listmem [expr [meminfo w] / 1024]
+    if { [checktrend $listmem 0 1 "Memory leak detected"] } {
+       puts "No memory leak, $i iterations"
+       break
+    }
+}
diff --git a/tests/bugs/fclasses/bug7287_2 b/tests/bugs/fclasses/bug7287_2
new file mode 100755 (executable)
index 0000000..4dc4f39
--- /dev/null
@@ -0,0 +1,28 @@
+puts "============"
+puts "OCC7287"
+puts "============"
+puts ""
+######################################################
+# Problem of Memory Leak
+######################################################
+
+#
+# Result is not Null shape
+#
+
+set BugNumber OCC7287
+
+set NCycles 1000
+box b1 10 10 10 100 100 100
+box b2 50 50 50
+bop b1 b2
+
+set listmem {}
+for {set i 1} {${i} <= ${NCycles}} {incr i } {
+    bopcut r
+    lappend listmem [expr [meminfo w] / 1024]
+    if { [checktrend $listmem 0 1 "Memory leak detected"] } {
+       puts "No memory leak, $i iterations"
+       break
+    }
+}
diff --git a/tests/bugs/fclasses/bug7287_3 b/tests/bugs/fclasses/bug7287_3
new file mode 100755 (executable)
index 0000000..b97a709
--- /dev/null
@@ -0,0 +1,31 @@
+puts "============"
+puts "OCC7287"
+puts "============"
+puts ""
+######################################################
+# Problem of Memory Leak
+######################################################
+
+#
+# Result is not Null shape
+#
+
+set BugNumber OCC7287
+
+
+set NCycles 1000
+box b1 10 10 10 100 100 100
+box b2 50 50 50
+bop b1 b2
+
+set listmem {}
+for {set i 1} {${i} <= ${NCycles}} {incr i } {
+    boptuc r
+
+    lappend listmem [expr [meminfo w] / 1024]
+    if { [checktrend $listmem 0 1 "Memory leak detected"] } {
+       puts "No memory leak, $i iterations"
+       break
+    }
+}
+
diff --git a/tests/bugs/fclasses/bug7287_4 b/tests/bugs/fclasses/bug7287_4
new file mode 100755 (executable)
index 0000000..413e159
--- /dev/null
@@ -0,0 +1,29 @@
+puts "============"
+puts "OCC7287"
+puts "============"
+puts ""
+######################################################
+# Problem of Memory Leak
+######################################################
+
+#
+# Result is not Null shape
+#
+
+set BugNumber OCC7287
+
+set NCycles 1000
+box b1 10 10 10 100 100 100
+box b2 50 50 50
+bop b1 b2
+
+set listmem {}
+for {set i 1} {${i} <= ${NCycles}} {incr i } {
+    bopcommon r
+
+    lappend listmem [expr [meminfo w] / 1024]
+    if { [checktrend $listmem 0 1 "Memory leak detected"] } {
+       puts "No memory leak, $i iterations"
+       break
+    }
+}
diff --git a/tests/bugs/fclasses/bug7287_5 b/tests/bugs/fclasses/bug7287_5
new file mode 100755 (executable)
index 0000000..61140a4
--- /dev/null
@@ -0,0 +1,28 @@
+puts "============"
+puts "OCC7287"
+puts "============"
+puts ""
+######################################################
+# Problem of Memory Leak
+######################################################
+
+#
+# Result is not Null shape
+#
+
+set BugNumber OCC7287
+
+set NCycles 1000
+box b1 10 10 10 100 100 100
+box b2 50 50 50
+bop b1 b2
+
+for {set i 1} {${i} <= ${NCycles}} {incr i } {
+    bopfuse r
+
+    lappend listmem [expr [meminfo w] / 1024]
+    if { [checktrend $listmem 0 1 "Memory leak detected"] } {
+       puts "No memory leak, $i iterations"
+       break
+    }
+}
diff --git a/tests/bugs/fclasses/bug7287_6 b/tests/bugs/fclasses/bug7287_6
new file mode 100755 (executable)
index 0000000..4b409a1
--- /dev/null
@@ -0,0 +1,29 @@
+puts "============"
+puts "OCC7287"
+puts "============"
+puts ""
+######################################################
+# Problem of Memory Leak
+######################################################
+
+#
+# Result is not Null shape
+#
+
+set BugNumber OCC7287
+
+set NCycles 1000
+box b1 10 10 10 100 100 100
+box b2 50 50 50
+bop b1 b2
+
+for {set i 1} {${i} <= ${NCycles}} {incr i } {
+    bopsection r
+
+    lappend listmem [expr [meminfo w] / 1024]
+    if { [checktrend $listmem 0 1 "Memory leak detected"] } {
+       puts "No memory leak, $i iterations"
+       break
+    }
+}
+
diff --git a/tests/bugs/fclasses/bug7639 b/tests/bugs/fclasses/bug7639
new file mode 100755 (executable)
index 0000000..36af027
--- /dev/null
@@ -0,0 +1,27 @@
+puts "============"
+puts "OCC7639"
+puts "============"
+puts ""
+#######################################################################
+# NCollection_Vector works incorrectly with rare data
+#######################################################################
+
+pload QAcommands
+set BugNumber OCC7639
+
+set List [OCC7639 0 1 2 500 1 2]
+
+set Length [llength $List]
+if { ${Length} != 6} {
+    puts "Faulty (1) ${BugNumber}"
+} else {
+    if { [regexp "1" $List] != 1 } {
+       puts "Faulty (2) ${BugNumber}"
+    }
+    if { [regexp "2" $List] != 1 } {
+        puts "Faulty (3) ${BugNumber}"
+    }
+    if { [regexp "500" $List] != 1 } {
+       puts "Faulty (4) ${BugNumber}"
+    }
+}
diff --git a/tests/bugs/fclasses/bug902 b/tests/bugs/fclasses/bug902
new file mode 100755 (executable)
index 0000000..d12d79f
--- /dev/null
@@ -0,0 +1,33 @@
+puts "TODO OCC12345 ALL: OCC902 Faulty"
+
+puts "======="
+puts "OCC902"
+puts "======="
+puts ""
+###############
+## bad derivative
+###############
+
+pload QAcommands
+
+set arg 5
+set list [OCC902 $arg]
+
+set we_have [lindex $list 8]
+puts "we_have = $we_have"
+
+set must_be_1 "Exp($arg)*$arg"
+puts "must_be_1 = $must_be_1"
+set must_be_2 "$arg*Exp($arg)"
+puts "must_be_2 = $must_be_2"
+
+if  {[string compare $we_have $must_be_1] == 0} {
+  puts "OCC902 OK"
+} else {      
+  if { [string compare $we_have $must_be_2] == 0} { 
+    puts "OCC902 OK"
+  } else {
+    puts "OCC902 Faulty"
+  }     
+}
+
diff --git a/tests/bugs/fclasses/bug984 b/tests/bugs/fclasses/bug984
new file mode 100755 (executable)
index 0000000..d45dd94
--- /dev/null
@@ -0,0 +1,14 @@
+puts "================"
+puts "OCC984"
+puts "================"
+puts ""
+
+pload QAcommands
+
+set list [OCC984 [locate_data_file OCC984.xml]]
+
+if { [regexp "Document parsed" $list] == 1 } {
+    puts "OCC984: OK"
+} else {
+    puts "OCC984: Error"
+}
diff --git a/tests/bugs/fclasses/bug9848_1 b/tests/bugs/fclasses/bug9848_1
new file mode 100755 (executable)
index 0000000..182dc9c
--- /dev/null
@@ -0,0 +1,24 @@
+puts "============"
+puts "OCC9848"
+puts "============"
+puts ""
+#######################################################################
+# Specififying invalid name of unit produces exception.(for example tonne instead ton)
+#######################################################################
+
+set BugNumber OCC9848
+
+set UnitString "tonne/(mm*s**2)"
+
+set List ""
+set result ""
+
+if [catch { set List [unitparsing ${UnitString}] } result] {
+    if {  ${result} == "can not create a sentence\n"} {
+       puts "${BugNumber}: OK"
+    } else {
+       puts "${BugNumber}: Faulty (2)"
+    }
+} else {
+    puts "${BugNumber}: Faulty (1)"
+}
diff --git a/tests/bugs/fclasses/bug9848_2 b/tests/bugs/fclasses/bug9848_2
new file mode 100755 (executable)
index 0000000..1e43ea0
--- /dev/null
@@ -0,0 +1,25 @@
+puts "============"
+puts "OCC9848"
+puts "============"
+puts ""
+#######################################################################
+# Specififying invalid name of unit produces exception.(for example tonne instead ton)
+#######################################################################
+
+set BugNumber OCC9848
+
+set UnitString "ton/(m*s**2)"
+
+set List ""
+set result ""
+set GoodResult "Token word : (ton)/((m)*((s)**(2)))"
+
+if [catch { set List [unitparsing ${UnitString}] } result] {
+     puts "${BugNumber}: Faulty (1)"
+} else {
+    if {  ${List} == "${GoodResult}\n"} {
+       puts "${BugNumber}: OK"
+    } else {
+        puts "${BugNumber}: Faulty (2)"
+    }
+}
diff --git a/tests/bugs/fclasses/bug984_1 b/tests/bugs/fclasses/bug984_1
new file mode 100755 (executable)
index 0000000..f49c121
--- /dev/null
@@ -0,0 +1,18 @@
+puts "========"
+puts "OCC984"
+puts "========"
+puts ""
+####################################################
+## LDOM hangs-up attempting to read a file which contains a reference to "*dtd"file
+####################################################
+
+pload DCAF
+set BugNumber OCC984
+cpulimit 60
+
+# Open the document
+if { [catch { Open [locate_data_file OCC984.xml] D } aResult] != 0 } {
+    puts "Faulty ${BugNumber}"
+} else {
+    puts "OK ${BugNumber}"
+}
old mode 100644 (file)
new mode 100755 (executable)
index 04ff551..307354a
@@ -5,6 +5,6 @@ puts "========================"
 restore [locate_data_file buc60940.rle] a 
 
 fixshape result a 1e-7 1
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 1
old mode 100644 (file)
new mode 100755 (executable)
index 6d7f171..aaae282
@@ -7,7 +7,7 @@ checkshape a
 
 fixshape result a 1e-7
 
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 1
 
diff --git a/tests/bugs/heal/bug1642 b/tests/bugs/heal/bug1642
new file mode 100755 (executable)
index 0000000..61f99c5
--- /dev/null
@@ -0,0 +1,49 @@
+puts "========================"
+puts " OCC1642 "
+puts "========================"
+puts ""
+###########################################################
+puts " ShapeFix_Wire::FixSelfIntersectingEdge does not remove a loop"
+###########################################################
+
+pload QAcommands
+cpulimit 2000
+
+restore [locate_data_file OCC1642.brep] shape
+
+set list [OCC1642 result FinalFace InitWare InitFace shape FixReorder FixDegenerated FixConnected FixSelfIntersection]
+
+set FixSelfIntersection [string last "FixSelfIntersection" $list]
+set Intersectingpt [string last "Intersecting pt :" $list]
+
+puts "FixSelfIntersection=${FixSelfIntersection}"
+puts "Intersectingpt=${Intersectingpt}"
+if { ${Intersectingpt} == -1} {
+    puts "Warning: There are not intersecting points"
+}
+
+set list [lprops result]
+regexp {Mass +: +([-0-9.+eE]+)} $list full pcurve_length
+
+set good_pcurve_length 3880.52
+set percent_max 0.1
+set percent [expr abs(${pcurve_length} - ${good_pcurve_length}) / double(${good_pcurve_length}) * 100.]
+
+puts "good_pcurve_length = ${good_pcurve_length}"
+puts "pcurve_length = ${pcurve_length}"
+puts "percent = ${percent}"
+
+if {${percent} > ${percent_max}} {
+    puts "OCC1642 Faulty length: function FixShape works WRONGLY !!"
+} else {
+    puts "OCC1642 length: function FixShape works CORRECTLY"
+}
+
+if { ${Intersectingpt} > ${FixSelfIntersection} } {
+    puts "OCC1642 Faulty"
+} else {
+    puts "OCC1642 OK"
+}
+
+set 2dviewer 0
+
index 0905902d769e7530c844bfc0a1c2ff62fcd7d238..35ea3451386b26956f2e5e53cf4a8f1243c860c4 100755 (executable)
@@ -10,7 +10,7 @@ restore [locate_data_file OCC208.brep] a
 
 fixshape result a 0.01 0.01
 
-puts [checkshape result]
+checkshape result
 set 2dviewer 0
 
 
index 359d81d58e1c62b1597f01077bcffe0039b0271d..e5d8527dfc9ea1adaccddbb1cb1edfa1fdc13847 100755 (executable)
@@ -13,6 +13,6 @@ checkshape a_4
 fixshape result a 0.01 0.01
 explode result f
 
-puts [checkshape result_4]
+checkshape result_4
 set 2dviewer 1
 
diff --git a/tests/bugs/heal/bug210 b/tests/bugs/heal/bug210
new file mode 100755 (executable)
index 0000000..eb008a6
--- /dev/null
@@ -0,0 +1,24 @@
+puts "========="
+puts " OCC210 "
+puts "========="
+puts ""
+##################################################
+# Improve FixShape to correct case of touching wires
+##################################################
+
+pload XDE
+
+cpulimit 2500
+
+set BugNumber OCC210
+
+if [catch { stepread [locate_data_file UKI60591.stp] a * } result] {
+    puts "Faulty ${BugNumber}: here is reading problem"
+} else {
+    puts "Reading ${BugNumber} OK"
+    tpcompound r
+    fixshape result r
+    checkshape result
+}
+
+set 2dviewer 0
index 906bada86254a6912faa4b484dbcb171da23696a..a19c8c4d69f953363f8a7a9c7b73d9abd39de7f4 100755 (executable)
@@ -11,6 +11,6 @@ restore [locate_data_file OCC210b.brep] a
 
 fixshape result a 0.01 0.01
 
-puts [checkshape result]
+checkshape result
 set 2dviewer 1
 
diff --git a/tests/bugs/heal/bug22 b/tests/bugs/heal/bug22
new file mode 100755 (executable)
index 0000000..e8f08f0
--- /dev/null
@@ -0,0 +1,36 @@
+puts "======="
+puts "OCC22"
+puts "======="
+puts ""
+#####################################################################
+##Locations are not correctly processed by ShapeBuild_ReShape (and base class BRepTools_ReShape)
+#####################################################################
+
+pload QAcommands
+
+restore [locate_data_file OCC21.brep] shape
+explode shape f
+compound shape_1 shape_2 compoundToBeDivided
+
+# Case A of the bug is reproduced. Resulting shape must have 5 faces instead of 3
+
+if [catch { OCC22 result shape compoundToBeDivided 0 } ] {
+    puts "OCC22 ERROR; (case 1)"
+} else {
+    puts "OCC22 OK; (case 1)"
+}
+
+regexp {([-0-9.+eE]+)\s FACE} [statshape result] full nbFaces
+if {$nbFaces != 5} {
+    puts "OCC22 FAULTY: Initial shape was not splitted"
+}
+
+# Case B of the bug is reproduced. Result must be valid
+if [catch { OCC22 res shape compoundToBeDivided 1 } ] {
+    puts "OCC22 ERROR; (case 2)"
+} else {
+    puts "OCC22 OK; (case 2)"
+}
+
+set 2dviewer 0
+
index eea3fca1d68a490b7ca73a5582ac0e2703d11396..4e2baea625b2468ca12706bfc414f6b57d4f1743 100755 (executable)
@@ -10,7 +10,7 @@ puts ""
 
 restore [locate_data_file OCC329.brep] a 
 
-puts [checkshape a]
+checkshape a
 set tol1 [maxtolerance a]
 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full face1
 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full edge1
@@ -18,7 +18,7 @@ regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full vert1
 
 fixshape result a 1.e-7 0.1
 
-puts [checkshape result]
+checkshape result
 set tol2 [ maxtolerance result]
 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full face2
 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full edge2
index d7ef5ab82ce7e356b0cb73ad557dca512aa7bad4..e6f6b6d9ecd5d9ce3eeb5e37c9d849c2a33f8975 100755 (executable)
@@ -10,7 +10,7 @@ restore [locate_data_file OCC482.brep] a
 
 fixsmall result a 0.05
 
-puts [checkshape result]
+checkshape result
 set 2dviewer 1
 
 
diff --git a/tests/bugs/heal/bug518 b/tests/bugs/heal/bug518
new file mode 100755 (executable)
index 0000000..0ba3ff2
--- /dev/null
@@ -0,0 +1,18 @@
+puts "========"
+puts "OCC518"
+puts "========"
+puts ""
+################################
+## Checkshape reports problem in C40, none in DEV
+################################
+
+pload XDE
+
+restore [locate_data_file OCC518.brep] a
+
+fixshape result a .001 1.
+
+checkshape result
+
+set 2dviewer 0
+
diff --git a/tests/bugs/heal/bug884 b/tests/bugs/heal/bug884
new file mode 100755 (executable)
index 0000000..eb2e3ea
--- /dev/null
@@ -0,0 +1,40 @@
+puts "============"
+puts "OCC884"
+puts "============"
+puts ""
+###################################################
+## ShapeFix_Wire::FixSelfIntersection does not fix 3d curves on planes
+###################################################
+
+pload QAcommands
+
+restore [locate_data_file OCC884.brep] a
+
+OCC884 res a 1.1 1.1
+
+explode res e
+mkplane p res
+pcurve c2d res_1 p
+mkcurve c3d res_1
+
+set list_3 [length $c3d]
+set list_4 [length $c2d]
+
+# len2 is the length of 3d curve
+regexp {The length c3d is +([-0-9.+eE]+)} $list_3 full len2
+
+# len1 is the length of 2d curve
+regexp {The length c2d is +([-0-9.+eE]+)} $list_4 full len1
+
+set percent_max 0.1
+set percent [expr abs(${len2} - ${len1}) / double(${len1}) * 100.]
+
+puts "len1 = ${len1}"
+puts "len2 = ${len2}"
+puts "percent = ${percent}"
+
+if {${percent} > ${percent_max}} {
+  puts "OCC884: Error"
+} else {
+  puts "OCC884: OK"
+}
old mode 100644 (file)
new mode 100755 (executable)
index 47f52df..4ea9ec8
@@ -14,7 +14,7 @@ igesbrep [locate_data_file buc60591a.igs] a *
 
 tpcompound buc60591a
 
-puts [checkshape buc60591a r]
+checkshape buc60591a r
 
 ######################################################################
 
@@ -31,11 +31,11 @@ dall
 
 igesbrep  ${imagedir}/buc60591a_brep.igs a_brep_iges *
 tpcompound buc60591a_brep_iges
-puts [checkshape buc60591a_brep_iges]
+checkshape buc60591a_brep_iges
 
 igesbrep  ${imagedir}/buc60591a_iges.igs a_iges *
 tpcompound buc60591a_iges
-puts [checkshape buc60591a_iges]
+checkshape buc60591a_iges
 
 renamevar buc60591a_iges result
 
old mode 100644 (file)
new mode 100755 (executable)
index 05aedb1..a5dad57
@@ -13,7 +13,7 @@ igesbrep [locate_data_file buc60591b.igs] a *
 
 tpcompound buc60591b
 
-puts [checkshape buc60591b r]
+checkshape buc60591b r
 
 ######################################################################
 
@@ -30,11 +30,11 @@ dall
 
 igesbrep ${imagedir}/buc60591b_brep.igs b_brep_iges *
 tpcompound buc60591b_brep_iges
-puts [checkshape buc60591b_brep_iges]
+checkshape buc60591b_brep_iges
 
 igesbrep ${imagedir}/buc60591b_iges.igs b_iges *
 tpcompound buc60591b_iges
-puts [checkshape buc60591b_iges]
+checkshape buc60591b_iges
 
 renamevar buc60591b_iges result
 
old mode 100644 (file)
new mode 100755 (executable)
index 5afef3b..3d17511
@@ -12,7 +12,7 @@ puts "consideration of \"buc60591c\" model"
 igesbrep [locate_data_file buc60591c.igs] a *
 
 tpcompound buc60591c
-puts [checkshape buc60591c r]
+checkshape buc60591c r
 
 ######################################################################
 
@@ -29,11 +29,11 @@ dall
 
 igesbrep ${imagedir}/buc60591c_brep.igs c_brep_iges *
 tpcompound buc60591c_brep_iges
-puts [checkshape buc60591c_brep_iges]
+checkshape buc60591c_brep_iges
 
 igesbrep ${imagedir}/buc60591c_iges.igs c_iges *
 tpcompound buc60591c_iges
-puts [checkshape buc60591c_iges]
+checkshape buc60591c_iges
 
 renamevar  buc60591c_iges result
 
old mode 100644 (file)
new mode 100755 (executable)
index 6860b88..8aae3ab
@@ -11,7 +11,7 @@ puts "consideration of \"buc60591d\" model"
 igesbrep [locate_data_file buc60591d.igs] a *
 
 tpcompound buc60591d
-puts [checkshape buc60591d r]
+checkshape buc60591d r
 
 ######################################################################
 
@@ -28,11 +28,11 @@ dall
 
 igesbrep ${imagedir}/buc60591d_brep.igs d_brep_iges *
 tpcompound buc60591d_brep_iges
-puts [checkshape buc60591d_brep_iges]
+checkshape buc60591d_brep_iges
 
 igesbrep ${imagedir}/buc60591d_iges.igs d_iges *
 tpcompound buc60591d_iges
-puts [checkshape buc60591d_iges]
+checkshape buc60591d_iges
 
 renamevar  buc60591d_iges result
 
old mode 100644 (file)
new mode 100755 (executable)
index 54e7f12..a85ff0d
@@ -9,7 +9,7 @@ puts ""
 igesbrep [locate_data_file buc60594a.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 8a25734..eb85c1d
@@ -7,8 +7,8 @@ puts "========================"
 igesbrep [locate_data_file buc60610a.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
old mode 100644 (file)
new mode 100755 (executable)
index 37e49d3..292c782
@@ -10,7 +10,7 @@ cpulimit 1500
 set l [igesbrep [locate_data_file BUC60625-1.igs] a xst-transferrable-roots] 
 
 tpcompound result
-puts [checkshape result r]
+checkshape result r
 
 set start [lindex $l 60]
 set bug_list_numb [ llength $l ]
old mode 100644 (file)
new mode 100755 (executable)
index f32f8f8..8327db4
@@ -8,7 +8,7 @@ puts "=================================="
 set l [igesbrep [locate_data_file BUC60625-1.igs] a xst-transferrable-roots] 
 
 tpcompound res
-puts [checkshape res r]
+checkshape res r
 
 tcopy res result
 
index 195116e3c89081a3ef5efc55bda80d59bc154b99..073899d86e6766ad216e094879488dcb2d2a0d19 100755 (executable)
@@ -8,7 +8,7 @@ cpulimit 1500
 set l [igesbrep [locate_data_file buc60685a.igs] a xst-transferrable-roots] 
 
 tpcompound result
-puts [checkshape result r]
+checkshape result r
 
 regexp {List given by xst-transferrable-roots : Nb entities selected : +([-0-9+eE]+)} ${l} full start
 regexp {List given by xst-transferrable-roots : Nb entities selected : +([-0-9+eE]+)} ${l} full end
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index d6ccd82..9e0e9e3
@@ -5,7 +5,7 @@ puts "=========="
 igesbrep [locate_data_file buc40130.igs] a xst-transferrable-roots
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
index fa64f37..99a02a8
@@ -6,7 +6,7 @@ igesbrep [locate_data_file buc60820.igs] a *
 
 tpcompound result
 
-puts [checkshape result r]
+checkshape result r
 
 tclean result
 incmesh result 0.1
old mode 100644 (file)
new mode 100755 (executable)
index cb644f3..8920a04
@@ -5,7 +5,7 @@ puts "========================"
 igesbrep [locate_data_file buc60820.igs] a *
 
 tpcompound result
-puts [checkshape result r]
+checkshape result r
 
 tclean result
 vinit
old mode 100644 (file)
new mode 100755 (executable)
index 039531d..c699df5
@@ -13,8 +13,8 @@ puts "========================"
 igesbrep [locate_data_file buc60823.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 tclean result
 vinit
old mode 100644 (file)
new mode 100755 (executable)
index 3fbc4a3..98a0098
@@ -5,7 +5,7 @@ puts "==========="
 igesbrep [locate_data_file BUC60850.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 788453a..d7fd2f2
@@ -9,8 +9,8 @@ puts "==========="
 igesbrep [locate_data_file buc60949.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index e9e451874213b8ae9a8ddaf96c79bb27ea64a08e..9e072a8e7eaee949a514411dff43c1f1bba4f7a3 100755 (executable)
@@ -7,8 +7,8 @@ puts "========"
 igesbrep [locate_data_file OCC111a.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 072a9862fdc3bdce252c3850aef52903ffc7e905..2f683d0519d940f81d0935b779a37a757e265c67 100755 (executable)
@@ -7,8 +7,8 @@ puts "========"
 igesbrep [locate_data_file OCC111b.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 7d8ea867ff51ffcf6f5ae4311f1b20dcbda70c74..0e94610840cc711f586f789c97117200a294978f 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 igesbrep [locate_data_file OCC131-1.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index a91603e357fca35e857f985b4625c41aa6509db7..1516b99d809aa5bdae0bfa34836877b291675c3a 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file OCC131-2.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index b40f2cf20e4f4b3e32d86a650000f9cbe692e307..fc9249fede1edc9edfa77538bff2fcad44231fa4 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file OCC131-3.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index 0c2184c845e090aed135d8b2200fe93d8d17355c..ae090205e83b7e4facb380d0cd2ccabee52d28e8 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 igesbrep [locate_data_file OCC131-4.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index 6abd10903873ed40344288b2a781c8e1402c52c8..b20e4cee781367ac744fcb93bf65d4edf83e2e20 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file OCC131-5.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index a4c6e5dde9a48a59af36e6674a11a6e7a562d401..8ba7461a32ec792b626a1b15fa4d93fd2f3e2da0 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file OCC131-6.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index 03648f453ad6585648c9144f9a5b9743cb96ace0..40ba7244e3f960c2c962c133a04a36ccfd7c9bc2 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file OCC131-7.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index ff6dfd58d23cd256324149ed4e9146df188cb10e..a185355c1d96cf684a32dd81aa3061546ae2b12b 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 igesbrep [locate_data_file OCC131-8.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index d399d3d3b155804df1772a1118ccd37097b0a690..d4575d081a8d3e88b0df49bbba6175061aeb7ecc 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 igesbrep [locate_data_file igsBF5.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index e4474e99de3da7e45a0b277300e1f26e28b595f9..4218d4539ce2cef46108fac468d9488e1eb3f295 100755 (executable)
@@ -12,8 +12,8 @@ puts ""
 igesbrep [locate_data_file Cover.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 2dbee07275d1e34f3d8feed4903e24a276dd97ea..ef0fa98e7a256e98763a3f267b9ceee9aa547a23 100755 (executable)
@@ -11,8 +11,8 @@ puts "========================"
 igesbrep [locate_data_file Case.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index ab0dfaca54dfa8f59066a9bec8a2c19708f4b0b4..0bb5ce47f63be68257ce66eab71e71bb4aa60cc9 100755 (executable)
@@ -14,8 +14,8 @@ cpulimit 3000
 igesbrep [locate_data_file igsBF1.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 3c8f876efa5ed12e13d1963c171cc4f295a80462..4d488d571fe8efcd33fcf18fe31ab35d0977d50a 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 igesbrep [locate_data_file Rich.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 7522d716a302470d71849f983a307c1b3471c774..a944e00bcf2dbabba1fdb5c1c6ea36c03d36ff79 100755 (executable)
@@ -9,8 +9,8 @@ puts ""
 igesbrep [locate_data_file OCC201.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 5a9aecaba153472f495a3d98dca922b929f7ec3d..8c0b08c7fb9874ff6d722209b16520ab28b302a2 100755 (executable)
@@ -5,8 +5,8 @@ puts "========"
 igesbrep [locate_data_file 919-001-T02-04-CP-VL.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 if { [llength [whatis result]] == 3 } {
     puts "Error : There is no result"
index 01b916cc33472bb5b3bd566e884c0a15815cb904..0e0508c31bce13f4d9cbc12575da709cb26952f3 100755 (executable)
@@ -5,8 +5,8 @@ puts "========"
 igesbrep [locate_data_file 919-001-T02-04-FT-VL.igs] a * 
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 if { [llength [whatis result]] == 3 } {
     puts "Error : There is no result"
index 7886471f7c31421d1c516dee7c428cb27c604403..66c7815c314bf5beb80b40e1cf0b51b1223fa14e 100755 (executable)
@@ -5,8 +5,8 @@ puts "========"
 igesbrep [locate_data_file 919-004-T02-01-FT-VL.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 if { [llength [whatis result]] == 3 } {
     puts "Error : There is no result"
index 2fdc0cdcca09c98e5a88008ec8f7a84eff34cc1d..9973a43cf16c823198f0654e6b983c21aba90640 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file BUC50030.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index e77d0e81ed566a843ad73942d7a4aa440bf47417..fe126e02c3200b28757d33520773d0ec55cbd323 100755 (executable)
@@ -5,8 +5,8 @@ puts "========"
 igesbrep [locate_data_file OCC285.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 1995795f68d7c21364d4cbce741457f4ed113d1b..7e505aca0425389b656450c3353a7cf7354fed11 100755 (executable)
@@ -13,7 +13,7 @@ tclean a
 
 sewing result a
 
-puts [checkshape result]
+checkshape result
 
 vinit
 vsetdispmode result 1
index 0c514ddd6e8203190f143b7ed5fe474e823d070f..fab0839959317e0e60cac89c7e7d2265e7336781 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file BUC61004-1.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index bd57997482dc2607cee9120c1c3b3e4bfc41bf35..c2a775d7256f594ecdb0c876c42b4ab830b66e39 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file BUC61004-2.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index 7046bb15b9c3ac77369631db1f627e75dec7246a..c3741b682fcec80b561a8e1a14ed2ea91cc850d6 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file BUC61004-3.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index 882fd5069ff21071e46632ba9f702b1b9f5b541b..4434aa7a3c41820a7ee3bd36f579ef3c5d38e26e 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 igesbrep [locate_data_file BUC61004-4.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index 8a533fe35357876c5649996bab424a0fe3d029f3..18d1db66b0e88ee71d0ef46e0b183501576ad078 100755 (executable)
@@ -9,8 +9,8 @@ puts ""
 igesbrep [locate_data_file So5571b.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
diff --git a/tests/bugs/iges/bug514 b/tests/bugs/iges/bug514
new file mode 100755 (executable)
index 0000000..209f6da
--- /dev/null
@@ -0,0 +1,13 @@
+puts "========"
+puts "OCC514"
+puts "========"
+
+igesbrep [locate_data_file OCC514a.igs] a *
+
+tpcompound result
+
+checkshape result
+checkshape result r
+
+set 2dviewer 0
+
index 1080b54fbefdd77055391825bccd10dbd4c5f8b1..b1bd700f08953a703f36ce88bf05642f2ba7cdf2 100755 (executable)
@@ -9,8 +9,8 @@ puts ""
 igesbrep [locate_data_file OCC58a.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 3a4c159c91d035f972b4eddd43363148aa4606d3..bfad546aabfd1d379dde34e3ff116383e86d7385 100755 (executable)
@@ -11,8 +11,8 @@ cpulimit 3000
 igesbrep [locate_data_file OCC58b.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 82c830217c7f3c0e1f19c2284986aa7b5b7194dc..26d2244ea2b647119b939418748d10e028760aad 100755 (executable)
@@ -11,8 +11,8 @@ cpulimit 3000
 igesbrep [locate_data_file OCC58c.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
diff --git a/tests/bugs/iges/bug700 b/tests/bugs/iges/bug700
new file mode 100755 (executable)
index 0000000..381a1b3
--- /dev/null
@@ -0,0 +1,25 @@
+puts "TODO OCC12345 ALL: An exception was caught"
+puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+puts "TODO OCC12345 ALL: Faulty OCC700"
+
+puts "======="
+puts "OCC700"
+puts "======="
+puts ""
+##########################################################
+## The attached file calnnot be read with OCC4.0, while read successfully with OCC3.0
+##########################################################
+
+if [ catch {igesbrep [locate_data_file OCC700.igs]} res ] {
+    puts "Faulty OCC700"
+} else {
+    set index [lsearch $res Faulty]
+    set index1 [lsearch $res error.]
+    if {$index > -1 || $index1 > -1} {
+        puts "Faulty OCC700"
+    } else {
+          puts "OCC700 OK"
+    }
+}
+
+
index 3f092b03df434800057863ae9d4ce23391167ed4..c68cc2a1e62574cfecfa0603e9ee9dc95f5be85b 100755 (executable)
@@ -10,8 +10,8 @@ puts "========================"
 igesbrep [locate_data_file BUC60800.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 584022a..7895cce
@@ -7,8 +7,8 @@ cpulimit 3000
 igesbrep [locate_data_file ger61337a.igs] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
index 2bb293b5b538244e5119057db2c186e28079afd1..769221ae43f15d5d36e1101dbbb41353990e1c1c 100755 (executable)
@@ -17,7 +17,7 @@ if { [string compare ${TheFileName} ""] != 0 } {
     }
 }
 
-puts [checkshape res]
+checkshape res
 
 tclean res
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index faa1e299dddf28cb8ed5cfd04ccc2ad720a0461b..bb20c30538b053eceb1791a3b9f431e839a972e3 100755 (executable)
@@ -8,9 +8,9 @@ puts "Section"
 puts ""
 
 restore [locate_data_file buc60462a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60462b.brep] b
-puts [checkshape b]
+checkshape b
 bsection result a b
 
 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection result] full cs
index c3a7fe1432450333a433a3120b99ec425078920e..32b9d90abb9b1ef769cc59e6cb5509f1cfac2e47 100755 (executable)
@@ -8,9 +8,9 @@ puts "BUC60462"
 puts "=========="
 
 restore [locate_data_file buc60462c.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60462d.brep] b
-puts [checkshape b]
+checkshape b
 puts "Fuse begin"
 bfuse result a b
 puts "Fuse end"
index 7a1fbd67ad077ad2a5e8da6eedbc82ad6044ccc9..3980770778a539c3bd41b22ddf9134beb7865184 100755 (executable)
@@ -8,9 +8,9 @@ puts "Section"
 puts ""
 cpulimit 1400
 restore [locate_data_file buc60463a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60463b.brep] b
-puts [checkshape b]
+checkshape b
 bsection result a b
 
 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection result] full cs
old mode 100644 (file)
new mode 100755 (executable)
index 9a24899..a1d1cb2
@@ -4,7 +4,7 @@ puts "BUC60523"
 puts "========================"
 
 restore [locate_data_file buc60523a.brep] a
-puts [checkshape a]
+checkshape a
 sewing result 1.e-7 a
 set square 156.919
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
index 4a8870f..6bc69bb
@@ -4,9 +4,9 @@ puts "BUC60531"
 puts "========================"
 
 restore [locate_data_file buc60531a.brep] r1
-puts [checkshape r1]
+checkshape r1
 restore [locate_data_file buc60531b.brep] pl1
-puts [checkshape pl1]
+checkshape pl1
 
 bcut result r1 pl1
 
old mode 100644 (file)
new mode 100755 (executable)
index ac3d913..c4e9dc3
@@ -4,16 +4,16 @@ puts "BUC60531"
 puts "========================"
 
 restore [locate_data_file buc60531a.brep] r1
-puts [checkshape r1]
+checkshape r1
 
 restore [locate_data_file buc60531b.brep] pl1
-puts [checkshape pl1]
+checkshape pl1
 
 bcut r2 r1 pl1
-puts [checkshape r2]
+checkshape r2
 
 restore [locate_data_file buc60531c.brep] pl2
-puts [checkshape pl2]
+checkshape pl2
 
 bcut result r2 pl2
 
old mode 100644 (file)
new mode 100755 (executable)
index b1f28cd..936a35b
@@ -3,13 +3,13 @@ puts "BUC60532"
 puts "==========="
 
 restore [locate_data_file buc60532a.brep] p 
-puts [checkshape p]
+checkshape p
 
 restore [locate_data_file buc60532b.brep] t1
-puts [checkshape t1]
+checkshape t1
 
 restore [locate_data_file buc60532c.brep] t2
-puts [checkshape t2]
+checkshape t2
 
 # create halfspace
 halfspace h1 t1 20 20 0
old mode 100644 (file)
new mode 100755 (executable)
index 0ba7b8e..be2eeff
@@ -3,13 +3,13 @@ puts "BUC60532"
 puts "==========="
 
 restore [locate_data_file buc60532a.brep] p 
-puts [checkshape p]
+checkshape p
 
 restore [locate_data_file buc60532b.brep] t1
-puts [checkshape t1]
+checkshape t1
 
 restore [locate_data_file buc60532c.brep] t2
-puts [checkshape t2]
+checkshape t2
 
 # create halfspace
 halfspace h1 t1 20 20 0
old mode 100644 (file)
new mode 100755 (executable)
index 1e288a3..9d2b373
@@ -3,13 +3,13 @@ puts "BUC60532"
 puts "=========="
 
 restore [locate_data_file buc60532a.brep] p 
-puts [checkshape p]
+checkshape p
 
 restore [locate_data_file buc60532b.brep] t1
-puts [checkshape t1]
+checkshape t1
 
 restore [locate_data_file buc60532c.brep] t2
-puts [checkshape t2]
+checkshape t2
 
 # create halfspace
 #vertex v 20 20 0
@@ -26,13 +26,13 @@ mkcurve cu13 res1_3
 mkcurve cu14 res1_4
 mkcurve cu15 res1_5
 
-puts [checkshape res1]
+checkshape res1
 puts [computetolerance res1]
 
 # second cut
 bcut res2 res1 h2
 tcopy res2 res
-puts [checkshape res2]
+checkshape res2
 
 explode res2 e
 mkcurve cu21 res2_1
old mode 100644 (file)
new mode 100755 (executable)
index df2d543..8af0357
@@ -3,12 +3,12 @@ puts "BUC60533"
 puts "=========="
 
 restore [locate_data_file buc60533a.brep] part 
-puts [checkshape part]
+checkshape part
 #puts "Tolerance part"
 #computetolerance part
 
 restore [locate_data_file buc60533b.brep] trTool
-puts [checkshape trTool]
+checkshape trTool
 #puts "Tolerance trTool"
 #computetolerance trTool
 
old mode 100644 (file)
new mode 100755 (executable)
index 9fb6561..0f0ba0f
@@ -5,13 +5,13 @@ puts "==========="
 #cpulim add aki 070704
 cpulimit 1600
 restore [locate_data_file buc60555a.brep] part 
-puts [checkshape part]
+checkshape part
 restore [locate_data_file buc60555b.brep] trTool1
-puts [checkshape trTool1]
+checkshape trTool1
 halfspace hs1 trTool1 20000 10000 0
 bcut cut1 part hs1
 
-puts [checkshape cut1]
+checkshape cut1
 
 tcopy cut1 result
 
index 11a7c0bd10899fcafcef5bf0382994d28381a0a4..7e55c72f3f0078c4c8a8ddc155460c533dc896d6 100755 (executable)
@@ -4,13 +4,13 @@ puts "CUT Case2"
 puts "============="
 cpulimit 1400
 restore [locate_data_file buc60555a.brep] part 
-puts [checkshape part]
+checkshape part
 restore [locate_data_file buc60555b.brep] trTool1
-puts [checkshape trTool1]
+checkshape trTool1
 
 halfspace hs1 trTool1 20000 10000 0
 bcut cut1 part hs1
-puts [checkshape cut1]
+checkshape cut1
 
 set che [checkshape cut1 r]
 if { [regexp {OK} $che] != 1 } {
@@ -40,7 +40,7 @@ if { [regexp {OK} $che] != 1 } {
     puts "Checking by checkshape - OK"
 }
 
-puts [checkshape cut2]
+checkshape cut2
 set tolerance [ maxtolerance cut2 ]
 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
 regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
index 7552a71cf77116f099cebfa2512a2bd61a73bae8..eee1c97b3faf077a81f1f3f9a0dfff3c04013513 100755 (executable)
@@ -4,13 +4,13 @@ puts "CUT Case 3"
 puts "=============="
 cpulimit 5000
 restore [locate_data_file buc60555a.brep] part 
-puts [checkshape part]
+checkshape part
 restore [locate_data_file buc60555b.brep] trTool1
-puts [checkshape trTool1]
+checkshape trTool1
 
 halfspace hs1 trTool1 20000 10000 0
 bcut cut1 part hs1
-puts [checkshape cut1]
+checkshape cut1
 
 set che [checkshape cut1 r]
 if { [regexp {OK} $che] != 1 } {
@@ -24,7 +24,7 @@ maxtolerance cut1
 restore [locate_data_file buc60555c.brep] trTool2
 halfspace hs2 trTool2 10000 10000 0
 bcut cut2 cut1 hs2
-puts [checkshape cut2]
+checkshape cut2
 
 set che [checkshape cut2 r]
 if { [regexp {OK} $che] != 1 } {
@@ -54,7 +54,7 @@ if { [regexp {OK} $che] != 1 } {
     puts "Checking by checkshape - OK"
 }
 
-puts [checkshape cut3 ]
+checkshape cut3 
 
 set tolerance [ maxtolerance cut3 ]
 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
index e9bfd3606d8f97df62de3a6085aa18c24aaf7a7f..76fbd9590a4b958b2106a7e76cad4201c476ac8e 100755 (executable)
@@ -4,7 +4,7 @@ puts "BUC60585"
 puts "========================"
 
 restore [locate_data_file buc60585a.brep] s
-puts [checkshape s]
+checkshape s
 plane ps 2036.25  -97.5  -1460.499755859375 0.0  -0.75103523489975432  -0.66026212668838646 1.0 0.0 0.0
 
 psection result s ps
old mode 100644 (file)
new mode 100755 (executable)
index 2647039..d37af3d
@@ -4,7 +4,7 @@ puts "BUC60585"
 puts "========================"
 
 restore [locate_data_file buc60585b.brep] t
-puts [checkshape t]
+checkshape t
 plane pt 2036.25  -97.5  -1460.499755859375  0.0  -1.0  0.0 1.0 0.0 0.0
 
 psection result t pt
old mode 100644 (file)
new mode 100755 (executable)
index be68670..35906ca
@@ -4,9 +4,9 @@ puts "BUC60623"
 puts "========================"
 
 restore [locate_data_file buc60623a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60623b.brep] b
-puts [checkshape b]
+checkshape b
 
 bsection result a b
 
old mode 100644 (file)
new mode 100755 (executable)
index 501aba6..25d0b27
@@ -4,9 +4,9 @@ puts "BUC60623"
 puts "========================"
 
 restore [locate_data_file buc60623a.brep]  a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60623b.brep] b
-puts [checkshape b]
+checkshape b
 
 bsection result b a
 # checksection res
old mode 100644 (file)
new mode 100755 (executable)
index d33331f..c477cdb
@@ -4,7 +4,7 @@ puts "BUC60635"
 puts "============="
 
 restore [locate_data_file buc60635a.brep] a 
-puts [checkshape a]
+checkshape a
 
 mkplane result a
 
index 8cf1ac658b9d547355c5f9647eda5ba2fe46fa88..313cc938cf1e828748aea526626874c0a6ae03fa 100755 (executable)
@@ -5,7 +5,7 @@ puts "=========="
 puts ""
 
 restore [locate_data_file buc60649a.brep] a 
-puts [checkshape a]
+checkshape a
 
 set che [checkshape a rr]
 if { [regexp {OK} $che] != 1 } {
old mode 100644 (file)
new mode 100755 (executable)
index b688dca..2cf7b73
@@ -8,9 +8,9 @@ puts "====================================="
 puts ""
 
 restore [locate_data_file buc60663a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60663b.brep] b
-puts [checkshape b]
+checkshape b
 
 bsection result a b
 
index e6a0c9cd2201533737444c297abd6122e09d6427..3bf367be9f78d945d69aa5e0b13d492c5044b810 100755 (executable)
@@ -10,9 +10,9 @@ puts "====================================="
 puts ""
 
 restore [locate_data_file buc60663a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60663b.brep] b
-puts [checkshape b]
+checkshape b
 
 bsection result a b
 
old mode 100644 (file)
new mode 100755 (executable)
index 1e09f79488373bf2e37c8d8f99e380a8edb7d2d8..ef4feb62a58191bd34a9870561bdb5e1f6a297f3 100755 (executable)
@@ -10,9 +10,9 @@ puts ""
 #############################################################
 
 restore [locate_data_file buc60669a.brep] shell1 
-puts [checkshape shell1]
+checkshape shell1
 restore [locate_data_file buc60669b.brep] shell2
-puts [checkshape shell2]
+checkshape shell2
 
 ksection result shell1 shell2 1000 0.0001 0.00001 0 
 
old mode 100644 (file)
new mode 100755 (executable)
index 72663b9..487dc77
@@ -4,7 +4,7 @@ puts "BUC60684"
 puts "============="
 
 restore [locate_data_file buc60684a.brep] w 
-puts [checkshape w]
+checkshape w
 
 prism result w 0 0 10
 
index d03204630bae0d0048dcb15ec7bf76fc5ea1efad..d213ff1b84e9e8443117b0b83a270cc30a874841 100755 (executable)
@@ -17,10 +17,10 @@ puts "================================="
 
 restore [locate_data_file buc60703a.brep] a 
 # maxtolerance a
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60703b.brep] b
 # maxtolerance b
-puts [checkshape b]
+checkshape b
 
 if [catch {bfuse result a b } catch_result] {
     puts "Faulty  BUC60703: here is problem with FUSE operation"
old mode 100644 (file)
new mode 100755 (executable)
index b2976f4..a8a4b77
@@ -10,10 +10,10 @@ puts ""
 ############################################
 
 restore [locate_data_file buc60703c.brep] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file buc60703e.brep] b
-puts [checkshape b]
+checkshape b
 
 
 if [catch {bfuse result a b } catch_result] {
old mode 100644 (file)
new mode 100755 (executable)
index 1e1578a..fc773b6
@@ -5,10 +5,10 @@ puts "========================"
 
 restore [locate_data_file buc60703e.brep] a 
 #maxtolerance a
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60703d.brep] b
 #maxtolerance b
-puts [checkshape b]
+checkshape b
 
 if [catch {bfuse result a b } catch_result] {
     puts "Faulty  BUC60703: here is problem with FUSE operation"
old mode 100644 (file)
new mode 100755 (executable)
index ec7ad8f..32f0064
@@ -9,10 +9,10 @@ puts ""
 
 restore [locate_data_file buc60703d.brep] a 
 #maxtolerance a
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60703f.brep] b
 #maxtolerance b
-puts [checkshape b]
+checkshape b
 
 if [catch {bfuse result a b } catch_result] {
     puts "Faulty  BUC60703: here is problem with FUSE operation"
old mode 100644 (file)
new mode 100755 (executable)
index 5757e01..85a5fed
@@ -5,9 +5,9 @@ puts "BUC60709"
 puts "========================"
 
 restore [locate_data_file buc60704a.brep] p 
-puts [checkshape p]
+checkshape p
 restore [locate_data_file buc60704b.brep] s
-puts [checkshape s]
+checkshape s
 
 bfuse result p s
 
index f92c5813938902a29886807264e1cd42daaeddab..906f3937789b34979589d06fd9632a68f755242d 100755 (executable)
@@ -4,9 +4,9 @@ puts "BUC60708"
 puts "==========="
 
 restore [locate_data_file buc60708a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60708b.brep] b
-puts [checkshape b]
+checkshape b
 
 bcommon result a b
 
index 4e47b77e412b97b271c8d992ca95e72a87744767..dfe87f1ddbef3640e6f0cb7e84cf572cd4e69edd 100755 (executable)
@@ -16,10 +16,10 @@ puts "=================================="
 #  The Case chl/902/F3 should be removed or rewritten:
 
 restore [locate_data_file buc60712a.brep] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file buc60712b.brep] b
-puts [checkshape b]
+checkshape b
 
 # Recompute "a" shape
 explode a f
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index b844711..278e19f
@@ -10,8 +10,8 @@ puts ""
 restore [locate_data_file buc60728a.brep] s1 
 restore [locate_data_file buc60728b.brep] s2
 build3d s1
-puts [checkshape s1]
-puts [checkshape s2]
+checkshape s1
+checkshape s2
 
 bsection result s1 s2
 
old mode 100644 (file)
new mode 100755 (executable)
index 275a0c7..1083077
@@ -4,9 +4,9 @@ puts "BUC60776"
 puts "========================"
 
 restore [locate_data_file buc60776a.brep] a
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60776b.brep] b
-puts [checkshape b]
+checkshape b
 bfuse result a b
 
 set square 60771.3
old mode 100644 (file)
new mode 100755 (executable)
index ba3caef..a8e30d8
@@ -4,9 +4,9 @@ puts "BUC60776"
 puts "========================"
 
 restore [locate_data_file buc60776c.brep] a
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60776d.brep] b
-puts [checkshape b]
+checkshape b
 bsection result a b
 
 set length 111.405
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index e7fd3c933067b33d64d66c1ccc8ea788a6eccb6b..527904acba679c7895bab7b4abaaa83110669e52 100755 (executable)
@@ -10,9 +10,9 @@ puts "========"
 #restore Common_Solid_Case2.brep S2
 
 restore [locate_data_file buc60787a.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file buc60787b.brep] S2
-puts [checkshape S1]
+checkshape S1
 
 bcommon result S1 S2
 
index e65731c2311721c33af392faef826dabd78109f2..48e5ec78e1fa5e9866621741dd3cf83083bb9f51 100755 (executable)
@@ -10,9 +10,9 @@ puts "========"
 #restore Cut_Solid_Case2.brep S2
 
 restore [locate_data_file buc60787c.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file buc60787d.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bcut result S1 S2
 
old mode 100644 (file)
new mode 100755 (executable)
index 51f088d..bc6ba4b
@@ -8,9 +8,9 @@ puts "============"
 #restore Intersection_Shell2_Case1.brep S2
 
 restore [locate_data_file buc60788a.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file buc60788b.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bsection result S1 S2
 
index 8380af764fa4c0adac0ffb78a5820c753c0612b8..5b9c8ff92cefc03f43dd1c956c830f40129f7b1f 100755 (executable)
@@ -10,9 +10,9 @@ puts "========"
 #restore Cut_Solid_Case2.brep S2
 
 restore [locate_data_file buc60788e.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file buc60787d.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bcut result S1 S2
 
index 3b8085c05b44cbec8f07922d455b21230e39817a..dbf3fd88dd7d059d3de059a326a05a9dd973ea8f 100755 (executable)
@@ -10,9 +10,9 @@ puts "========"
 #restore Common_Solid_Case2.brep S2
 
 restore [locate_data_file buc60788c.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file buc60787b.brep] S2
-puts [checkshape S1]
+checkshape S1
 
 bcommon result S1 S2
 
index 59aa0cd380658aa7df6124f683017916c23e7eee..6cd08871ed406a6794b96461a3f2a6f76eceb1a2 100755 (executable)
@@ -7,9 +7,9 @@ puts ""
 #restore buc60789a.brep S1
 restore [locate_data_file buc60787b.brep] S1 
 ### (by apn during classification)
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file buc60789b.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bcommon result S1 S2
 
index eee4f3921a84f8d980cbdb09b80a3775156bd243..8ae8dde94e7d357b07ca74181282e448016bdc35 100755 (executable)
@@ -7,9 +7,9 @@ puts ""
 #restore buc60789c.brep S1
 ##by apn
 restore [locate_data_file buc60787b.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file buc60789d.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bcut result S2 S1
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index d97749a..78d4822
@@ -4,9 +4,9 @@ puts "BUC60803"
 puts "========================"
 
 restore [locate_data_file buc60803a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60803b.brep] b
-puts [checkshape b]
+checkshape b
 
 bfuse result a b
 
index 893aaf595b9ce02f58050595e7f9a6328a5afdc8..690d68b126aab8933e5e020a0d5ba8cbdf9a4783 100755 (executable)
@@ -7,11 +7,11 @@ puts "========================"
                                                                       
 #restore Model2-a.brep a
 restore [locate_data_file BUC60826a.brep] a 
-puts [checkshape a]
+checkshape a
 
 # restore Model2-b.brep b
 restore [locate_data_file BUC60826b.brep] b
-puts [checkshape b]
+checkshape b
 
 bsection result a b
 
index 1ef45baf528724d78b0d5db34c475472c0738b09..d0b5e69dcf42a4978c52d79bfc4471a83dc8452b 100755 (executable)
@@ -4,7 +4,7 @@ puts "BUC60829"
 puts "============="
 
 restore [locate_data_file BUC60830-face2.brep] f
-puts [checkshape f]
+checkshape f
 
 set che [checkshape f rr]
 if { [regexp {OK} $che] != 1 } {
old mode 100644 (file)
new mode 100755 (executable)
index a76ba5b..cad2dbf
@@ -5,9 +5,9 @@ puts "============"
 puts ""                                                                                                                                                                        
 
 restore [locate_data_file BUC60839-1.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file BUC60839-2.brep] b
-puts [checkshape b]
+checkshape b
 
 puts "Starting fuse operation"
 
old mode 100644 (file)
new mode 100755 (executable)
index a619046..b12cccc
@@ -4,9 +4,9 @@ puts "BUC60841"
 puts "========"
 
 restore [locate_data_file buc60841a.brep] sh1
-puts [checkshape sh1]
+checkshape sh1
 restore [locate_data_file buc60841b.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 
 bfuse result sh1 sh2
 
old mode 100644 (file)
new mode 100755 (executable)
index 2cdd50d..cf84ffe
@@ -5,7 +5,7 @@ puts "============"
 puts ""
 
 restore [locate_data_file BUC60849.brep] result
-puts [checkshape result]
+checkshape result
 
 set bndb [ lindex [bounding result] 3 ]
 
index 60ddd3050596793e02ef5e79625d504842f4d59a..e40cc1c55cef9413d1d723277578fe9dca63e7a2 100755 (executable)
@@ -13,8 +13,8 @@ puts ""
 
 restore [locate_data_file BUC60853_face.brep] face 
 restore [locate_data_file BUC60853_plane.brep] plane
-puts [checkshape face]
-puts [checkshape plane]
+checkshape face
+checkshape plane
 
 bsection result face plane -a
 
old mode 100644 (file)
new mode 100755 (executable)
index 00cb07d..acdf0d8
@@ -9,7 +9,7 @@ puts ""
 ##########################
 
 restore [locate_data_file BUC60865_sh6.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 plane pl 1.1 0.99999 1 0 1 0
 mkface f pl
index 68c7987224753c751fc56c99c462b4a2cd137fa4..c5fe7f474099ae848544e74ec59b9acd09f4f3c9 100755 (executable)
@@ -9,7 +9,7 @@ puts "============="
 #checkshape res
 
 restore [locate_data_file BUC60878-wire1.brep] a 
-puts [checkshape a]
+checkshape a
 
 set che [checkshape a rr]
 if { [regexp {OK} $che] != 1 } {
index fe21133d21b8cd5802eba83f9da473a2e1d9f0aa..f68c06d12d4c46f4d88f0a7c3dd247018feec1e0 100755 (executable)
@@ -9,7 +9,7 @@ puts "============="
 #checkshape res
 
 restore [locate_data_file BUC60878-wire3.brep] a 
-puts [checkshape a]
+checkshape a
 
 set che [checkshape a rr]
 if { [regexp {OK} $che] != 1 } {
index f51378ebb71dfd1d44a2a061144754ea51c21215..a67e88e0e82c817afe9cd30a3a5a3c20fbd56403 100755 (executable)
@@ -9,7 +9,7 @@ puts "============="
 #checkshape res
 
 restore [locate_data_file BUC60878-wire5.brep] a 
-puts [checkshape a]
+checkshape a
 
 set che [checkshape a rr]
 if { [regexp {OK} $che] != 1 } {
index 42e3529fe951b84c440123daa7716750ab6cc461..e488e343ed4bfe6aa3176956643ed09611136c3c 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ##########################################
 
 restore [locate_data_file BUC60880_sec_error2.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 plane pl 65000 19000 2600 1 0 0
 mkface f pl
old mode 100644 (file)
new mode 100755 (executable)
index 3330cf4..0c4a2f7
@@ -6,8 +6,8 @@ puts ""
 
 restore [locate_data_file BUC60881.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_1]
+checkshape a_1
+checkshape a_1
 
 bfuse result a_1 a_2
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 028506f46966dd58d3c8e8907f2ed4df2f2106cf..81374aafea8bea21a7ddc159788032c433d5b722 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 #############################
 
 restore [locate_data_file BUC60907_px1.rle] sh 
-puts [checkshape sh]
+checkshape sh
 
 line l 40 0 5 0 1 0
 mkedge e l
index 48ee24c769f5aea20f0daba083391673db4e88e5..d5f8bfcc6bb39ab24e06dc8a9146e166b053ef7d 100755 (executable)
@@ -9,10 +9,10 @@ puts ""
 ######################################################################
 
 restore [locate_data_file shading_132.brep] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file BUC60926-2.brep] b
-puts [checkshape b]
+checkshape b
 
 bfuse result a b
 
old mode 100644 (file)
new mode 100755 (executable)
index abf92db..2e32acc
@@ -6,8 +6,8 @@ puts "============"
 restore [locate_data_file BUC60927.brep] a 
 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_2 a_1
 
old mode 100644 (file)
new mode 100755 (executable)
index b25473f..80d4a4d
@@ -9,8 +9,8 @@ puts ""
 
 restore [locate_data_file BUC60930_splitshape.brep] c 
 explode c
-puts [checkshape c_1]
-puts [checkshape c_2]
+checkshape c_1
+checkshape c_2
 
 renamevar c_1 f
 renamevar c_2 e
old mode 100644 (file)
new mode 100755 (executable)
index c0ced12..5a6fff9
@@ -4,7 +4,7 @@ puts "BUC60934"
 puts "============"
 
 restore [locate_data_file BUC60934.brep] a 
-puts [checkshape a]
+checkshape a
 
 mkplane result a
 
old mode 100644 (file)
new mode 100755 (executable)
index ad645da..4cbddcd
@@ -8,8 +8,8 @@ puts "============"
 
 restore [locate_data_file BUC60942_splitshape.brep] c 
 explode c
-puts [checkshape c_1]
-puts [checkshape c_2]
+checkshape c_1
+checkshape c_2
 
 renamevar c_1 f
 renamevar c_2 w
index 6815b2822ac7326008d1e0c7415ba062b90128de..4981868ff0943e97979f975c32568c2623266302 100755 (executable)
@@ -5,8 +5,8 @@ puts "============"
 
 restore [locate_data_file BUC60946_prism.brep] c 
 explode c
-puts [checkshape c_1]
-puts [checkshape c_2]
+checkshape c_1
+checkshape c_2
 
 renamevar c_1 sh
 renamevar c_2 pr
old mode 100644 (file)
new mode 100755 (executable)
index fc2502f..b296845
@@ -7,8 +7,8 @@ puts ""
 
 restore [locate_data_file buc60971.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_2 a_3
 set square 93698.1
index 59fe558941deb9c1df3a4d294c1feb79610c0887..3a7fed6c16f92cc514a799e8079664ce2f393a67 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 ########################################
 
 restore [locate_data_file OCC100_sp.brep] sh1 
-puts [checkshape sh1]
+checkshape sh1
 
 restore [locate_data_file OCC100_cyl.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 
 #OCC100 : on WNT result is crushed when we make the next command:
 
index 3abf8be6eefb0ee9dd8385a3faa97e49f413ed0c..00d25aa261d2c4e69628d3f1980e28f8040e60cd 100755 (executable)
@@ -9,9 +9,9 @@ puts ""
 ##  After restore c shell, section is incomplete
 ######################################
 restore [locate_data_file buc60663a.brep] sh1 
-puts [checkshape sh1]
+checkshape sh1
 restore [locate_data_file buc60663b.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 
 bsection result sh1 sh2
 
index 2314bb58edb4d95ae284fa337d48e8ebc2c4fe61..2cca8e0e1a8da5e7a0e381384c699f9415d05cc9 100755 (executable)
@@ -5,7 +5,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file DXF906.rle] wire 
-puts [checkshape wire]
+checkshape wire
 
 mkplane result wire
 
index 6bd274c27dd28af7dd082c79b2e563bf93eaa289..90f0ed084f0d904a033e275904fe1ae891139e80 100755 (executable)
@@ -6,9 +6,9 @@ puts "================"
 puts ""
 
 restore [locate_data_file buc60803a.brep] sh1 
-puts [checkshape sh1]
+checkshape sh1
 restore [locate_data_file buc60803b.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 
 bfuse result sh1 sh2
 
index 6d59a5682ac1f4ef288aa5501ea3b9b16033b240..c9dbb81e476662985153f15c1733866a1da3c75a 100755 (executable)
@@ -6,9 +6,9 @@ puts "================"
 puts ""
 
 restore [locate_data_file buc60803a.brep] sh1 
-puts [checkshape sh1]
+checkshape sh1
 restore [locate_data_file buc60803b.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 
 bfuse result sh2 sh1
 
index cdb1f1239e15e5591c34e3b9f57faba8a9abeaeb..70b73d3b816294df102864516bde521e535606a5 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 #####################################################################
 
 restore [locate_data_file bug61037.brep] sh1
-puts [checkshape sh1]
+checkshape sh1
 
 set rr [bounding sh1]
 regexp { *([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} $rr full v1_x v1_y v1_z v2_x v2_y v2_z
index 88342ea2821d88a03a7f55715e59446f0a5a371c..df88060a3d5dba0781aefe167abfe18553d0c5fe 100755 (executable)
@@ -11,7 +11,7 @@ puts ""
 
 restore [locate_data_file OCC109.brep] result
 
-puts [checkshape result]
+checkshape result
 
 vinit
 tclean result
index d2a6868ab59551e992f7229fd7befc891d061cfe..12eff3b10a80de2039089562f31344d5f22c914f 100755 (executable)
@@ -6,33 +6,33 @@ puts "(cases 1-3)"
 puts "========================"
 
 restore [locate_data_file buc60706a.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706b.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 restore [locate_data_file buc60706c.brep] s
-puts [checkshape s]
+checkshape s
 
 bcut res_1 s t
-puts [checkshape res_1]
+checkshape res_1
 
 restore [locate_data_file buc60706d.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706e.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 bcut res_2 res_1 t
-puts [checkshape res_2]
+checkshape res_2
 
 restore [locate_data_file buc60706g.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706h.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 bcut result res_2 t
index ecd845a5a56a49d9eac4a9dbe37656f61de73944..523c69ac6ea8d56e3005f8e746167f175e2cf6d9 100755 (executable)
@@ -6,33 +6,33 @@ puts "(case 4-6)"
 puts "========================"
 
 restore [locate_data_file buc60706j.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706b.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 restore [locate_data_file buc60706l.brep] s
-puts [checkshape s]
+checkshape s
 
 bcut res_1 s t
-puts [checkshape res_1]
+checkshape res_1
 
 restore [locate_data_file buc60706m.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706e.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 bcut res_2 res_1 t
-puts [checkshape res_2]
+checkshape res_2
 
 restore [locate_data_file buc60706p.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706h.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 bcut result res_2 t
index eaeeefcc4a0c1a02378eb2ed1a176b7608a5110f..3d389aa1d49751ad53d89c6670ec6f77f1a8dc1e 100755 (executable)
@@ -6,33 +6,33 @@ puts "(case 7-9)"
 puts "========================"
 
 restore [locate_data_file buc60706s.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706b.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 restore [locate_data_file buc60706l.brep] s
-puts [checkshape s]
+checkshape s
 
 bcut res_1 s t
-puts [checkshape res_1]
+checkshape res_1
 
 restore [locate_data_file buc60706v.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706e.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 bcut res_2 res_1 t
-puts [checkshape res_2]
+checkshape res_2
 
 restore [locate_data_file buc60706x.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60706h.brep] w
-puts [checkshape w]
+checkshape w
 pipe t w f
 
 bcut result res_2 t
index 53eb908091d89b6737e4c4d1c1a6656f1ea76a24..072b9622f9a277c882e6680275ea813fedfed793 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 #############################################
 
 restore [locate_data_file OCC116.brep] sh 
-puts [checkshape sh]
+checkshape sh
  
 explode sh f
 explode sh_6 e
index 7099cdbdb0546ee00d58c8f83ee98095fd397fb7..df5947b78ef33fd0eab42c5ce69557ae4973ca4e 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 
 restore [locate_data_file OCC117.brep] sh 
 explode sh
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_1 sh_2
 
index db8dcf32692ecf683ae5aa58bba5c78af0f9e5fc..4847bb82c1917c17789b03fad9b7ea000c1aa7c2 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 
 restore [locate_data_file OCC117.brep] sh 
 explode sh
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_2 sh_1
 
diff --git a/tests/bugs/modalg/bug118 b/tests/bugs/modalg/bug118
new file mode 100755 (executable)
index 0000000..936f184
--- /dev/null
@@ -0,0 +1,17 @@
+puts "========"
+puts "OCC118"
+puts "========"
+########################################################
+## The Cone part of final fuse shape becomes invisible
+########################################################
+
+restore [locate_data_file OCC118-1.brep] a 
+checkshape a
+restore [locate_data_file OCC118-2.brep] b 
+checkshape b
+
+bop a b
+bopfuse result a b
+
+set square 4844.63
+set 2dviewer 0
index 1c71e4427fb980a4a7e646f035a9c14e05c8c4c4..069e6ea12c58cb3ab9ba58fe0b7517d36cc4f0bb 100755 (executable)
@@ -6,9 +6,9 @@ puts "========"
 ########################################################
 
 restore [locate_data_file OCC118-1.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file OCC118-2.brep] b
-puts [checkshape b]
+checkshape b
 
 bfuse result a b
 
index 5498302a85142c071e7022e0f2a310603891b039..ea8056d79993a99f6401e518240d071c6a2c8066 100755 (executable)
@@ -6,9 +6,9 @@ puts "========"
 ########################################################
 
 restore [locate_data_file OCC118-1.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file OCC118-2.brep] b
-puts [checkshape b]
+checkshape b
 
 bfuse result b a
 
index 3f5d022c6d8402d35badf7df773fbdf6855f7636..3bf29a6fe4cc26098a97355ee0497321c6526721 100755 (executable)
@@ -7,8 +7,8 @@ puts ""
 restore [locate_data_file OCC122.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_1 sh_2
 
index 8b08cc8a6abbb76771712283067e475c3bfa2737..1fbedc286eb0ef0d911724a78dca777b19ab4940 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 restore [locate_data_file OCC122.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_2 sh_1
 
index 800771db662dc858224215dedde0930a5a8ef68d..b92f668e1162a5ba9ddcd1a9c508ed9bcf7f3f27 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 restore [locate_data_file OCC122.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bcut result sh_1 sh_2
 
index d7f4bdeb09b34add259255bd71a4977208fcdfb2..7e892c3f91ec6800c3d331439da0fc1d4cf24609 100755 (executable)
@@ -7,8 +7,8 @@ puts ""
 restore [locate_data_file OCC122.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bcut result sh_2 sh_1
 
index 8c42b0095263d7181ea861b2f3a26478c0eae6a7..ca0a6d22c58749b474c8c35b321c3f40d02d655a 100755 (executable)
@@ -5,7 +5,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC123.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 explode sh
 
index bb0f9ab3a454857b449b7b7a3d6cf31c82cea689..edb5a8869bd20c817386bfe8a3c4c8615073bbc9 100755 (executable)
@@ -5,7 +5,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC123.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 explode sh
 
index c132bc0cc7bbe43ebc294464cc7128f701bea5a8..9f342caf7553fdc4bf49b78f1c1faa386aaea790 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 #########################################################
 
 restore [locate_data_file shading_137.brep] s 
-puts [checkshape s]
+checkshape s
 
 dset SCALE1 5
 tscale s 0 0 0 SCALE1
index 0c521635a0007c705aaecadf6c3be4b1546d3335..b10e67e68bfea0f3954f92a56d6003c66d488763 100755 (executable)
@@ -8,9 +8,9 @@ puts "================"
 puts ""
 
 restore [locate_data_file buc60663a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60663b.brep] b
-puts [checkshape b]
+checkshape b
 
 bsection result a b
 
diff --git a/tests/bugs/modalg/bug1665 b/tests/bugs/modalg/bug1665
new file mode 100755 (executable)
index 0000000..f599daf
--- /dev/null
@@ -0,0 +1,22 @@
+puts "========"
+puts "OCC1665"
+puts "========"
+############################################################
+## Geom_BSplineSurface::SetVPeriodic throws an exception
+############################################################
+
+restore [locate_data_file OCC1665.draw] a
+
+if {[catch {setvperiodic a} message]} {
+    puts "OCC1665 FAULTY : setvperiodic"
+} else {
+    if {[catch {mkface result a} message]} {
+       puts "OCC1665 FAULTY : mkface"
+    } else {
+        set nb_info [nbshapes result]
+       set nb_e_good 3
+    }
+}
+
+set square 12265.3
+set 3dviewer 2
index 8e286624b8c6ca9b93721516b1b6294c711c2275..0e8e48e5e4d676a4a37cd0d22ffb93f17a3de818 100755 (executable)
@@ -8,8 +8,8 @@ puts "================"
 restore [locate_data_file BUC60937.brep] a 
 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcommon result a_1 a_2
 
index e681e4852398c6f5fd589174d0a67cfa548949f8..c71a9165d34b1c44b8d85da836fbfbc5db999879 100755 (executable)
@@ -6,8 +6,8 @@ puts "================"
 
 restore [locate_data_file BUC60937.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_1 a_2
 
index beb3466b0073addc397007068d675243a01bfef0..081a3830c7aadff49ce7475e02ba1e78ec5e17ba 100755 (executable)
@@ -7,8 +7,8 @@ puts "================"
 restore [locate_data_file BUC60937.brep] a 
 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_1 a_2
 
index 20a44e02115021d3cfc2f2a52b53e217d9a05c20..bbf172138214ec0848fcee55e22593eba0be2be9 100755 (executable)
@@ -10,7 +10,7 @@ pload XDE
 catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file OCC21.brep] sh 
-puts [checkshape sh]
+checkshape sh
 puts "two faces in the compound share one edge"
 
 DT_SplitAngle result sh 90
diff --git a/tests/bugs/modalg/bug212 b/tests/bugs/modalg/bug212
new file mode 100755 (executable)
index 0000000..362dac5
--- /dev/null
@@ -0,0 +1,18 @@
+puts "========"
+puts "OCC212"
+puts "========"
+################################################
+## Bug in Topological "Common" boolean operation
+################################################
+
+restore [locate_data_file OCC212-1.brep] S1 
+checkshape S1
+restore [locate_data_file OCC212-2.brep] S2 
+checkshape S2
+
+bop S1 S2
+bopcommon result
+
+set square 314.301
+set 2dviewer 0
+
index a6671c7da97815596d41e6982b6c1da9ea0b53ba..2bca2110f9a0c185975a6cbc583b573db10d1e2e 100755 (executable)
@@ -6,9 +6,9 @@ puts "========"
 ################################################
 
 restore [locate_data_file OCC212-1.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file OCC212-2.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bcommon result S1 S2
 
index f0c5097a90e707f6256b48555c84c32faa7a3e2b..f7ae228d2ad53a3d3ec279a49a7ef5ead4b29d0c 100755 (executable)
@@ -6,9 +6,9 @@ puts "========"
 ################################################
 
 restore [locate_data_file OCC212-1.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file OCC212-2.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bcommon result S2 S1
 
diff --git a/tests/bugs/modalg/bug212_3 b/tests/bugs/modalg/bug212_3
new file mode 100755 (executable)
index 0000000..a33f934
--- /dev/null
@@ -0,0 +1,18 @@
+puts "========"
+puts "OCC212"
+puts "========"
+################################################
+## Bug in Topological "Common" boolean operation
+################################################
+
+restore [locate_data_file OCC212-1.brep] S1 
+checkshape S1
+restore [locate_data_file OCC212-2.brep] S2 
+checkshape S2
+
+bop S1 S2
+bopcommon result
+
+set square 314.301
+set 2dviewer 1
+
diff --git a/tests/bugs/modalg/bug213 b/tests/bugs/modalg/bug213
new file mode 100755 (executable)
index 0000000..7314139
--- /dev/null
@@ -0,0 +1,20 @@
+puts "========"
+puts "OCC213"
+puts "========"
+################################################
+## Bug in Topological "fuse" boolean operation
+################################################
+
+cpulimit 3500
+
+restore [locate_data_file OCC213-1.brep] S1 
+checkshape S1
+restore [locate_data_file OCC213-2.brep] S2 
+checkshape S2
+
+bop S1 S2
+bopfuse result
+
+set square 4835.45
+set 2dviewer 1
+
index bd978a50bbf6bebb0c727ba2970d7565e585e115..e03a1302a8c3568176c08edebc2a1f180fffdb7d 100755 (executable)
@@ -6,9 +6,9 @@ puts "========"
 ################################################
 
 restore [locate_data_file OCC213-1.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file OCC213-2.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bfuse result S1 S2 
 set square 4835.45
index bb165190a0012cac7a16cbbb9a35125252d5a803..91e347b23ab7c2f5634f49ed3fdfd1f6200f73a6 100755 (executable)
@@ -6,9 +6,9 @@ puts "========"
 ################################################
 
 restore [locate_data_file OCC213-1.brep] S1 
-puts [checkshape S1]
+checkshape S1
 restore [locate_data_file OCC213-2.brep] S2
-puts [checkshape S2]
+checkshape S2
 
 bfuse result S2 S1 
 set square 4835.45
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 991849dd60cf96059ebf4e5ba9a92eca3d7e7d2e..938d0534a9179f6af9b9bfed125693dc0dbce2f5 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC251.brep] f 
 explode f
-puts [checkshape f_1]
-puts [checkshape f_2]
+checkshape f_1
+checkshape f_2
 
 bsection result f_1 f_2
 explode result
index a3ba58adfa5359a807402186fe279be2bb2fcec0..cf75ceb13f150d52c09526abdb6aa8a793671125 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC251.brep] f 
 explode f
-puts [checkshape f_1]
-puts [checkshape f_2]
+checkshape f_1
+checkshape f_2
 
 bsection result f_2 f_1
 explode result
index c03c8ee0dff5cd0948e498b04036ee80de472f91..91e2a859f637e10ed79ab35a6e166e556bc6cd07 100755 (executable)
@@ -5,7 +5,7 @@ puts " (case 0)"
 puts "========"
 
 restore [locate_data_file OCC264_00.rle] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 16bc617dd36c6c788f9bcbe351f48e1f8fb2c503..83974cb1b23d4af86caf2f3d3431a2856ae08936 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 1)"
 puts "========"
 
 restore [locate_data_file OCC264_01.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index cab6419d134fa22ebbef2de534bac3e582aaae25..452842d098a57470c1041b6301031e1f0dadc897 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 10)"
 puts "========"
 
 restore [locate_data_file OCC264_10.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 6fd7bcbd94e6c2ffa68771f3103100ccf9bddc8a..0d0348eb7a04dcfa335a1e8c40c90dbbc7d14152 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 11)"
 puts "========"
 
 restore [locate_data_file OCC264_11.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 53839af6a6bb69f58976aa7953d2a8239a0f80b3..89ac94994e83b6a6d848e9d15c969f51c2955c4d 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 2)"
 puts "========"
 
 restore [locate_data_file OCC264_02.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index a4376735993adc57bd2f349ec42aaa6fc5a4f169..08ab1a75a9b3e65ecb59918cf55f6905fddd63ab 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 3)"
 puts "========"
 
 restore [locate_data_file OCC264_03.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 67ae1651fe405bf598e12427d59fe345009a6b8b..397dc2a18154777ff7f3c595d3e709297df9e655 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 4)"
 puts "========"
 
 restore [locate_data_file OCC264_04.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 394e04ed8d681ef660dd0642f9fd38a32a8637b9..3b9ca4cbde046ac46518037620411707c882da45 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 5)"
 puts "========"
 
 restore [locate_data_file OCC264_05.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 061eda8b0373f31ad87b9ea7403952fff7916173..94b6954c3383f8b2c6ab278051c7574d1b11b97b 100755 (executable)
@@ -5,7 +5,7 @@ puts " (case 6)"
 puts "========"
 
 restore [locate_data_file OCC264_06.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 74ce81bb3861cafb4764191f37ec9b8d9a2042d0..f129ed91c09505169d62aa23708a8763b0843841 100755 (executable)
@@ -5,7 +5,7 @@ puts " (case 7)"
 puts "========"
 
 restore [locate_data_file OCC264_07.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 6b92c702af63d9cabd330ded7f3078129d9e8811..0c5dada804b72bc2ef0135c75af220abc8d7cbbb 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 8)"
 puts "========"
 
 restore [locate_data_file OCC264_08.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index f5487a20b27a40b045b6304c5ccd2f607bf4e1b0..7aafec0e7463a28cbb90ecbc6b13a7763f4e75f8 100755 (executable)
@@ -7,7 +7,7 @@ puts " (case 9)"
 puts "========"
 
 restore [locate_data_file OCC264_09.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index e3c90f22b3439005f1fca937d92ce2f4d299d5b2..db76719f711693f60ce313e59095533984a5af3c 100755 (executable)
@@ -2,7 +2,7 @@
 puts "======== OCC269 ========"
 
 restore [locate_data_file OCC269-1.brep] result
-puts [checkshape result]
+checkshape result
 isos result 0
 tclean result
 
index e7120ec038ec1038b30e696403e111fd75ad6e00..f56d53058efb2e27ff241c1e29b6c5bcb758bdd4 100755 (executable)
@@ -2,7 +2,7 @@
 puts "======== OCC269 ========"
 
 restore [locate_data_file OCC269-2.brep] result
-puts [checkshape result]
+checkshape result
 isos result 0
 tclean result
 
index 420cab311e882137e60fa2a0fb4548c57628ef2d..0c73a2ee92c0b7f0ab8f1bdb0d933468a3e5a370 100755 (executable)
@@ -2,7 +2,7 @@
 puts "======== OCC269 ========"
 
 restore [locate_data_file OCC269-3.brep] result
-puts [checkshape result]
+checkshape result
 isos result 0
 tclean result
 
index 22a8f96f924f976b066ef45344a64d323af6ae79..434633696c339ef28ca1ddf28b41f42b5dd89b0a 100755 (executable)
@@ -2,7 +2,7 @@
 puts "======== OCC269 ========"
 
 restore [locate_data_file OCC269-4.brep] result
-puts [checkshape result]
+checkshape result
 isos result 0
 tclean result
 
index e6c45140a33e5dbee1382cb4c3d74319db2f18a6..e7d41ac3082d7a6195aaa00e5b82f45c8e403498 100755 (executable)
@@ -6,7 +6,7 @@ puts " OCC287 "
 puts "========================"
 
 restore [locate_data_file shading_170.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 isos result 0
index bf086bbde5d5316f22c7dae0943c846bb07a5070..e73a69e18aea25dee5802b7d9964db056d0a63c5 100755 (executable)
@@ -6,7 +6,7 @@ puts "================= OCC291 ==================="
 #################################################################
 
 restore [locate_data_file shading_171.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 87a777b72734ffaa4a020548b82b9a188069ceef..e9b2f8a58b1427eb339c4b6b5e5b34d0f305d563 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 #################################################################
 
 restore [locate_data_file OCC292.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 99291bd0d5b1bca566f6c2b29dade640edc22b80..692dba4e367a90a27f6c79fd285b9eaa81c0f19f 100755 (executable)
@@ -10,7 +10,7 @@ puts ""
 
 restore [locate_data_file OCC293.brep] a 
 tclean a
-puts [checkshape a]
+checkshape a
 
 vinit
 #vdisplay a
@@ -23,28 +23,28 @@ renamevar edge face
 explode face f
 
 chamf result1 face edge_26 face_5 A 1 45
-puts [checkshape result1]
+checkshape result1
 
 chamf result2 face edge_30 face_5 A 1 45
-puts [checkshape result2]
+checkshape result2
 
 chamf result3 face edge_34 face_5 A 1 45
-puts [checkshape result3]
+checkshape result3
 
 chamf result4 face edge_39 face_5 A 1 45
-puts [checkshape result4]
+checkshape result4
 
 chamf result5 face edge_35 face_5 A 1 45
-puts [checkshape result5]
+checkshape result5
 
 chamf result6 face edge_31 face_5 A 1 45
-puts [checkshape result6]
+checkshape result6
 
 chamf result7 face edge_27 face_5 A 1 45
-puts [checkshape result7]
+checkshape result7
 
 chamf result8 face edge_24 face_5 A 1 45
-puts [checkshape result8]
+checkshape result8
 
 # all contour is :
 #chamf result face edge_26 face_5 A 1 45 edge_28 face_5 A 1 45 edge_30 face_5 A 1 45 edge_32 face_5 A 1 45 edge_34 face_5 A 1 45 edge_36 face_5 A 1 45 edge_38 face_5 A 1 45 edge_40 face_5 A 1 45 edge_13 face_5 A 1 45 edge_14 face_5 A 1 45 edge_39 face_5 A 1 45 edge_37 face_5 A 1 45 edge_35 face_5 A 1 45 edge_33 face_5 A 1 45 edge_31 face_5 A 1 45 edge_29 face_5 A 1 45 edge_27 face_5 A 1 45 edge_6 face_5 A 1 45 edge_4 face_5 A 1 45 edge_19 face_5 A 1 45 edge_22 face_5 A 1 45 edge_23 face_5 A 1 45 edge_24 face_5 A 1 45 edge_25 face_5 A 1 45 edge_26 face_5 A 1 45
index 1865f6e936366c70dd03df04d51fb60bf589bbcb..75d0e848b3c29da712d5ecd9313d0cc34a4d9379 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 #################################################################
 
 restore [locate_data_file OCC298.brep] result
-puts [checkshape result]
+checkshape result
 
 if [catch {tcopy result a } result] {
   puts "Faulty OCC298: function TCOPY works wrongly"
index ece2dd41527960134937f651a72c5ab6efb7a60b..18958b02e2ff58c7b64ea59e329e0024bd53f23d 100755 (executable)
@@ -64,7 +64,7 @@ puts ""
 catch {pload XDE}
 
 restore [locate_data_file OCC305.brep] a 
-puts [checkshape a]
+checkshape a
 
 if [catch {mkoffset result a 1 0.5 } catch_result] {
     puts "Faulty OCC305 : function MKOFFSET works wrongly"
index 3a78e9243eb34bcf819d69a51746086dbb18861f..2e9110ce2ccf8a84724bc55994893ce2c7e98cf6 100755 (executable)
@@ -27,7 +27,7 @@ explode w w
 OCC307 result1 f_4 w_6 0
 OCC307 result2 f_5 result1 0
 
-puts [checkshape result1]
+checkshape result1
 renamevar result2 result
 
 set square 0
index 64045ce4dfcb11dfef03ebdca077325724caf349..98fa95a354453f0b6e04e273f9ec6169e8057e39 100755 (executable)
@@ -27,7 +27,7 @@ explode w w
 OCC307 result1 f_4 w_6 1
 OCC307 result2 f_5 result1 1
 
-puts [checkshape result1]
+checkshape result1
 renamevar result2 result
 
 set square 0
index b16f7230927021d5266a5fe613c9c260062f0551..411b1818dbd17bbe04312003926f93cf32f2bec3 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 
 restore [locate_data_file OCC315-1.brep] f1 
 restore [locate_data_file OCC315-2.brep] f2
-puts [checkshape f1]
-puts [checkshape f2]
+checkshape f1
+checkshape f2
 
 bcut result f1 f2
 
index ac66c96178de70e9f6cd68e1a5446991000597b9..e8e39e022d8db4c54d4de5881a9d50ff2f352020 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 pload QAcommands
 
 restore [locate_data_file OCC322.brep] a 
-puts [checkshape a]
+checkshape a
 
 sewing result a
 
index 87a1c60e309793e677872953a78f127d3d30391b..a2b10acc70e5a6a6d18e0f3403bde1a72ca33114 100755 (executable)
@@ -29,7 +29,7 @@ if { [regexp {Faulty} $che ] == 1 } {
 }
 
 bsection r f_1 f_2
-puts [checkshape r]
+checkshape r
 puts [checksection r]
 
 decho off
index 0c81a9495d97d20895d6dd71def9987913037737..42f6932ba7d7736297d9b0b4f56d8afbcc5c1007 100755 (executable)
@@ -7,8 +7,8 @@ puts "============"
 restore [locate_data_file BUC60928.brep] a 
 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_2 a_1
 
index 72684ccd2b0616f99bfa5fd7e49e10695c0b05c8..cd19995f8678088935e79f3de7a435d27a1b13b5 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 restore [locate_data_file BUC60931.brep] a 
 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcommon result a_1 a_2
 
index 83cbaba94c16197f770dda9193f9da7c24fb99e0..a61d42abaef45ca058baac00d68ea94d6bf31376 100755 (executable)
@@ -7,8 +7,8 @@ puts "============"
 restore [locate_data_file BUC60939.brep] a 
 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_1 a_2
 
index 9b35e2b0048c919e2c7c1dc4758434b6608ce006..6531b2f515c3094a59a9a4a56b932507729acc95 100755 (executable)
@@ -7,11 +7,11 @@ puts ""
 
 restore [locate_data_file buc60996.brep] b 
 explode b
-puts [checkshape b_1]
-puts [checkshape b_2]
+checkshape b_1
+checkshape b_2
 
 bfuse f1 b_1 b_2                                                                 
-puts [checkshape f1]
+checkshape f1
 bfuse result b_2 b_1                                                                 
 
 set square 73561.9
index ed474b753dde997b57559f795fb96fcaae439cd5..1ed717a5d3586c9f2d1860f4b0fbf8202bd0b1af 100755 (executable)
@@ -6,7 +6,7 @@ puts "========"
 puts ""                                                                         
 
 restore [locate_data_file buc61005.brep] w 
-puts [checkshape w]
+checkshape w
 revol result w 0 0 0 0 0 1 360 1                                                     
 
 set square 55795.4
index eafc0ff0ae716a1afb0dd4301a2da1731f875923..12cf04e767b3530dd8dfc2c0eeb38a88ed4ad8de 100755 (executable)
@@ -6,7 +6,7 @@ puts "========"
 puts ""
 
 restore [locate_data_file buc61008.brep] w 
-puts [checkshape w]
+checkshape w
 
 mkplane f w
 prism result f 0 0 100
index 3d5bc2bbe05589592b1673f7aab55075718c4498..347151252940c72d5c8a6a47f3d134d8af66f1e9 100755 (executable)
@@ -6,7 +6,7 @@ puts " (case 1) "
 puts "========================"
 
 restore [locate_data_file OCC347a.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index c371a4c1b484b1bf623b298a55b8eeb879d01ac7..635521d07917125ba046a2f21916fe0e06e751d8 100755 (executable)
@@ -6,7 +6,7 @@ puts " (case 2) "
 puts "========================"
 
 restore [locate_data_file OCC347b.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 17da7dd844069714b6cb036afe6477db92d3dbd6..86563ed5d49549b0fb9748b1e0c4a6fc65267f9f 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 #######################################################
 
 restore [locate_data_file OCC356.brep] result
-puts [checkshape result]
+checkshape result
 
 explode result w
 
index 739946b99d645820343e2be0cdbee4c16f96a4df..6477a5567c76a50a85445b23a82244f77f1fd10d 100755 (executable)
@@ -5,10 +5,10 @@ puts "BUC60970"
 puts "========"
 
 restore [locate_data_file buc60970a.brep] a
-puts [checkshape a]
+checkshape a
 ## small/brep/OCC358a.brep - second shape
 restore [locate_data_file OCC358a.brep] b 
-puts [checkshape b]
+checkshape b
 
 if { [catch { pipe result a b } catch_result] } {
     puts "$catch_result"
index d4d56526caed19dece875e7fd74f4761c75ad3ae..086df9f7b208b43f31c083a850427af0b4834bdc 100755 (executable)
@@ -7,10 +7,10 @@ puts "The helical pipe is not shaded in AISViewer"
 #####
 
 restore [locate_data_file OCC358a.brep] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file OCC358b.brep] w
-puts [checkshape w]
+checkshape w
 
 pipe result w f
 
index 1e1f65b05bcaddb37a7fc881ec329914b7e0e2a6..005092f46dc45af332bfda1cc6920c9d757cae10 100755 (executable)
@@ -5,7 +5,7 @@ puts "========================"
 pload QAcommands
 
 restore [locate_data_file OCC397.brep] a 
-puts [checkshape a]
+checkshape a
 
 tclean a
 explode a f
index 4b4ab61a0c06595d86797184a963ad72bdcc1935..f7e42168cf9ab334ea568e847046e9806930ed92 100755 (executable)
@@ -5,10 +5,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f2] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f6] b2
-puts [checkshape b2]
+checkshape b2
 
 bcommon result b1 b2
 
index 2e2816c2cf3215ee4a60494a2d94c90e3d64d456..80d03e0dc293d7800db61d02ee9fe7684f047497 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f7] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f3] b2
-puts [checkshape b2]
+checkshape b2
 
 bcommon result b1 b2
 
index 61b7625e30074d51703ec281b0a2701100027a85..3e4a1d3bda69756d6bf0183886d3fe97b4f9ee15 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f7] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f3] b2
-puts [checkshape b2]
+checkshape b2
 
 bfuse result b1 b2
 
index 49c90691a9887a90c7bb3bd273e169298a809e3e..15426fb5a4c3a0d41b8dec87f5da659d60077f58 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f7] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f3] b2
-puts [checkshape b2]
+checkshape b2
 
 bcut result b1 b2
 
index 12715380ab1e4e284b24300d9c263a9047796b29..7e71d71212f70393ca5b3bffeac0843d42d0ada1 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f7] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f3] b2
-puts [checkshape b2]
+checkshape b2
 
 
 if [catch {bcut result b2 b1 } result] {
index 9d051c73ae6d41b18c959bface56174559b54d6c..f409769c0f98a43881c708c5c3dc27ff6f730e12 100755 (executable)
@@ -5,10 +5,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f4] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f5] b2
-puts [checkshape b2]
+checkshape b2
 
 bfuse result b1 b2
 
index ec3e684043614a6d06438b6e7100dee8da311d94..613ffa282a3c61b02709cfd99f01d879a4efb2fa 100755 (executable)
@@ -5,10 +5,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f2] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f3] b2
-puts [checkshape b2]
+checkshape b2
 
 bcut result b1 b2
 
index 0c61f3abf827b42807efe44f859f7f2dcd133b9c..1d86ff3986ffa0241f5bccb07b0eecf4d8c9e89e 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file so1] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file so4] b2
-puts [checkshape b2]
+checkshape b2
 
 bcommon result b1 b2
 
index 39b5bd1d3bfc201703913b8675a245b3148f443b..09c35acdfccc70df98fd019307a6a192d7742966 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file so1] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file so4] b2
-puts [checkshape b2]
+checkshape b2
 
 bcut result b1 b2
 
index 5a2b3e281d29934b3d9b7a477eea653c08776708..ed71398f33c9f5c51c12425b629f43da5bc76d7f 100755 (executable)
@@ -6,9 +6,9 @@ puts "========================"
 puts ""
 
 restore [locate_data_file pro5557_revol.brep] revol1 
-puts [checkshape revol1]
+checkshape revol1
 restore [locate_data_file pro5557_bsurf.brep] bsurf2
-puts [checkshape bsurf2]
+checkshape bsurf2
 
 zoom 660
 normals bsurf2 0.27
index 2ae60303b48be637e7de6ea40114f7360c0ac02b..82e9091d50ab25e73b1f2c5c81ced8c5242d5196 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file CTO900_cts19305-part.rle] part 
-puts [checkshape part]
+checkshape part
 
 restore [locate_data_file CTO900_cts19305-tool.rle] tool
-puts [checkshape tool]
+checkshape tool
 
 bcut result part tool
 
index c6fd6110e35536b7b688624e70b34cb1f0c4ef8c..4fc8bbce4445d05cc71a400de348f114233cad27 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file cts21128c.rle] c 
-puts [checkshape c]
+checkshape c
 
 restore [locate_data_file cts21128d.rle] d
-puts [checkshape d]
+checkshape d
 
 bcut result c d
 
index f9aef020ef4801e9a2638d74cfae84d8ae33378c..5eca381a1a0e1b7ac4a2034c2c9db028f36cfc2c 100755 (executable)
@@ -7,16 +7,16 @@ puts "========================"
 puts ""
 
 restore [locate_data_file CTO904_cts20370-part.rle] part 
-puts [checkshape part]
+checkshape part
 
 restore [locate_data_file cts20370-tool.rle] tool 
-puts [checkshape tool]
+checkshape tool
 
 bsection sec part tool
-puts [checkshape -top sec]
+checkshape -top sec
 
 bcut result part tool
-puts [checkshape -top result]
+checkshape -top result
 
 set square 273365.
 set 2dviewer 0
index 67c9b3409c2fd449f9f4e9109a3bd3ae29185093..4ddd04b4c842e3dbc2246474badcf9fcc45458f2 100755 (executable)
@@ -7,15 +7,15 @@ puts "========================"
 puts ""
 
 restore [locate_data_file CTO904_cts20370-part.rle] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file cts20370-tool.rle] b 
-puts [checkshape b]
+checkshape b
 
 bsection sec a b
 
 bfuse result a b
-puts [checkshape -top result]
+checkshape -top result
 
 set square 261265.
 set 2dviewer 0
index 6952e27a75c089ca1d1cc4788480b900209de5d9..dc8e9d4a15cb5bdb5997ae9a81451cb9580a3b69 100755 (executable)
@@ -7,16 +7,16 @@ puts "========================"
 puts ""
 
 restore [locate_data_file CTO904_fra50047a.rle] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file fra50047b.rle] b 
-puts [checkshape b]
+checkshape b
 
 bsection sec a b
-puts [checkshape -top sec]
+checkshape -top sec
 
 bfuse result a b
-puts [checkshape -top result]
+checkshape -top result
 
 set square 508496.
 set 2dviewer 0
index de8f7e51f4605c2a22944aa83dc38ed5e01668cd..580852589eae8109b73db335d902ec186db3d634 100755 (executable)
@@ -8,14 +8,14 @@ puts "========================"
 puts ""
 
 restore [locate_data_file CTO909_objects.brep] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file CTO909_tool_4.brep] b 
-puts [checkshape b]
+checkshape b
 
 bsection sec a b
 puts [checksection sec]
-puts [checkshape sec]
+checkshape sec
 explode a so
 renamevar a_1 a
 
index ff302a55196cb46bd36f3210d70d1779531a9836..be5b56e83281aa34ad82345a76c998ecf56b1154 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file cylindre.rle] cyl 
-puts [checkshape cyl]
+checkshape cyl
 
 restore [locate_data_file contour.rle] cont 
-puts [checkshape cont]
+checkshape cont
 
 mkplane cont cont
 nexplode cyl F
index a60ae4254df33a9e36ac0d98e1fb4b81c8bd56d4..b56c0977d06f6609e8460c539843c2e7139fba17 100755 (executable)
@@ -6,10 +6,10 @@ puts "========================"
 puts ""
 
 restore [locate_data_file pro15515_base.rle] base 
-puts [checkshape base]
+checkshape base
 
 restore [locate_data_file pro15515_face.rle] cont 
-puts [checkshape cont]
+checkshape cont
 
 explode base face
 copy base_4 ffrom
diff --git a/tests/bugs/modalg/bug426 b/tests/bugs/modalg/bug426
new file mode 100755 (executable)
index 0000000..7f33544
--- /dev/null
@@ -0,0 +1,34 @@
+if {[array get env os_type] != ""} {
+    set os $env(os_type)
+}
+if {[string compare $os "windows"] != 0 } {
+    puts "TODO OCC12345 ALL: Exception"
+    puts "TODO OCC12345 ALL: An exception was caught"
+    puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+pload QAcommands
+
+puts "========"
+puts "OCC426"
+puts "OCC50"
+puts "========"
+#############################################################################
+## The result of fuse operation is invalid
+#############################################################################
+## BRepFilletAPI_MakeFillet presents a bug on fillet computation (build())
+#############################################################################
+## (old topology)
+#############################################################################
+
+OCC426 result rs1 rs2 rs3 fuse32 fuse321 0
+
+checkshape rs1
+checkshape rs2
+checkshape rs3
+checkshape fuse32
+checkshape fuse321
+
+set square 7507.61
+set 2dviewer 1
+
index 63c6656d3d04738427a2b1aac073c2eaf4aacf16..91c43ffc1b1265d294736746aab8774df874f371 100755 (executable)
@@ -10,8 +10,8 @@ puts ""
 restore [locate_data_file OCC439.brep] a 
 explode a
 
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_1 a_2
 
index 67147dc9b6429acc7aea71f2af1afa3288454dcd..6007de97825a44d004fc37426cabd475bdf6db66 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC442.brep] a 
-puts [checkshape a]
+checkshape a
 
 explode a v
 
index ef5b99cdd9091d43f61edb8d9d88c50f43e955be..fab38a52da150b76c2a5c77acc18cbdabedbe5c1 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 #######################
 
 restore [locate_data_file OCC449a.brep] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file OCC449b.brep] b2
-puts [checkshape b2]
+checkshape b2
 
 bcut result b1 b2
 
diff --git a/tests/bugs/modalg/bug4717_1 b/tests/bugs/modalg/bug4717_1
new file mode 100755 (executable)
index 0000000..1048351
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop s b
+bopfuse result
+
+set square 680565
+set nb_info [nbshapes result]
+
+set nb_v_good 11
+set nb_e_good 16
+set nb_w_good 8
+set nb_f_good 7
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 45
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4717_2 b/tests/bugs/modalg/bug4717_2
new file mode 100755 (executable)
index 0000000..e323536
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop b s
+bopfuse result
+
+set square 680565
+set nb_info [nbshapes result]
+
+set nb_v_good 11
+set nb_e_good 16
+set nb_w_good 8
+set nb_f_good 7
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 45
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4717_3 b/tests/bugs/modalg/bug4717_3
new file mode 100755 (executable)
index 0000000..c1fa126
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop s b
+bopcut result
+
+set square 181937
+set nb_info [nbshapes result]
+
+set nb_v_good 3
+set nb_e_good 4
+set nb_w_good 2
+set nb_f_good 2
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 14
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4717_4 b/tests/bugs/modalg/bug4717_4
new file mode 100755 (executable)
index 0000000..b1fe5c2
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop b s
+bopcut result
+
+set square 680565
+set nb_info [nbshapes result]
+
+set nb_v_good 11
+set nb_e_good 16
+set nb_w_good 8
+set nb_f_good 7
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 45
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4717_5 b/tests/bugs/modalg/bug4717_5
new file mode 100755 (executable)
index 0000000..cac8746
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop s b
+boptuc result
+
+set square 680565
+set nb_info [nbshapes result]
+
+set nb_v_good 11
+set nb_e_good 16
+set nb_w_good 8
+set nb_f_good 7
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 45
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4717_6 b/tests/bugs/modalg/bug4717_6
new file mode 100755 (executable)
index 0000000..01bafd5
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop b s
+boptuc result
+
+set square 181937
+set nb_info [nbshapes result]
+
+set nb_v_good 3
+set nb_e_good 4
+set nb_w_good 2
+set nb_f_good 2
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 14
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4717_7 b/tests/bugs/modalg/bug4717_7
new file mode 100755 (executable)
index 0000000..99d4b6a
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop s b
+bopcommon result
+
+set square 181937
+set nb_info [nbshapes result]
+
+set nb_v_good 3
+set nb_e_good 4
+set nb_w_good 2
+set nb_f_good 2
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 14
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4717_8 b/tests/bugs/modalg/bug4717_8
new file mode 100755 (executable)
index 0000000..3f28f57
--- /dev/null
@@ -0,0 +1,44 @@
+puts "TODO OCC12345 ALL: Error : Result shape is WRONG"
+
+puts "============"
+puts "OCC4717"
+puts "============"
+puts ""
+######################################################
+# A regression of new Boolean Operations
+# (cfi/002/H3)
+######################################################
+
+dset SCALE1 10
+protect SCALE1
+
+box b -20 -20 -20 40 40 20
+ellipse w1 0 0 0 15 10
+mkedge w1 w1 -pi/2 pi/2
+trotate w1 0 0 0 1 0 0 90
+wire w w1
+revol r w 0 0 0 0 0 1 360
+shape s So
+add r s
+trotate s b 0 0 0 1 1 0 -40
+trotate s b 0 0 0 0 0 1 -10
+tscale b 0 0 0 SCALE1
+tscale s 0 0 0 SCALE1
+
+bop b s
+bopcommon result
+
+set square 181937
+set nb_info [nbshapes result]
+
+set nb_v_good 3
+set nb_e_good 4
+set nb_w_good 2
+set nb_f_good 2
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 14
+
+set 2dviewer 0
index 7364c73e4417b7e2b2797026d1bf6f8d19612024..bc835520cf801df18804ccf39a1dd2c1bcefc52f 100755 (executable)
@@ -11,10 +11,10 @@ puts ""
 #####################################################
 
 restore [locate_data_file OCC472a.brep] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file OCC472b.brep] b2
-puts [checkshape b2]
+checkshape b2
 
 bcut result b1 b2
 
index c545ba12478293fb79f113b169ec95bca07d71a5..4e79ff3a0d98588d6c17cc2ed13f03a65994279f 100755 (executable)
@@ -11,10 +11,10 @@ puts ""
 #####################################################
 
 restore [locate_data_file OCC472a.brep] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file OCC472b.brep] b2
-puts [checkshape b2]
+checkshape b2
 
 bcommon result b1 b2
 
index 3a25a238a0258d41836061c3d2154b3e1cc62f72..305485f0d0c8d50af03d68040102167dc2b6f42e 100755 (executable)
@@ -12,10 +12,10 @@ puts ""
 #####################################################
 
 restore [locate_data_file OCC472a.brep] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file OCC472b.brep] b2
-puts [checkshape b2]
+checkshape b2
 
 bfuse result b1 b2
 
diff --git a/tests/bugs/modalg/bug476_1 b/tests/bugs/modalg/bug476_1
new file mode 100755 (executable)
index 0000000..07bf00d
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s1 s2
+bopfuse result
+
+set nb_info [nbshapes result]
+
+set square 9333.96
+
+set nb_v_good 16
+set nb_e_good 26
+set nb_w_good 11
+set nb_f_good 11
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 67
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug476_2 b/tests/bugs/modalg/bug476_2
new file mode 100755 (executable)
index 0000000..e6f51b1
--- /dev/null
@@ -0,0 +1,33 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s2 s1
+bopfuse result
+
+set nb_info [nbshapes result]
+
+set square 9333.96
+
+set nb_v_good 16
+set nb_e_good 26
+set nb_w_good 11
+set nb_f_good 11
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 67
+
+set 2dviewer 0
+
diff --git a/tests/bugs/modalg/bug476_3 b/tests/bugs/modalg/bug476_3
new file mode 100755 (executable)
index 0000000..c0440ee
--- /dev/null
@@ -0,0 +1,33 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s1 s2
+bopcut result
+
+set nb_info [nbshapes result]
+
+set square 99.5159
+
+set nb_v_good 12
+set nb_e_good 19
+set nb_w_good 9
+set nb_f_good 9
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 52
+
+set 2dviewer 0
+
diff --git a/tests/bugs/modalg/bug476_4 b/tests/bugs/modalg/bug476_4
new file mode 100755 (executable)
index 0000000..b540f08
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s2 s1
+bopcut result
+
+set nb_info [nbshapes result]
+
+set square 9340.03
+
+set nb_v_good 19
+set nb_e_good 33
+set nb_w_good 14
+set nb_f_good 14
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 83
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug476_5 b/tests/bugs/modalg/bug476_5
new file mode 100755 (executable)
index 0000000..2df33eb
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s1 s2
+boptuc result
+
+set nb_info [nbshapes result]
+
+set square 9340.03
+
+set nb_v_good 19
+set nb_e_good 33
+set nb_w_good 14
+set nb_f_good 14
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 83
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug476_6 b/tests/bugs/modalg/bug476_6
new file mode 100755 (executable)
index 0000000..02d7aa4
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s2 s1
+boptuc result
+
+set nb_info [nbshapes result]
+
+set square 99.5159
+
+set nb_v_good 12
+set nb_e_good 19
+set nb_w_good 9
+set nb_f_good 9
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 52
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug476_7 b/tests/bugs/modalg/bug476_7
new file mode 100755 (executable)
index 0000000..eee8c34
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s1 s2
+bopcommon result
+
+set nb_info [nbshapes result]
+
+set square 105.587
+
+set nb_v_good 15
+set nb_e_good 26
+set nb_w_good 12
+set nb_f_good 12
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 68
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug476_8 b/tests/bugs/modalg/bug476_8
new file mode 100755 (executable)
index 0000000..8c3559f
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC476"
+puts "============"
+puts ""
+######################################################
+# Regression on reading e3i files with respect of OCC30 and OCC40
+######################################################
+
+restore [locate_data_file OCC485b.brep] s1 
+restore [locate_data_file OCC485a.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s2 s1
+bopcommon result
+
+set nb_info [nbshapes result]
+
+set square 105.587
+
+set nb_v_good 15
+set nb_e_good 26
+set nb_w_good 12
+set nb_f_good 12
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 68
+
+set 2dviewer 0
index 00e9059a41fdf870a85bce463cf8dd03d6c8c009..367af52bcb6c645de88b8a773b5ed3f42a38294c 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ##########################################
 
 restore [locate_data_file OCC481.rle] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 9b4fbe0b486df0ed2967c5cfd99b0cc611df2b00..b33b0806cbbb70640cdd2b0e0337f911f6c1de76 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 #######################################
 
 restore [locate_data_file OCC485a.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC485a.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bfuse result a_1 a_2 } result] {
     puts "Faulty OCC485: Draw hangs up during performing fuse operation"
index b3637a874165dd4cf8fa09928e26e1203598cc18..35bc7540f74d914e934356b69f80181281dd18fe 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC488a.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC488b.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bcommon result a_1 a_2 } catch_result] {
     puts "Faulty OCC488: command COMMON works wrongly"
index 874f5c9e1da8b3ca259e2ee16b0dafd1a1161f73..85939f2845303267b01be00d2cc2e4f22b815e8b 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC490a.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC490b.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bfuse result a_1 a_2 } catch_result] {
     puts "Faulty OCC490: command FUSE works wrongly"
index 864ee44d8fc1d1f70b146bfe134d5afcd4369f6b..0bf4415746f3eab0e96eb76277e9cb7b19096111 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 ##############################
 
 restore [locate_data_file OCC492a.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC492b.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bfuse result a_1 a_2 } catch_result] {
     puts "Faulty OCC492: command FUSE works wrongly"
index 7aa08490bd445a44e37037716137eb7217cbc775..86d8acdc943c0a71bb73c5f160861f29ff576516 100755 (executable)
@@ -11,10 +11,10 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC497a.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC497b.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bcut result a_1 a_2 } catch_result] {
     puts "Faulty OCC497:function CUT works wrongly "
index d7b82ba3c0c39b572a391d471cc87b456d74d6e3..f899ff8174d80e746d29b0199d8fa07f5085051a 100755 (executable)
@@ -9,10 +9,10 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC497c.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC497d.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bcut result a_1 a_2 } catch_result] {
     puts "Faulty OCC497:function CUT works wrongly "
index f85c8bfcfa4e0c98d6ccc4402337936f8e51b025..b4970836469d2b1ccd133fd87a7e390401846ac1 100755 (executable)
@@ -10,10 +10,10 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC497e.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC497f.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 bcut result a_1 a_2
 
index 9f62dac5a4f8c9409a94244eb767d707ed07b4c2..fd8c3849179b4db1356c4f3aa08d16cf3d060398 100755 (executable)
@@ -9,10 +9,10 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC497g.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC497h.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bfuse result a_1 a_2 } catch_result] {
     puts "Faulty OCC497:function FUSE works wrongly "
index 887cfef309351fd56ceb086666144e3d957e56b1..26fb1892c9090ebc08c38278496cdb378cf59d51 100755 (executable)
@@ -9,10 +9,10 @@ puts ""
 ########################################################
 
 restore [locate_data_file OCC497i.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC497j.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {bfuse result a_1 a_2 } catch_result] {
     puts "Faulty OCC497:function FUSE works wrongly "
diff --git a/tests/bugs/modalg/bug4993_1 b/tests/bugs/modalg/bug4993_1
new file mode 100755 (executable)
index 0000000..92b8f0f
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC4993"
+puts "============"
+puts ""
+######################################################
+# Problem in boolean fusion
+# (new topology)
+######################################################
+
+restore [locate_data_file OCC4993-s1.brep] s1 
+restore [locate_data_file OCC4993-s2.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s1 s2
+bopfuse result
+
+set square 4854.51
+set nb_info [nbshapes result]
+
+set nb_v_good 40
+set nb_e_good 64
+set nb_w_good 24
+set nb_f_good 24
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 155
+
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug4993_2 b/tests/bugs/modalg/bug4993_2
new file mode 100755 (executable)
index 0000000..6b46745
--- /dev/null
@@ -0,0 +1,32 @@
+puts "============"
+puts "OCC4993"
+puts "============"
+puts ""
+######################################################
+# Problem in boolean fusion
+# (new topology)
+######################################################
+
+restore [locate_data_file OCC4993-s1.brep] s1 
+restore [locate_data_file OCC4993-s2.brep] s2 
+
+checkshape s1
+checkshape s2
+
+bop s2 s1
+bopfuse result
+
+set square 4854.51
+set nb_info [nbshapes result]
+
+set nb_v_good 40
+set nb_e_good 64
+set nb_w_good 24
+set nb_f_good 24
+set nb_sh_good 1
+set nb_sol_good 1
+set nb_compsol_good 0
+set nb_compound_good 1
+set nb_shape_good 155
+
+set 2dviewer 0
index 2df8f63d2357b48d7a08dfe54d1addaf2bc43eaa..c5b845234cd4ae3ad1669908406e4af3e6f4eb98 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 ###############################
 
 restore [locate_data_file OCC500a.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC500b.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 if [catch {pipe result a_1 a_2 } catch_result] {
     puts "Faulty OCC500 : function PIPE works wrongly "
diff --git a/tests/bugs/modalg/bug526 b/tests/bugs/modalg/bug526
new file mode 100755 (executable)
index 0000000..1476e5f
--- /dev/null
@@ -0,0 +1,33 @@
+#INTERFACE IGES
+puts "========"
+puts "OCC526"
+puts "========"
+puts ""
+################################################
+## BRepAlgoAPI_Section fails to build planar sections on some faces
+################################################
+
+pload XDE
+catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
+
+restore [locate_data_file OCC592.brep] a 
+
+set Z 67.599311020481764
+plane p 0 0 $Z
+psection r1 a p 
+if ![regexp VERTEX [statshape r1]] {puts [format "OCC526 FAULTY Z=%f" $Z ] }
+
+set Z 66.599311020481764
+plane p 0 0 $Z 
+psection r2 a p 
+if ![regexp VERTEX [statshape r2]] {puts [format "OCC526 FAULTY Z=%f" $Z ] }
+
+set Z 65.599311020481764
+plane p 0 0 $Z 
+psection result a p 
+if ![regexp VERTEX [statshape result]] {puts [format "OCC526 FAULTY Z=%f" $Z ] }
+
+set length 27.8021
+set 2dviewer 1
+
+
diff --git a/tests/bugs/modalg/bug527 b/tests/bugs/modalg/bug527
new file mode 100755 (executable)
index 0000000..135d947
--- /dev/null
@@ -0,0 +1,16 @@
+pload QAcommands
+
+puts "========"
+puts "OCC527"
+puts "========"
+puts ""
+#####################################################
+## BRepAlgoAPI_Section creates very distant geometry on some planar sections
+#####################################################
+
+cpulimit 3600
+restore [locate_data_file OCC527.brep] result
+OCC527 result
+  
+set square 3774.42
+set 2dviewer 1
diff --git a/tests/bugs/modalg/bug528 b/tests/bugs/modalg/bug528
new file mode 100755 (executable)
index 0000000..4d11a8c
--- /dev/null
@@ -0,0 +1,23 @@
+
+puts "========================"
+puts "OCC528"
+puts "========================"
+puts ""
+##############################################
+## Result of bcut command is faulty although arguments are valid
+##############################################
+
+restore [locate_data_file OCC528_1.brep] c1 
+checkshape c1
+
+restore [locate_data_file OCC528_2.brep] c2 
+checkshape c2
+
+if { [catch { bcut result c1 c2 } catch_result] } {
+    puts "OCC528 Faulty: function BCUT works wrongly"
+} else {
+    puts "OCC528 OK:function BCUT works properly"
+}
+
+set square 124.092
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug530 b/tests/bugs/modalg/bug530
new file mode 100755 (executable)
index 0000000..d2f9ef0
--- /dev/null
@@ -0,0 +1,29 @@
+puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO OCC12345 ALL: Error : The square of result shape is"
+
+puts "======="
+puts "OCC530"
+puts "======="
+puts ""
+####################################
+## Draw hungs up during performing bfuse operation
+####################################
+
+cpulimit 3000
+
+restore [locate_data_file OCC530_1.brep] c1 
+checkshape c1
+
+restore [locate_data_file OCC530_2.brep] c2 
+checkshape c2
+
+if { [catch { bfuse result c1 c2 } catch_result] } {
+    puts "Faulty OCC530 : function BFUSE works wrongly"
+} else {
+    puts "OCC530 OK: function BFUSE works properly"
+}
+
+set square 0
+set 2dviewer 0
+
+
diff --git a/tests/bugs/modalg/bug534_1 b/tests/bugs/modalg/bug534_1
new file mode 100755 (executable)
index 0000000..6eab05b
--- /dev/null
@@ -0,0 +1,27 @@
+
+puts "========================"
+puts " OCC534 "
+puts " case 1 "
+puts "========================"
+puts ""
+
+hyperbola hyperbola 0 0 0 30 10
+extsurf es_hyperbola hyperbola 0 0 1
+offset es_hyperbola_of es_hyperbola 5
+mkface result es_hyperbola_of 0 3 0 40
+
+
+set tolerance [maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
+
+if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
+    puts "Faulty : Tolerance of shape is more then 1.0"
+} else {
+    puts "Tolerance is OK"
+}
+
+set square 11451.2
+set 2dviewer 0
+
diff --git a/tests/bugs/modalg/bug534_2 b/tests/bugs/modalg/bug534_2
new file mode 100755 (executable)
index 0000000..7a326cc
--- /dev/null
@@ -0,0 +1,29 @@
+
+puts "========================"
+puts " OCC534 "
+puts " case 2 "
+puts "========================"
+puts ""
+
+hyperbola hyperbola 0 0 0 30 10
+extsurf es_hyperbola hyperbola 0 0 1
+offset es_hyperbola_of es_hyperbola 5
+offset es_hyperbola_of_of es_hyperbola_of 5
+mkface result es_hyperbola_of_of 0 3 0 40
+
+set tolerance [maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
+
+if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
+    puts "Faulty : Tolerance of shape is more then 1.0"
+} else {
+    puts "Tolerance is OK"
+}
+
+set square 11460.7
+set 2dviewer 0
+
+
+
diff --git a/tests/bugs/modalg/bug534_3 b/tests/bugs/modalg/bug534_3
new file mode 100755 (executable)
index 0000000..57d84c3
--- /dev/null
@@ -0,0 +1,26 @@
+
+puts "========================"
+puts " OCC534 "
+puts " case 3 "
+puts "========================"
+puts ""
+
+hyperbola hyperbola 0 0 0 30 10
+revsurf rs_hyperbola hyperbola 0 400 0 1 0 0
+offset rs_hyperbola_of rs_hyperbola 5
+mkface result rs_hyperbola_of .3 .5 .3 .5
+
+set tolerance [maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
+
+if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
+    puts "Faulty : Tolerance of shape is more then 1.0"
+} else {
+    puts "Tolerance is OK"
+}
+
+set square 171.992
+set 2dviewer 0
+
diff --git a/tests/bugs/modalg/bug534_4 b/tests/bugs/modalg/bug534_4
new file mode 100755 (executable)
index 0000000..c15d7e0
--- /dev/null
@@ -0,0 +1,26 @@
+
+puts "========================"
+puts " OCC534 "
+puts " case 4 "
+puts "========================"
+puts ""
+
+hyperbola hyperbola 0 0 0 30 10
+revsurf rs_hyperbola hyperbola 0 400 0 1 0 0
+offset rs_hyperbola_of rs_hyperbola 5
+offset rs_hyperbola_of_of rs_hyperbola_of 5
+mkface result rs_hyperbola_of_of .3 .5 .3 .5
+
+set tolerance [maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
+
+if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
+    puts "Faulty : Tolerance of shape is more then 1.0"
+} else {
+    puts "Tolerance is OK"
+}
+
+set square 84.8861
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug534_5 b/tests/bugs/modalg/bug534_5
new file mode 100755 (executable)
index 0000000..1b73981
--- /dev/null
@@ -0,0 +1,25 @@
+
+puts "========================"
+puts " OCC534 "
+puts " case 5 "
+puts "========================"
+puts ""
+
+parabola parabola 0 0 0 30
+revsurf rs_parabola parabola 0 400 0 1 0 0
+offset rs_parabola_of rs_parabola 10
+mkface result rs_parabola_of .3 .5 .3 .5
+
+set tolerance [maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
+
+if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
+    puts "Faulty : Tolerance of shape is more then 1.0"
+} else {
+    puts "Tolerance is OK"
+}
+
+set square 13.3227
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug534_6 b/tests/bugs/modalg/bug534_6
new file mode 100755 (executable)
index 0000000..a8bef01
--- /dev/null
@@ -0,0 +1,27 @@
+
+puts "========================"
+puts " OCC534 "
+puts " case 6 "
+puts "========================"
+puts ""
+
+parabola parabola 0 0 0 30
+revsurf rs_parabola parabola 0 400 0 1 0 0
+offset rs_parabola_of rs_parabola 10
+offset rs_parabola_of_of rs_parabola_of 5
+mkface result rs_parabola_of_of .3 .5 .3 .5
+
+set tolerance [maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance
+
+if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
+    puts "Faulty : Tolerance of shape is more then 1.0"
+} else {
+    puts "Tolerance is OK"
+}
+
+set square 11.9915
+set 2dviewer 0
+
diff --git a/tests/bugs/modalg/bug535 b/tests/bugs/modalg/bug535
new file mode 100755 (executable)
index 0000000..b110cd7
--- /dev/null
@@ -0,0 +1,35 @@
+#INTERFACE IGES
+puts "======="
+puts "OCC535"
+puts "======="
+puts ""
+#############################################################
+## After command "fixshape" in DRAW on attached shape quantity of shapes obtained
+## with help command "nbs" is increased.
+#############################################################
+
+pload XDE
+catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
+
+restore [locate_data_file OCC535.brep] a 
+
+set nb_info_a [nbshapes a]
+regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info_a full r1
+
+fixshape result a
+
+set nb_info_res [nbshapes result]
+regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info_res full r2
+
+puts ""
+puts [format "before Shapes = %s     after Shapes = %s" $r1 $r2]
+puts ""
+
+if { $r1 == $r2 } {
+    puts "OCC535 OK"
+} else {
+    puts "OCC535 Faulty"
+}
+
+set square 3554.31
+set 2dviewer 0
diff --git a/tests/bugs/modalg/bug548 b/tests/bugs/modalg/bug548
new file mode 100755 (executable)
index 0000000..963ee8f
--- /dev/null
@@ -0,0 +1,31 @@
+puts "========"
+puts "OCC548"
+puts "OCC628"
+puts "========"
+puts ""
+##################################################################
+# Function BRepTool::IsClosed returns Standard_True although argument is open shell
+# Incorrect work of BRepCheck 
+##################################################################
+
+pload XDE
+catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
+
+restore [locate_data_file CTO908_topo103-t.brep] a 
+
+decho off
+
+checkshape a
+checkshape a b
+
+decho on
+
+fixshape result a 0.001
+
+set che [checkshape result c]
+if { [regexp {problems} $che] } {
+   puts "Faulty OCC628"
+}
+
+set square 119630
+set 2dviewer 2
index f53d376ec3479c96a710f43e9c5e2bcadf3ffbe5..ad320cbd6e04d64d9b7500c08f0d682409e1196e 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 ##########################
 
 restore [locate_data_file OCC571.brep] a 
-puts [checkshape a]
+checkshape a
 explode a
 
 if [catch {fillet result a_1 1.2 a_2 } catch_result] {
index 6d4add64e2f590210ff052d1fdd19d1a60b77f6e..99c38bbb00571df93324b362a3d5865bfdca5a53 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 ##########################
 
 restore [locate_data_file OCC571.brep] a 
-puts [checkshape a]
+checkshape a
 explode a
 
 if [catch {fillet result a_1 0.03 a_2 } catch_result] {
index d72399432ab69791d6a68164f96838c06bd07678..aa41a12a204a9f78dec280c2abb50f3ee28a1ac4 100755 (executable)
@@ -7,8 +7,8 @@ puts ""
 
 restore [locate_data_file BUC60974.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_1 a_2
 set square 191388
index d27b667c69cb0849b39f8abd42b7bb9259510f5b..0774f01fae26b11bd39b2b31331d8e1b440ddf8b 100755 (executable)
@@ -7,8 +7,8 @@ puts ""
 
 restore [locate_data_file BUC60974.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_2 a_1
 set square 191388
index 25acfda5d351d0796e51f4dba6fe32a3249958c5..76a81bb97b653f5125225cdfa03cf02e4b490e10 100755 (executable)
@@ -7,8 +7,8 @@ puts ""
 
 restore [locate_data_file BUC60975.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_1 a_2
 set square 241843
index c926bf7eb0b454859fd786a8fd6cf7a910a69b1f..ea17b728112cbb54a7bff3cdb1635acc49138043 100755 (executable)
@@ -7,8 +7,8 @@ puts ""
 
 restore [locate_data_file BUC60975.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_2 a_1
 set square 241843
index 0444f1f00f307a85d51c54daed334026a4f1c821..4c1f33453b4b327c57412610943e46684da321d4 100755 (executable)
@@ -8,9 +8,9 @@ puts "========================"
 ############################################################
 cpulimit 5000
 restore [locate_data_file OCC600_1.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file OCC600_2.brep] b 
-puts [checkshape b]
+checkshape b
 bop b a
 
 bopcommon result
index a1666fb1f60fd3adb26fc5fc2a1088f83f014976..0245268c17734d41b937abd10d290f3c215837c3 100755 (executable)
@@ -10,7 +10,7 @@ puts ""
 ###########################################
 
 restore [locate_data_file OCC602.brep] a 
-puts [checkshape a]
+checkshape a
 
 explode a e
 
index 03af86bbdd4ce9f4b48602a030cb94316cabe8dd..d6aa6f1934a068c8452313f9cbd04e0f65ceccd1 100755 (executable)
@@ -8,9 +8,9 @@ puts ""
 ##############################
 
 restore [locate_data_file OCC605a.brep] w1 
-puts [checkshape w1]
+checkshape w1
 restore [locate_data_file OCC605b.brep] w2 
-puts [checkshape w2]
+checkshape w2
 
 if { [catch {pipe result w2 w1 } catch_result] } {
     puts "Faulty OCC605: function PIPE works with exception."
index 62099e0fd590fde500e67843640d4de9f2d727c9..2229d67268a2e8714d0d6094b6345e64fa8caff1 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 #############################
 
 restore [locate_data_file OCC615.brep] a 
-puts [checkshape a]
+checkshape a
 explode a e
 
 if [catch {blend result a 9 a_15 } catch_result] {
index f5bfc8861bcfeb47cf52137a8c576765233e33f0..386833ecc1f6ff25ff3e07d28536a6029097a56b 100755 (executable)
@@ -8,13 +8,13 @@ puts ""
 ########################################
 
 restore [locate_data_file OCC616.brep] a 
-puts [checkshape a]
+checkshape a
 
 if { [catch {mkoffset result a 5 -2} catch_result] } {
     puts "Faulty OCC616: function MKOFFSET works with exception"
 } else {
     renamevar result_1 result
-    puts [checkshape result]
+    checkshape result
     puts "OCC616 OK: function MKOFFSET works OK"
 }
 
index 4ae14f8f590c7f55be28ecea7bcef338ed09a6ed..1f2d8d52ac935feb87bb80159f57d21f5291ef65 100755 (executable)
@@ -10,22 +10,22 @@ cpulimit 1400
 restore [locate_data_file OCC62.brep] sh 
 
 explode sh 
-puts [checkshape sh]
+checkshape sh
 
 bfuse res1 sh_1 sh_3
-puts [checkshape res1]
+checkshape res1
 
 bfuse res2 res1 sh_2 
-puts [checkshape res2]
+checkshape res2
 
 bfuse res3 res2 sh_6
-puts [checkshape res3]
+checkshape res3
 
 bfuse res4 res3 sh_4
-puts [checkshape res4]
+checkshape res4
 
 bfuse res5 res4 sh_5
-puts [checkshape res5]
+checkshape res5
 
 renamevar res5 result
 
index e29df95fa17d5c0a7f0509ad0aebca9b9be5de09..cdf64646839998060a156775659b14a7668749a2 100755 (executable)
@@ -8,9 +8,9 @@ puts ""
 ############################
 
 restore [locate_data_file OCC620a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file OCC620b.brep] b 
-puts [checkshape b]
+checkshape b
 
 bop a b
 
index c6e6ad1cd13f84a83daeeee52aea0d44a7a09f1e..94eb0c211b70e6511544dc5b2d1d791cb992da8c 100755 (executable)
@@ -8,9 +8,9 @@ puts ""
 ############################
 
 restore [locate_data_file OCC620a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file OCC620b.brep] b 
-puts [checkshape b]
+checkshape b
 
 bop a b
 
index 703c38da3bb712c6c30ca9b8a65dc7c3d3a99ec0..49f765c456b709d0031d342ecb3900ea11aded89 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 pload QAcommands
 
 restore [locate_data_file OCC625.brep] a 
-puts [checkshape a]
+checkshape a
 
 vinit
 tclean a
@@ -17,7 +17,7 @@ explode a e
 
 blend res1 a 10 a_22 10 a_14
 blend result res1 10 a_17 10 a_4
-puts [checkshape result]
+checkshape result
 
 vinit
 vdisplay result
index 90b1da53508d98cd122806996a9939ac53bc4085..79ae74234106b1836c7f209509674712ed5ca0c8 100755 (executable)
@@ -10,10 +10,10 @@ puts ""
 ##########################################
 
 restore [locate_data_file OCC629a.brep] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file OCC629b.brep] b 
-puts [checkshape b]
+checkshape b
 
 if [catch {pipe result a b } catch_result] {
     puts "Faulty OCC629: function PIPE works wrongly"
index b1f49791a249d1152d5b178f715300c2d1fc486f..88f5cf23c32784c415c1925ca5e5f25db8414144 100755 (executable)
@@ -8,13 +8,13 @@ puts ""
 #####################################
 
 restore [locate_data_file OCC636a.brep] s 
-puts [checkshape s]
+checkshape s
 
 restore [locate_data_file OCC636b.brep] s1 
-puts [checkshape s1]
+checkshape s1
 
 restore [locate_data_file OCC636c.brep] s2 
-puts [checkshape s2]
+checkshape s2
 
 mksweep s
 addsweep s1
index 4082fa104bc4d7474fbe8c446ff07b58d87454e4..5e528f146b2dc7c6a9a8efc879d754967a166f8a 100755 (executable)
@@ -9,13 +9,13 @@ puts ""
 ##########################################
 
 restore [locate_data_file OCC637a.brep] s 
-puts [checkshape s]
+checkshape s
 
 restore [locate_data_file OCC636c.brep] s1 
-puts [checkshape s1]
+checkshape s1
 
 restore [locate_data_file OCC637c.brep] s2 
-puts [checkshape s2]
+checkshape s2
 
 mksweep s
 addsweep s1
index f1b3e33a6adae34fdeedc6834410bd09ab6e8fa7..75c5fc6568bed8663a89842eaf40925dd2603c74 100755 (executable)
@@ -9,13 +9,13 @@ puts ""
 ##########################################
 
 restore [locate_data_file OCC637d.brep] s 
-puts [checkshape s]
+checkshape s
 
 restore [locate_data_file OCC637c.brep] s1 
-puts [checkshape s1]
+checkshape s1
 
 restore [locate_data_file OCC637f.brep] s2 
-puts [checkshape s2]
+checkshape s2
 
 mksweep s
 addsweep s1
index 676c4a0d67a14d59291641d3cd8ab27932f03d50..73a7ae195c82b83b3df9da3f683560da24c2d0b7 100755 (executable)
@@ -6,7 +6,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC67.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 explode sh e
 
index d0a23b1fa0fcd9857bd2de443f72739b986a97eb..d5fd0580c6e1592efea2ed134d525019f195746f 100755 (executable)
@@ -10,10 +10,10 @@ puts ""
 #######################################################
 
 restore [locate_data_file OCC673a.brep] a 
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file OCC673b.brep] b 
-puts [checkshape b]
+checkshape b
 
 if [catch {spliteshape result a a b} catch_result] {
     puts "Faulty OCC673: function SPLITSHAPE works wrongly"
index e78bbac6ed119fff45ad3bd22c19f35ec65d1b7e..c262ce645b6f2deb2176dc98bc38cc180adfce20 100755 (executable)
@@ -6,7 +6,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC68.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 explode sh 
 
index 93d17289660c1ed1145382a9be301300c256956a..d65312a1828a522537b4f0bcce57e01b446a0ecf 100755 (executable)
@@ -6,7 +6,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC68.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 explode sh 
 
index fa9b714cbda7a6eef9eb9330c8a2573a97c81046..ec4a96a3c193cfe9ba740d3889acd0c17f166a4b 100755 (executable)
@@ -24,47 +24,47 @@ tcopy c1 cc1
 tcopy c2 cc2
 bcommon int1 cc1 cc2
 ##########checkshape -top int1
-puts [checkshape -top int1]
+checkshape -top int1
 
 tcopy c1 cc1
 tcopy c2 cc2
 bcut cut1 cc1 cc2
-puts [checkshape -top cut1]
+checkshape -top cut1
 
 tcopy c1 cc1
 tcopy c2 cc2
 bcut cut2 cc2 cc1
 ##########checkshape -top cut2
-puts [checkshape -top cut2]
+checkshape -top cut2
 
 compound int1 cut1 cut2 comp3
 ##########checkshape -top comp3
-puts [checkshape -top comp3]
+checkshape -top comp3
 #donly comp3
 
 tcopy comp3 ccomp3
 tcopy h3 ch3
 bcommon int2 ccomp3 ch3
 ##########checkshape -top int2
-puts [checkshape -top int2]
+checkshape -top int2
 #donly int2
 
 tcopy comp3 ccomp3
 tcopy h3 ch3
 bcut cut3 ccomp3 ch3
 ##########checkshape -top cut3
-puts [checkshape -top cut3]
+checkshape -top cut3
 #donly cut3
 
 tcopy comp3 ccomp3
 tcopy h3 ch3
 bcut cut4 ch3 ccomp3
 ##########checkshape -top cut4
-puts [checkshape -top cut4]
+checkshape -top cut4
 
 compound int2 cut3 cut4 result
 ##########checkshape -top res
-puts [checkshape -top result]
+checkshape -top result
 
 ##########set che [checkshape -top res]
 ##########
diff --git a/tests/bugs/modalg/bug693_1 b/tests/bugs/modalg/bug693_1
new file mode 100755 (executable)
index 0000000..51bacab
--- /dev/null
@@ -0,0 +1,78 @@
+puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO OCC12345 ALL: Error : The square of result shape is"
+
+puts "================"
+puts "OCC693"
+puts "================"
+puts ""
+###################################################
+## The boolean operations give incorrect result if one of shapes is compound 
+## consisting of several adjoint solids
+####################################################
+
+box h1 234 52 0 41 98 40
+box v1 241 136 20 31 31 15
+box h3 215 120 20 78 15 15
+
+compound h1 c1
+compound v1 c2
+
+tcopy c1 cc1
+tcopy c2 cc2
+
+bop cc1 cc2
+bopcommon int1
+
+checkshape -top int1
+
+tcopy c1 cc1
+tcopy c2 cc2
+
+bop cc1 cc2
+bopcut cut1
+
+checkshape -top cut1
+
+tcopy c1 cc1
+tcopy c2 cc2
+
+bop cc2 cc1
+bopcut cut2
+
+checkshape -top cut2
+
+compound int1 cut1 cut2 comp3
+
+checkshape -top comp3
+
+tcopy comp3 ccomp3
+tcopy h3 ch3
+
+bop ccomp3 ch3
+bopcommon int2
+
+checkshape -top int2
+
+tcopy comp3 ccomp3
+tcopy h3 ch3
+
+bop ccomp3 ch3
+bopcut cut3
+
+checkshape -top cut3
+
+tcopy comp3 ccomp3
+tcopy h3 ch3
+
+bop ch3 ccomp3
+bopcut cut4
+
+checkshape -top cut4
+
+compound int2 cut3 cut4 result
+
+checkshape -top result
+
+set square 33196
+set 3dviewer 1
+
index 6014e4635b5d1a98b305afd84a677933a13faa68..e4994475154c36c929965c49022566362a71529a 100755 (executable)
@@ -12,8 +12,8 @@ puts ""
 restore [locate_data_file OCC697_1.brep] b1 
 restore [locate_data_file OCC697_2.brep] b2 
 
-puts [checkshape b1]
-puts [checkshape b2]
+checkshape b1
+checkshape b2
 ##############################################
 if { [catch {bfuse result b1 b2} catch_result] } {
 ##############################################
index 616e2e31b4a779c5e92e77279240b16073e95ef6..5c97f8eb926743ee02e67b73734c413b88ba6564 100755 (executable)
@@ -16,8 +16,8 @@ puts "#"
 restore [locate_data_file OCC697_2.brep] b2 
 restore [locate_data_file OCC697_3.brep] b3 
 
-puts [checkshape b2]
-puts [checkshape b3]
+checkshape b2
+checkshape b3
 ##############################################
 if { [catch {bfuse result b2 b3} catch_result] } {
 ##############################################
index 7c1e9d1bd2ea46d223f4c801172124bff74a8d62..cd9a6275dc892fd86c427f88fe550f84627fcae3 100755 (executable)
@@ -5,9 +5,9 @@ puts "======= OCC698 ======="
 ######################################
 cpulimit 10000
 restore [locate_data_file OCC698_1.brep] b4 
-puts [checkshape b4]
+checkshape b4
 restore [locate_data_file OCC698_2.brep] b5 
-puts [checkshape b5]
+checkshape b5
 
 bcut result b5 b4
 
index 30c82c52bd48a37b21119bb91ffdec99f6d79cc2..87ed25a6e6587fad2330ba69e0b4b6f789f1fb27 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 #########################################################
 
 restore [locate_data_file OCC712.brep] a 
-puts [checkshape a]
+checkshape a
 
 explode a f
 
index dde4163ad8c2db2824c9a272997d5d1843cc2341..41152a865865c7c9cb2217d06e6e7d2314da653c 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ####################################################
 
 restore [locate_data_file OCC714.brep] a 
-puts [checkshape a]
+checkshape a
 
 set nb_info1 [nbshapes a]
 regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info1 full ve1
index 6d1fa85a0abc7c2ad762d95863307184a4d15e7d..74a941b321afcb1a7e632212084dd917b1e96382 100755 (executable)
@@ -12,8 +12,8 @@ puts ""
 
 restore [locate_data_file OCC726.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcommon result a_1 a_2
 
index 8381e68322aeddfcbe6fa6b5da3d23215cb8d6b3..2104c3475bab7a7737b34fc25f70a497f1bf3ab2 100755 (executable)
@@ -12,8 +12,8 @@ puts ""
 
 restore [locate_data_file OCC726.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_1 a_2
 
index b5a01dd0f16d2dcdcc893202579c0a982aa4a9d4..1742d89715dd262f928c7982349b584c37a80ae4 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 #######################################
 
 restore [locate_data_file OCC743_corr2.brep] a 
-puts [checkshape a]
+checkshape a
 
 if { [catch { mkoffset result a 1 -15 } status] } {
     puts "Faulty OCC743"
@@ -26,7 +26,7 @@ if { [catch { mkoffset result a 1 -15 } status] } {
            set num [llength $ll]
            puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
            foreach {k} $ll {
-               puts [checkshape $k]
+               checkshape $k
                regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                if { $cs != 0 } {
                    puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index 339e27f42dd8ce74ec7ba9e52fbe00d1cd50d90e..812b58777067825da3df99d168ffa2fb8548b788 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 #######################################################
 
 restore [locate_data_file OCC745_1.brep] a 
-puts [checkshape a]
+checkshape a
 
 if { [catch { mkoffset result a 1 -10 } status] } {
   puts "Faulty : an exception was caught"
@@ -27,7 +27,7 @@ if { [catch { mkoffset result a 1 -10 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index ba30664906654cd1e9df081264015344b2d2772f..143e2acb1f58dec7a4ecd9f2f431330a246da7c2 100755 (executable)
@@ -35,7 +35,7 @@ if { [catch { mkoffset result w 10 -7 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index f87a6e1a9dca1da3441fbaba5682ba194997ed6a..c8d52b2d7590754ecf502309de1971abc9a3880c 100755 (executable)
@@ -12,7 +12,7 @@ puts ""
 ##################################################
 
 restore [locate_data_file OCC745_nb3.brep] w 
-puts [checkshape w]
+checkshape w
 
 if { [catch { mkoffset result w 1 10 } status] } {
     puts "Faulty OCC745"
@@ -30,7 +30,7 @@ if { [catch { mkoffset result w 1 10 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
diff --git a/tests/bugs/modalg/bug745_13 b/tests/bugs/modalg/bug745_13
new file mode 100755 (executable)
index 0000000..50769b4
--- /dev/null
@@ -0,0 +1,25 @@
+
+puts "========"
+puts "OCC745"
+puts "========"
+puts ""
+#################################
+# Infinite loop during bisector loci calculation.
+#################################
+
+restore [locate_data_file OCC745_nb5.brep] w 
+checkshape w
+mkplane result w
+topoload result
+drawcont
+
+cpulimit 600
+
+mat
+
+result
+
+puts "OCC745 OK"
+
+set square 5844.54
+set 2dviewer 1
index 4b9021a846058d1cd32c00ba7d98f9732b59a60c..d8d60d5215ff4a21cb4423a5be72e985a4e7d088 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ##################################################
 
 restore [locate_data_file OCC745_2.brep] a 
-puts [checkshape a]
+checkshape a
 mkplane pl a
 topoload pl
 drawcont
diff --git a/tests/bugs/modalg/bug745_3 b/tests/bugs/modalg/bug745_3
new file mode 100755 (executable)
index 0000000..b153bec
--- /dev/null
@@ -0,0 +1,29 @@
+
+puts "========"
+puts "OCC745"
+puts "========"
+puts ""
+###########################
+## Incorrect MAT (map of bissectors)
+###########################
+
+puts "#"
+puts "Non stable test case on Linux. MKV. 04.02.2011"
+puts " ( Gif )"
+puts "#"
+
+restore [locate_data_file OCC745_ellipse.brep] w 
+checkshape w
+mkplane result w
+topoload result
+drawcont
+
+smallview -2D-
+2dfit
+
+mat
+#result
+
+set square 8357.41
+set 2dviewer 0
+
index a29a0d8e5e2e6cecd41c8d338e4cf03576af0a13..a4b335ef56adb17eb43305c66de39d01da255a78 100755 (executable)
@@ -13,7 +13,7 @@ puts ""
 ###########################################
 
 restore [locate_data_file OCC745_pocket1.brep] a 
-puts [checkshape a]
+checkshape a
 
 if { [catch { mkoffset result a 1 -10 } status] } {
     puts "Faulty OCC745"
@@ -32,7 +32,7 @@ if { [catch { mkoffset result a 1 -10 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
diff --git a/tests/bugs/modalg/bug745_5 b/tests/bugs/modalg/bug745_5
new file mode 100755 (executable)
index 0000000..0365d37
--- /dev/null
@@ -0,0 +1,24 @@
+
+puts "========"
+puts "OCC745"
+puts "========"
+puts ""
+############################
+# Not correct creation of bisector loci:
+############################
+
+restore [locate_data_file OCC745_pocket4.brep] w 
+checkshape w
+plane p
+mkface result p w
+topoload result
+drawcont
+
+smallview -2D-
+2dfit
+
+mat
+result
+
+set square 5844.21
+set 2dviewer 0
index e3dff58e6b26be913b1d23d1b618e423601f8851..d07d2536b74651d4831eda3e3dfbc05a263e45b6 100755 (executable)
@@ -11,7 +11,7 @@ puts ""
 ################################
 
 restore [locate_data_file BUC60878-wire3.brep] a 
-puts [checkshape a]
+checkshape a
 
 if { [catch { mkoffset result a 1 -10 } status] } {
     puts "Faulty OCC745"
@@ -29,7 +29,7 @@ if { [catch { mkoffset result a 1 -10 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index 4d909b8a99940b0c82eea488fd12bfd878f579bf..ed125119db2a2c4fdf1fbc43adf864f44437aac3 100755 (executable)
@@ -10,7 +10,7 @@ puts ""
 ######################################################
 
 source [locate_data_file OCC745_cont1.dat]
-puts [checkshape pp]
+checkshape pp
 
 if { [catch { mkoffset result pp 1 -10 } status] } {
     puts "Faulty OCC745"
@@ -28,7 +28,7 @@ if { [catch { mkoffset result pp 1 -10 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index 3dd5080ade6e273b698c44180b7383f0317c4679..8fa54a95a055427c4cd783c211c4b28603306d82 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ###################################################
 
 restore [locate_data_file BUC60830-face2.brep] f 
-puts [checkshape f]
+checkshape f
 
 if { [catch { mkoffset result f 45 -0.042225 } status] } {
     puts "Faulty OCC745"
@@ -26,7 +26,7 @@ if { [catch { mkoffset result f 45 -0.042225 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index d56e2b8eb5546ba8b41434d2f9ff5cf2ace94d39..1ad8a6cabd09dd42528837a82ea67a8c1da2186c 100755 (executable)
@@ -10,7 +10,7 @@ puts ""
 #####################################################
 
 source [locate_data_file OCC745_cont2.dat]
-puts [checkshape pq]
+checkshape pq
 
 if { [catch { mkoffset result pq 1 -10 } status] } {
     puts "Faulty OCC745"
@@ -28,7 +28,7 @@ if { [catch { mkoffset result pq 1 -10 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index f94d388cdd38be2b8db74c7fe386c0230b9a70a6..053e0bf5c991332dc3c36a0c30cff2fbb2d857c3 100755 (executable)
@@ -8,9 +8,9 @@ puts ""
 ##################################
 
 restore [locate_data_file OCC748_1.brep] s1 
-puts [checkshape s1]
+checkshape s1
 restore [locate_data_file OCC748_2.brep] s2 
-puts [checkshape s2]
+checkshape s2
 
 bcommon result s1 s2
 
index becea231e34b3335fed45f1909dbd6c4bd14bb2a..6866b0d9771b4dcd9335221a817acdf66fd38f1a 100755 (executable)
@@ -10,9 +10,9 @@ puts ""
 ####################################################################
 
 restore [locate_data_file OCC755_1.brep] a1 
-puts [checkshape a1]
+checkshape a1
 restore [locate_data_file OCC755_2.brep] a2 
-puts [checkshape a2]
+checkshape a2
 
 bcut result a1 a2
 
index ef4099a84d8b30ab34cb02cc68479d336a25eed0..cfe478409e4e9739681f24ac989cb1abbf2e43c1 100755 (executable)
@@ -10,13 +10,13 @@ puts ""
 
 restore [locate_data_file OCC758.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
-puts [checkshape a_3]
+checkshape a_1
+checkshape a_2
+checkshape a_3
 
 bcut res1 a_1 a_2
 
-puts [checkshape res1]
+checkshape res1
 
 bcut result res1 a_3
 
index 6eaaa724796ff428d983b943ef50bcd51d934824..f1ee1169a0c1ee408f4dbdc4e1e17b5980a930ea 100755 (executable)
@@ -8,9 +8,9 @@ puts ""
 ####################################
 
 restore [locate_data_file OCC763_c1.brep] c1 
-puts [checkshape c1]
+checkshape c1
 restore [locate_data_file OCC763_c2.brep] c2 
-puts [checkshape c2]
+checkshape c2
 
 bop c1 c2
 bopfuse result
index 9dd57983f2caf33848078be515f2ee884812eb33..ef994793ec93ad86fcd99e204b43913c9f04de2c 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 ######################################################
 
 restore [locate_data_file buc60866a.rle] f 
-puts [checkshape f]
+checkshape f
 
 restore [locate_data_file buc60866b.rle] w
-puts [checkshape w]
+checkshape w
 
 pipe result w f
 
index edb86e467abeb05a0d99440a043d866b0e9ddc79..3d04ff31d1c888819d31ac04efdf5828224413b4 100755 (executable)
@@ -12,13 +12,13 @@ puts ""
 
 restore [locate_data_file OCC770.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
-puts [checkshape a_3]
+checkshape a_1
+checkshape a_2
+checkshape a_3
 
 bfuse res1 a_1 a_2
 
-puts [checkshape res1]
+checkshape res1
 
 bfuse result res1 a_3
 
index 0e48e6f9b8ceff587b4916627422aa97b93f4aa5..58f902941db543787bc2e26fe637776f355c5061 100755 (executable)
@@ -10,13 +10,13 @@ puts ""
 
 restore [locate_data_file OCC771.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
-puts [checkshape a_3]
+checkshape a_1
+checkshape a_2
+checkshape a_3
 
 bfuse res1 a_1 a_2
 
-puts [checkshape res1]
+checkshape res1
 
 bfuse result res1 a_3
 
index 5e7ea7271876f2b3976425367928e7db159c711e..3b3233171f9d8fc8e73b23a9f78580a3c23d0ade 100755 (executable)
@@ -12,8 +12,8 @@ puts ""
 
 restore [locate_data_file OCC772.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcommon result a_1 a_2
 
index 600684ad6c0ce75f8f998da725142d30a471ca8a..b8a4a1a21e47f8d70312ea3a9c2e9d4a82d7b8b2 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC774.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 if { [catch { bcut result a_1 a_2 } status] } {
     puts "Faulty OCC774 (case 1)"
index 44d9f229a1a19e5f7002c786978d9ffe6234aa7b..8d902616ce3d10d9be9cc4e054364bdcbabff482 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 ##
 restore [locate_data_file OCC774.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 if { [catch { bcut result a_2 a_1 } status] } {
     puts "Faulty OCC774 (case 2)"
index 83e11e5311ff092c92aa27494af5aa76d55235b9..09239ef1c3325cad89a145db18496b89226b30c0 100755 (executable)
@@ -10,8 +10,8 @@ puts ""
 
 restore [locate_data_file OCC775.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_1 a_2
 
index 557fc4388eb25ceae5326cf23e2096ab0c42b0cb..2478e609842a88c72173d7bc7cd5a6a1eed52a44 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC776.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_1 a_2
 
index 2f267bb154481d8a41dec64cedda5eae6ba8fa97..cc8962d7a0efe5e5144a7f9b06d1666170e1fd98 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC776.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_2 a_1
 
index 5462cd6d524c4b2d05b41fb54bac0e86f52f603a..8dfba8f219650f92bceed72addeeb4cc1873a35b 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC778.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_1 a_2
 
index ce42192daa5a58c7d5c9cad1a5ae9c34c96962b0..0fead207ebca2956809d97b089043c53736cf460 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC778.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_2 a_1
 
index c53e3ca9c840f81b6e1c368002257baab7958477..e6d938f954b49a7663b1802cf1cfd463bfbcca13 100755 (executable)
@@ -8,13 +8,13 @@ puts ""
 ################################
 
 restore [locate_data_file OCC779_s1.brep] s1 
-puts [checkshape s1]
+checkshape s1
 restore [locate_data_file OCC779_s2.brep] s2 
-puts [checkshape s2]
+checkshape s2
 
 ttranslate s1 0 0 -30
 prism s1p s1 0 0 70
-puts [checkshape s1p]
+checkshape s1p
 
 bcommon result s1p s2
 
index 865013a281671c2fbd4e5c6719ffbb20520b0214..5b01cb84be70ee02556f6846814eb5b59b8e3250 100755 (executable)
@@ -10,8 +10,8 @@ puts ""
 #datadir /disk4/QA/hotline/GRIDS/chl/data
 restore [locate_data_file BUC60875_wire.brep] w 
 restore [locate_data_file BUC60875_profile.brep] p
-puts [checkshape w]
-puts [checkshape p]
+checkshape w
+checkshape p
 
 pipe result w p
 set square 10191.8
index 81dc7fdb4054c6839f52583754e5ca553dca5383..41a967261a3fb1e54b636c804a6ffa5c3c1d3f06 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC780.brep] f 
 explode f f
-puts [checkshape f_1]
-puts [checkshape f_2]
+checkshape f_1
+checkshape f_2
 
 bcommon result f_1 f_2
 
index 4b72b48bd73ba681fdfc01a534573a70ad178531..6c90fe6669d0ea7f3d0b4002f54277293f1447e2 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 
 restore [locate_data_file OCC780.brep] f 
 explode f f
-puts [checkshape f_1]
-puts [checkshape f_2]
+checkshape f_1
+checkshape f_2
                     
 bfuse result f_1 f_2
 
index 47b18898af0cac8450938ffa439900c2dbde9ec3..84e95b82d32a1aec85774502d74c2a0e937007d4 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ##########################################################
 
 restore [locate_data_file BUC60877_lh.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 plane pl 820 198 140 -1e-06 0 1
 mkface f pl -1000 500 -300 100
index 63c61bd26adac99eab5693138c67a7802ef6d64b..31ccd3acf781cc4723dc462d4e5285e90a914078 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ###############################
 
 restore [locate_data_file BUC60907_px1.rle] sh 
-puts [checkshape sh]
+checkshape sh
 
 plane f 60 0 0 1 0 0
 mkface f f
diff --git a/tests/bugs/modalg/bug817_1 b/tests/bugs/modalg/bug817_1
new file mode 100755 (executable)
index 0000000..2c1f123
--- /dev/null
@@ -0,0 +1,32 @@
+puts "TODO OCC12345 ALL: OCC817: Error"
+puts "TODO OCC12345 ALL: Error : The square of result shape is"
+
+pload QAcommands
+
+puts "============"
+puts "OCC817"
+puts "============"
+puts ""
+#############################
+## Bad results of BRepAlgoAPI_Common
+#############################
+
+set InfoList [OCC817 result 10]
+
+set OriginalVolume 0
+regexp {Info: Original volume  = ([-0-9.+eE]+)} $InfoList full OriginalVolume
+
+set AccumulatedMeshedVolume 0
+regexp {Info: Accumulated meshed volume = ([-0-9.+eE]+)} $InfoList full AccumulatedMeshedVolume
+
+set percent_max 0.1
+set percent [expr abs(${AccumulatedMeshedVolume} - ${OriginalVolume}) / (${OriginalVolume}) * 100.]
+
+if {${percent} > ${percent_max}} {
+    puts "OCC817: Error"
+} else {
+    puts "OCC817: OK"
+}
+
+set 2dviewer 0
+set square 0
diff --git a/tests/bugs/modalg/bug817_2 b/tests/bugs/modalg/bug817_2
new file mode 100755 (executable)
index 0000000..75a2c04
--- /dev/null
@@ -0,0 +1,28 @@
+pload QAcommands
+
+puts "============"
+puts "OCC817"
+puts "============"
+puts ""
+#############################
+## Bad results of BRepAlgoAPI_Common
+#############################
+
+set InfoList [OCC817 result 15]
+
+set OriginalVolume 0
+regexp {Info: Original volume  = ([-0-9.+eE]+)} $InfoList full OriginalVolume
+
+set AccumulatedMeshedVolume 0
+regexp {Info: Accumulated meshed volume = ([-0-9.+eE]+)} $InfoList full AccumulatedMeshedVolume
+
+set percent_max 0.1
+set percent [expr abs(${AccumulatedMeshedVolume} - ${OriginalVolume}) / (${OriginalVolume}) * 100.]
+
+if {${percent} > ${percent_max}} {
+    puts "OCC817: Error"
+} else {
+    puts "OCC817: OK"
+}
+set 2dviewer 0
+set square 6000
diff --git a/tests/bugs/modalg/bug817_3 b/tests/bugs/modalg/bug817_3
new file mode 100755 (executable)
index 0000000..a97e252
--- /dev/null
@@ -0,0 +1,29 @@
+pload QAcommands
+
+puts "============"
+puts "OCC817"
+puts "============"
+puts ""
+#############################
+## Bad results of BRepAlgoAPI_Common
+#############################
+
+set InfoList [OCC817 result 30]
+
+
+set OriginalVolume 0
+regexp {Info: Original volume  = ([-0-9.+eE]+)} $InfoList full OriginalVolume
+
+set AccumulatedMeshedVolume 0
+regexp {Info: Accumulated meshed volume = ([-0-9.+eE]+)} $InfoList full AccumulatedMeshedVolume
+
+set percent_max 0.1
+set percent [expr abs(${AccumulatedMeshedVolume} - ${OriginalVolume}) / (${OriginalVolume}) * 100.]
+
+if {${percent} > ${percent_max}} {
+    puts "OCC817: Error"
+} else {
+    puts "OCC817: OK"
+}
+set 2dviewer 0
+set square 6000
index 1bfe6464f0f6b8244336aab1cc9f33d193b9028e..ce7fe2f0f902f73278793337be469f46f4a3d2bf 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ###############################
 
 restore [locate_data_file BUC60907_px1.rle] sh 
-puts [checkshape sh]
+checkshape sh
 
 plane f 0 14.8053 0 0 1 0
 mkface f f
index 1369da38f324ea18b50ebe0ead87313975f3160d..f35be9857a68b0c362cb7ec8de8c3e5d0884404e 100755 (executable)
@@ -7,17 +7,19 @@ puts ""
 #####################################
 ## BRepMesh_IncrementalMesh fails on some faces
 #####################################
+## (old topology)
+#####################################
 
-if { [ catch { set info_result [OCC822_1 a1 a2 result] } ] } {
-    puts "Faulty : an exception was caught"
+if {[ catch { set info_result [OCC822_1 a1 a2 result 0] } ] } {
+    puts "Faulty OCC822"
 } else {
-    if { [lsearch ${info_result} FAILED] > -1 } {
-       puts "Faulty : command was FAILED"
+    if { [regexp {FAILED} $info_result] } {
+       puts "Faulty OCC822"
     }
 
     set ExplodeList [explode result]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC822"
     }
 }
 
index 51577211deaf7fe59e8e0688f22f597cadb9feb4..add7d038ed07bb2eb1d304c70d1abc5da451f816 100755 (executable)
@@ -7,19 +7,20 @@ puts ""
 #####################################
 ## BRepMesh_IncrementalMesh fails on some faces
 #####################################
+## (old topology)
+#####################################
 
-if { [ catch { set info_result [OCC822_2 a1 a2 result] } ] } {
-    puts "Faulty : an exception was caught"
+if { [ catch { set info_result [OCC822_2 a1 a2 result 0] } ] } {
+  puts "Faulty OCC822"
 } else {
-    if { [lsearch ${info_result} FAILED] > -1} {
-       puts "Faulty : commands was FAILED"
+    if { [regexp {FAILED} $info_result] } {
+       puts "Faulty OCC822"
     }
 
     set ExplodeList [explode result]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC822"
     }
 }
-
 set square 61963.5
-set 2dviewer 0
+set 3dviewer 1
index e97833fe97caf40c220c6cfd46922badc0e9baa5..3cc1481bfe89cfabaa9c3fddebd1a54ee2ecad78 100755 (executable)
@@ -7,20 +7,20 @@ puts ""
 ###############################
 ## BRepAlgoAPI_Fuse fails on two cylinders
 ###############################
+## (old topology)
+#####################################
 
 if { [ catch { set info_result [OCC823 a1 a2 result] } ] } {
-    puts "Faulty : an exception was caught"
+    puts "Faulty OCC823"
 } else {
-
-    if { [lsearch ${info_result} FAILED] > -1} {
-       puts "Faulty : commands was FAILED"
+    if { [regexp {FAILED} $info_result] } {
+       puts "Faulty OCC823"
     }
 
     set ExplodeList [explode result]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC823 : Resulting shape is empty COMPOUND"
     }
 }
-
 set square 23189.5
-set 2dviewer 0
+set 2dviewer 1
index be10051aa76e49dd61a6dbe8d3dc31a42a4e7c24..36655d3c1de8c73a5ebde534591f631f6f2fb4ce 100755 (executable)
@@ -15,8 +15,8 @@ puts ""
 if { [ catch { set info_result [OCC823 a1 a2 a3] } ] } {
     puts "Faulty : exception was caught"
 } else {
-    puts [checkshape a1]
-    puts [checkshape a2]
+    checkshape a1
+    checkshape a2
     bfuse result a1 a2
 
     set ExplodeList [explode result]
index c49b28d4de8abfccd1aea70efba0e33224701cc8..d24c36a96459431b479b276cbca0e42752f3e398 100755 (executable)
@@ -7,19 +7,21 @@ puts ""
 ####################################
 ## BRepAlgoAPI_Fuse fails on cylinder and sphere
 ####################################
+## (old topology)
+#####################################
 
-if { [ catch { set info_result [OCC824 a1 a2 result] } ] } {
-    puts "Faulty : an exception was caught"
+if { [ catch { set info_result [OCC824 a1 a2 result 0] } ] } {
+    puts "Faulty OCC824"
 } else {
-    if { [lsearch ${result} FAILED] > -1} {
-       puts "Faulty : command was FAILED"
+    if { [regexp {FAILED} $info_result] } {
+       puts "Faulty OCC824"
     }
 
     set ExplodeList [explode result]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC824"
     }
 }
 
 set square 16336.3
-set 2dviewer 0
+set 2dviewer 1
index bbe54e7f46539174b7a1fa43e9a1fa016ddec1d2..ffc7e9acdd81610fc103fa797596a3c6cb1f3994 100755 (executable)
@@ -15,8 +15,8 @@ puts ""
 if { [ catch { set info_result [OCC824 a1 a2 a3] } ] } {
     puts "Faulty : exception was catch"
 } else {
-    puts [checkshape a1]
-    puts [checkshape a2]
+    checkshape a1
+    checkshape a2
     bfuse result a1 a2
 
     set ExplodeList [explode result]
index bc45a425c6dd592e40a3d7931b2c001fef29372f..6005e515fd5ddd0e52eaa2f02d776a509d18728a 100755 (executable)
@@ -1,6 +1,5 @@
-puts "TODO OCC12345 ALL: Faulty : command was FAILED"
-puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
-puts "TODO OCC12345 ALL: Error : The square of result shape is"
+puts "TODO OCC12345 ALL: Faulty OCC825"
+puts "TODO OCC12345 ALL: Error : The command is not valid. The square is"
 
 pload QAcommands
 
@@ -11,27 +10,28 @@ puts ""
 ######################################
 ## BRepAlgoAPI_Cut fails on sphere and b-spline face
 ######################################
+## (old topology)
+#####################################
 
-if { [ catch { set info_result [OCC825 a1 a2 a3 result1 result2] } ] } {
-    puts "Faulty : an exception was caught"
+if { [ catch { set info_result [OCC825 a1 a2 a3 res1 res2 0] } ] } {
+    puts "Faulty OCC825"
 } else {
-    if { [lsearch ${info_result} FAILED] > -1} {
-       puts "Faulty : command was FAILED"
+    if { [regexp {FAILED} $info_result] } {
+       puts "Faulty OCC825"
     }
-    puts [checkshape result1]
-    puts [checkshape result2]
-    
-    set ExplodeList [explode result1]
+
+    set ExplodeList [explode res1]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC825"
     }
-    set ExplodeList [explode result2]
+
+    set ExplodeList [explode res2]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC825"
     }
-    
-    renamevar result1 result
+    checkshape res1
+    renamevar res2 result
 }
 
 set square 0
-set 2dviewer 0
+set 2dviewer 1
index acf250a6bd7e9ce0fecca0266c5d827af8830ac6..85e294e3399263512ce5b094bd5d37dea45752cc 100755 (executable)
@@ -18,8 +18,8 @@ puts ""
 if { [ catch { set info_result [OCC825 a1 a2 a3 a4 a5] } ] } {
     puts "Faulty : an exception was caught"
 } else {
-    puts [checkshape a1]
-    puts [checkshape a2]
+    checkshape a1
+    checkshape a2
     bcut result a2 a1
     set ExplodeList [explode result]
     if {[llength ${ExplodeList}] < 1} {
index cc425d1bb336b0ae7254708f363a304483a2365b..59f72fbd760a44b9e93322213fe27aade5b0b619 100755 (executable)
@@ -17,8 +17,8 @@ puts ""
 if { [ catch { set info_result [OCC825 a1 a2 a3 a4 a5] } ] } {
     puts "Faulty : an exception was caught"
 } else {
-    puts [checkshape a1]
-    puts [checkshape a3]
+    checkshape a1
+    checkshape a3
 
     bcut result a3 a1
 
index 4093fa36e455d38ea46e83a9d02360ffcda4886f..f6349bfa9a8768ca010ad89ceb739a3f664fc8d0 100755 (executable)
@@ -7,16 +7,19 @@ puts ""
 ###################################
 ## BRepAlgoAPI_Fuse fails on revolved and sphere
 ###################################
+## (old topology)
+#####################################
 
 if { [ catch { set info_result [OCC826 a1 a2 result] } ] } {
-    puts "Faulty : an exception was caught"
+    puts "Faulty OCC826"
 } else {
-    if { [lsearch ${info_result} FAILED] > -1} {
-       puts "Faulty : command was FAILED"
+    if { [regexp {FAILED} $info_result] } {
+       puts "Faulty OCC826"
     }
+
     set ExplodeList [explode result]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC826"
     }
 }
 
index d2bd7b0808fcc0a493d6d183b1bb6e29daab6094..eef30204e5a6d5d56142b220a93c9140a3f9ee07 100755 (executable)
@@ -15,8 +15,8 @@ puts ""
 if { [ catch { set result [OCC826 a1 a2 a3] } ] } {
     puts "Faulty : an exception was caught"
 } else {
-    puts [checkshape a1]
-    puts [checkshape a2]
+    checkshape a1
+    checkshape a2
     bfuse result a1 a2
     
     set ExplodeList [explode result]
index 1b779e6ff3f88f1a85d939bac424f6dc29675320..675aa6d77dbbdbfb7fade1da25d46b7547b7a920 100755 (executable)
@@ -22,11 +22,11 @@ if { [ catch { set info_result [OCC827 a1 a2 a3 result1 result2] } ] } {
     if { [lsearch ${info_result} FAILED] > -1} {
        puts "Faulty OCC827 (case 1)"
     }
-    puts [checkshape a1]
-    puts [checkshape a2]
-    puts [checkshape a3]
-    puts [checkshape result1]
-    puts [checkshape result2]
+    checkshape a1
+    checkshape a2
+    checkshape a3
+    checkshape result1
+    checkshape result2
 
     set ExplodeList [explode result1]
     if {[llength ${ExplodeList}] < 1} {
index ebfdefc660d11d7be040f2d30d844e045f6bd732..b0e912331778365627b856f107073eb3e6cde3df 100755 (executable)
@@ -1,18 +1,18 @@
+puts "TODO OCC12345 ALL: Error : The square of result shape is"
+puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO OCC12345 ALL: Faulty OCC827"
+
 pload QAcommands
 
-puts "======="
+puts "========"
 puts "OCC827"
-puts "======="
+puts "========"
 puts ""
-####################################
+###################################
 ## BRepAlgoAPI_Fuse fails on cylinder and torus
-####################################
-##
-## Note: test for old topology
-##
-################################
-
-set status 1
+###################################
+## (old topology)
+#####################################
 
 #
 # a1 - Cylinder
@@ -22,29 +22,27 @@ set status 1
 # res2 - Fuse(Torus2 & res1)
 #
 
-if [ catch { set info_result [OCC827 a1 a2 a3 a4 a5] } ] {
-  puts "Faulty OCC827 (case 0)"
+if { [ catch { set info_result [OCC827 a1 a2 a3 res1 res2 0] } ] } {
+    puts "Faulty OCC827"
 } else {
-    puts [checkshape a1]
-    puts [checkshape a2]
-    puts [checkshape a3]
-    bfuse result1 a1 a2
-    puts [checkshape result1]
-    
-    set ExplodeList [explode result1]
+    if { [regexp {FAILED} $info_result] } {
+       puts "Faulty OCC827"
+    }
+    checkshape a1
+    checkshape a2
+    checkshape a3
+    checkshape res1
+
+    set ExplodeList [explode res1]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC827"
     }
-    
-    bfuse result2 result1 a3
-    puts [checkshape result2]
 
-    set ExplodeList [explode result2]
+    set ExplodeList [explode res2]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC827"
     }
-    renamevar result2 result
+    renamevar res2 result
 }
-
-set square 11847.7
-set 2dviewer 0
+set square 0
+set 2dviewer 1
index ce69873d0572c22170b93335bd21c1ec716d1731..e4ff7e600c04133f4434f0e621e75f9197df1e1f 100755 (executable)
@@ -7,10 +7,7 @@ puts ""
 ####################################
 ## BRepAlgoAPI_Fuse fails on cylinder and torus
 ####################################
-##
-## Note: test for old topology
-##
-################################
+
 
 #
 # a1 - Cylinder
@@ -21,27 +18,25 @@ puts ""
 #
 
 if { [ catch { set info_result [OCC827 a1 a2 a3 a4 a5] } ] } {
-    puts "Faulty an exception was caught"
+    puts "Faulty OCC827"
 } else {
-    puts [checkshape a1]
-    puts [checkshape a2]
-    puts [checkshape a3]
-    bfuse result1 a2 a1
-    puts [checkshape result1]
-    set ExplodeList [explode result1]
+    checkshape a1
+    checkshape a2
+    checkshape a3
+    bop a1 a2
+    bopfuse res1
+    checkshape res1
+    set ExplodeList [explode res1]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC827 : Resulting shape is empty COMPOUND"
     }
-    bfuse result2 a3 result1
-    puts [checkshape result2]
-
-    set ExplodeList [explode result2]
+    bop res1 a3
+    bopfuse result
+    set ExplodeList [explode result]
     if {[llength ${ExplodeList}] < 1} {
-       puts "Faulty : Resulting shape is empty COMPOUND"
+       puts "Faulty OCC827 : Resulting shape is empty COMPOUND"
     }
-    
-    renamevar result2 result
 }
-
 set square 11847.7
 set 2dviewer 0
+
diff --git a/tests/bugs/modalg/bug827_3 b/tests/bugs/modalg/bug827_3
new file mode 100755 (executable)
index 0000000..4905ae2
--- /dev/null
@@ -0,0 +1,43 @@
+pload QAcommands
+
+puts "======="
+puts "OCC827"
+puts "======="
+puts ""
+####################################
+## BRepAlgoAPI_Fuse fails on cylinder and torus
+####################################
+
+#
+# a1 - Cylinder
+# a2 - Torus1
+# a3 - Torus1
+# res1 - Fuse(Torus1 & Cylinder)
+# res2 - Fuse(Torus2 & res1)
+#
+
+if { [ catch { set info_result [OCC827 a1 a2 a3 a4 a5] } ] } {
+    puts "Faulty OCC827"
+} else {
+    checkshape a1
+    checkshape a2
+    checkshape a3
+    bop a2 a1
+    bopfuse res1
+    checkshape res1
+    set ExplodeList [explode res1]
+    if {[llength ${ExplodeList}] < 1} {
+       puts "Faulty OCC827 : Resulting shape is empty COMPOUND"
+    }
+    bop a3 res1
+    bopfuse result
+
+    set ExplodeList [explode result]
+    if {[llength ${ExplodeList}] < 1} {
+       puts "Faulty OCC827 : Resulting shape is empty COMPOUND"
+    }
+}
+
+set square 11847.7
+set 2dviewer 1
+
index 8f13851ab7ba58cb0709c3a5c17c3302efd5bbae..c13182cfdb69ccde9354d04e04a275f31fd1bd14 100755 (executable)
@@ -14,7 +14,7 @@ if { [ catch { set info_result [OCC828 a1] } ] } {
     if { [lsearch ${info_result} FAILED] > -1} {
        puts "Faulty : command was FAILED"
     }
-    puts [checkshape a1]
+    checkshape a1
     explode a1 e
     blend result a1 10 a1_7 10 a1_6
 
index 213f77bbd5d05a75e6ec8d94e16bf646ec56f1ee..606ae7f1772fb4baecf1589f96dfb072a9f0a651 100755 (executable)
@@ -13,7 +13,7 @@ puts " This part -  LIMITATION for existed algorithms"
 ###################################
 
 restore [locate_data_file OCC829_w1.brep] a 
-puts [checkshape a]
+checkshape a
 explode a w
 
 if { [catch { mkoffset result a_1 1 5 } status] } {
@@ -32,7 +32,7 @@ if { [catch { mkoffset result a_1 1 5 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index c17d8c909ecbeb55522686dc5ca134259bb84492..c26735518ec8f38e0fde92ba93cb96bf3df23bd2 100755 (executable)
@@ -7,7 +7,7 @@ puts ""
 ## BRepOffsetAPI_MakeOffset fails on given wires
 ###################################
 restore [locate_data_file OCC829_w2.brep] a 
-puts [checkshape a]
+checkshape a
 explode a w
 
 if { [catch { mkoffset result a_1 1 5 } status] } {
@@ -26,7 +26,7 @@ if { [catch { mkoffset result a_1 1 5 } status] } {
             set num [llength $ll]
             puts [format "Faulty : Result shape result is COMPOUND and contains %s wires" $num]
             foreach {k} $ll {
-                puts [checkshape $k]
+                checkshape $k
                 regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection $k] full cs
                 if { $cs != 0 } {
                     puts [format "Faulty : Result shape is UNclosed wire !!! " $k]
index 65e78f1e68269761828e6bda6665ba2cf4117962..e063bdc58dfcaa688341b522e370190185f62704 100755 (executable)
@@ -10,8 +10,8 @@ puts ""
 puts "1 case: perform section with plane"
 restore [locate_data_file BUC60912_sec_slow.brep] c 
 explode c
-puts [checkshape c_1]
-puts [checkshape c_2]
+checkshape c_1
+checkshape c_2
 
 renamevar c_1 sh
 renamevar c_2 pr
index b3e51d3614a4d3fdf0a6cea8031b728d4eac0002..e73545e7e228eabcd1c971f90594e030978a5a76 100755 (executable)
@@ -10,8 +10,8 @@ puts ""
 puts "2 case: perform section with planar BSpline surface"
 restore [locate_data_file BUC60912_sec_slow.brep] c 
 explode c
-puts [checkshape c_1]
-puts [checkshape c_2]
+checkshape c_1
+checkshape c_2
 
 renamevar c_1 sh
 renamevar c_2 pr
index b41f13f4520fc99ecd1ef5149e7f8538f0cf8092..c6e6c347676c8bc8b57efef1f796e0bb73cbb70b 100755 (executable)
@@ -6,9 +6,9 @@ puts "========================"
 
 puts "Restoring the wires :"
 restore [locate_data_file OCC86a.brep] w1 
-puts [checkshape w1]
+checkshape w1
 restore [locate_data_file OCC86b.brep] w2
-puts [checkshape w2]
+checkshape w2
 
 puts "Do Thrusection by following command: thrusections res 0 0 w1 w2 "
 
index 2e6ceed60eb00a171ddc05377465ddb4ad187d42..5905aad316c88e23c78539204e88cc0709012700 100755 (executable)
@@ -8,9 +8,9 @@ puts "========================"
 
 puts "Restoring the wires :"
 restore [locate_data_file OCC86a.brep] w1 
-puts [checkshape w1]
+checkshape w1
 restore [locate_data_file OCC86b.brep] w2
-puts [checkshape w2]
+checkshape w2
 
 set first1 [dump w1]
 set second1 [dump w2]
diff --git a/tests/bugs/modalg/bug889 b/tests/bugs/modalg/bug889
new file mode 100755 (executable)
index 0000000..5140c7e
--- /dev/null
@@ -0,0 +1,18 @@
+puts "======="
+puts "DXF906"
+puts "OCC889"
+puts "OCC1013"
+puts "======="
+puts ""
+#########################################################
+## After fix OCC157 we have plane surface in face (instead bspline as in C40).
+## But now checkshape founds number of errors on new face. I think that face from
+## c40 is not better than in dev 
+#########################################################
+
+restore [locate_data_file DXF906.rle] a 
+
+mkplane result a
+
+set square 92131.6
+set 2dviewer 0
index 5ef128ee70a58d429c6e0fb91f14b6c177cf2dda..27f9fdd443d6a7eb971ed983dada307c7a275e1b 100755 (executable)
@@ -11,8 +11,8 @@ puts ""
 restore [locate_data_file OCC890.brep] a 
 explode a
 
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 if { [ catch { bfuse result a_1 a_2 } catch_result ] } {
    puts "Faulty OCC890 (case 3)"
index 97f71ff58f10ca9934ed67c1af052b1f350699ba..09965c8acdc4c41d3a295e2dc844cc5dbd3f1f34 100755 (executable)
@@ -12,9 +12,9 @@ catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file OCC910.rle] a 
 
-puts [checkshape a]
+checkshape a
 explode a w
-puts [checkshape a_7]
+checkshape a_7
 
 set list1 [expwire a_7]
 regexp {TopoDS_Iterator\(EDGE\)  donne ([-0-9.+eE]+) Edges} $list1 full TopoDS_Iterator1
index 86dcfdd4cc21d1151c19e4e36c817ac2caf1f5ac..dcca9030fdc2b2c3587b12301c95666a851d3902 100755 (executable)
@@ -16,8 +16,8 @@ explode a
 restore [locate_data_file OCC919-PROC.brep] a_1 
 #
 
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 if { [ catch { bfuse result a_1 a_2} catch_result ] } {
     puts "Faulty OCC919 (case 1)"
diff --git a/tests/bugs/modalg/bug951_1 b/tests/bugs/modalg/bug951_1
new file mode 100755 (executable)
index 0000000..ea45927
--- /dev/null
@@ -0,0 +1,38 @@
+puts "========="
+puts " OCC951 "
+puts "========="
+puts ""
+##################################################
+##BRepAlgoAPI_Section and BRepAlgoAPI_Common fail on given shapes
+##################################################
+## (old topology)
+## (common)
+## (section)
+######################################################
+
+restore [locate_data_file OCC951_1.brep] b 
+restore [locate_data_file OCC951_2.brep] a 
+
+checkshape b
+checkshape a
+
+bcommon result b a
+
+set nb_info [nbshapes result]
+regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
+regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
+regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
+regexp {FACE +: +([-0-9.+eE]+)} $nb_info full fa
+regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full sh
+regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full so
+regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full cm
+regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full co
+regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full shl
+if { $ve != 0 || $ed != 0 || $wi != 0 || $fa != 0 || $sh != 0 || $so != 0 || $cm != 0 || $co != 0 || $shl != 0 } {
+    puts  " OCC951 : COMMON operation was made PROPERLY"
+} else {
+    puts "Faulty OCC951 : result of COMMON operation is EMPTY compound"
+}
+
+set square 560.908
+set 3dviewer 1
diff --git a/tests/bugs/modalg/bug951_2 b/tests/bugs/modalg/bug951_2
new file mode 100755 (executable)
index 0000000..fd39ccd
--- /dev/null
@@ -0,0 +1,39 @@
+puts "========="
+puts " OCC951 "
+puts "========="
+puts ""
+##################################################
+##BRepAlgoAPI_Section and BRepAlgoAPI_Common fail on given shapes
+##################################################
+## (new topology)
+## (bopcommon)
+## (bopsection)
+######################################################
+
+restore [locate_data_file OCC951_1.brep] b 
+restore [locate_data_file OCC951_2.brep] a 
+
+checkshape b
+checkshape a
+
+bop b a
+bopcommon result
+
+set nb_info [nbshapes result]
+regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
+regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
+regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
+regexp {FACE +: +([-0-9.+eE]+)} $nb_info full fa
+regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full sh
+regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full so
+regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full cm
+regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full co
+regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full shl
+if { $ve != 0 || $ed != 0 || $wi != 0 || $fa != 0 || $sh != 0 || $so != 0 || $cm != 0 || $co != 0 || $shl != 0 } {
+    puts  " OCC951 : COMMON operation was made PROPERLY"
+} else {
+    puts "Faulty OCC951 : result of COMMON operation is EMPTY compound"
+}
+
+set square 560.908
+set 3dviewer 1
diff --git a/tests/bugs/modalg/bug951_3 b/tests/bugs/modalg/bug951_3
new file mode 100755 (executable)
index 0000000..bf8f0a2
--- /dev/null
@@ -0,0 +1,39 @@
+puts "========="
+puts " OCC951 "
+puts "========="
+puts ""
+##################################################
+##BRepAlgoAPI_Section and BRepAlgoAPI_Common fail on given shapes
+##################################################
+## (old topology)
+## (common)
+## (section)
+######################################################
+
+restore [locate_data_file OCC951_1.brep] b 
+restore [locate_data_file OCC951_2.brep] a 
+
+checkshape b
+checkshape a
+  
+bsection result b a
+
+set nb_info [nbshapes result]
+regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
+regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
+regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
+regexp {FACE +: +([-0-9.+eE]+)} $nb_info full fa
+regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full sh
+regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full so
+regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full cm
+regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full co
+regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full shl
+if { $ve != 0 || $ed != 0 || $wi != 0 || $fa != 0 || $sh != 0 || $so != 0 || $cm != 0 || $co != 0 || $shl != 0 } {
+    puts  " OCC951 : COMMON operation was made PROPERLY"
+} else {
+    puts "Faulty OCC951 : result of COMMON operation is EMPTY compound"
+}
+
+set length 39.8616
+set 3dviewer 1
+
diff --git a/tests/bugs/modalg/bug951_4 b/tests/bugs/modalg/bug951_4
new file mode 100755 (executable)
index 0000000..3dd6465
--- /dev/null
@@ -0,0 +1,39 @@
+puts "========="
+puts " OCC951 "
+puts "========="
+puts ""
+##################################################
+##BRepAlgoAPI_Section and BRepAlgoAPI_Common fail on given shapes
+##################################################
+## (new topology)
+## (bopcommon)
+## (bopsection)
+######################################################
+
+restore [locate_data_file OCC951_1.brep] b 
+restore [locate_data_file OCC951_2.brep] a 
+
+checkshape b
+checkshape a
+
+bop b a
+bopsection result
+
+set nb_info [nbshapes result]
+regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
+regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
+regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full wi
+regexp {FACE +: +([-0-9.+eE]+)} $nb_info full fa
+regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full sh
+regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full so
+regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full cm
+regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full co
+regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full shl
+if { $ve != 0 || $ed != 0 || $wi != 0 || $fa != 0 || $sh != 0 || $so != 0 || $cm != 0 || $co != 0 || $shl != 0 } {
+    puts  " OCC951 : COMMON operation was made PROPERLY"
+} else {
+    puts "Faulty OCC951 : result of COMMON operation is EMPTY compound"
+}
+
+set length 39.8616
+set 3dviewer 1
diff --git a/tests/bugs/modalg/dxf906 b/tests/bugs/modalg/dxf906
deleted file mode 100755 (executable)
index 5e04861..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-
-puts "======="
-puts "DXF906"
-puts "OCC889"
-puts "OCC1013"
-puts "======="
-puts ""
-#########################################################
-## After fix OCC157 we have plane surface in face (instead bspline as in C40).
-## But now checkshape founds number of errors on new face. I think that face from
-## c40 is not better than in dev 
-#########################################################
-
-restore [locate_data_file DXF906.rle] a 
-
-mkplane result a
-
-set square 92131.6
-set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
index af4de49..0015715
@@ -4,7 +4,7 @@ puts "FRA62369"
 puts "==========="
 
 restore [locate_data_file fra62369a.brep] a 
-puts [checkshape a]
+checkshape a
 
 compound result
 
old mode 100644 (file)
new mode 100755 (executable)
index 41ca3bf..3ba6a92
@@ -4,7 +4,7 @@ puts "PRO16983"
 puts "============"
 
 restore [locate_data_file pro16983a.brep] B 
-puts [checkshape B]
+checkshape B
 plane p 0 0 0 1 0 0
 vertex v1 0 90.16396 252.4591
 vertex v2 0 252.459 -9.835989
index c55668911646ba40a2d6224f501e29ddab53717b..3e91f5a1b36610d591a47ad474d954a90c66d007 100755 (executable)
@@ -10,7 +10,7 @@ puts "=========="
 #   TOPOLOGY-M4-6A : 2 
 
 restore [locate_data_file pro18892.rle] a 
-puts [checkshape a]
+checkshape a
 
 explode a
 bsection result a_1 a_2 -2d -a
old mode 100644 (file)
new mode 100755 (executable)
index d41052b..1a3d491
@@ -4,9 +4,9 @@ puts "PRO19424"
 puts "=========="
 
 restore [locate_data_file pro19424a.brep] b 
-puts [checkshape b]
+checkshape b
 restore [locate_data_file pro19424b.brep] p
-puts [checkshape p]
+checkshape p
 
 if [catch {evolved result b p o } catch_result] {
   puts "Faulty PRO19424 : function EVOLVED works wrongly"
old mode 100644 (file)
new mode 100755 (executable)
index 8313dc6..b583d56
@@ -4,9 +4,9 @@ puts "PRO19626"
 puts "============"
 
 restore [locate_data_file pro19626a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file pro19626b.brep] b
-puts [checkshape b]
+checkshape b
 
 bsection result a b
 regexp { nb alone Vertices : +([-0-9.+eE]+)} [checksection result] full num
old mode 100644 (file)
new mode 100755 (executable)
index f0329c1..9bcd875
@@ -9,9 +9,9 @@ puts "It takes visual check for this BUG"
 puts "=================================="
 
 restore [locate_data_file pro19653a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file pro19653b.brep] b
-puts [checkshape b]
+checkshape b
 bsection result a b
 
 explode result e
diff --git a/tests/bugs/moddata/buc60609 b/tests/bugs/moddata/buc60609
new file mode 100755 (executable)
index 0000000..c601a74
--- /dev/null
@@ -0,0 +1,26 @@
+puts "================"
+puts "BUC60609"
+puts "================"
+
+pload QAcommands
+
+set INF [BUC60609 [locate_data_file buc60609a.brep] a]
+set ll [llength $INF]
+set first [lindex $INF [expr $ll - 5]]
+set second [lindex $INF [expr $ll - 1]]
+
+if {$first != "INSIDE" && $first != "inside"} {
+    puts "Faulty BUC60609 first: $first is not right result. It should be INSIDE"
+} else {
+    puts "BUC60609 first OK:  It is INSIDE"
+}
+
+if {$second != "INSIDE"} {
+    puts "Faulty BUC60609 second: $second is not right result. It should be INSIDE"
+} else {
+    puts "BUC60609 second OK:  It is INSIDE"
+}
+
+renamevar a result
+set 2dviewer 0
+
index 6232b24d7167abab5622bc2d240430e6d467a17e..6f847aa8c60587bdf528ffb152c352e6ae6281a8 100755 (executable)
@@ -3,9 +3,9 @@ puts "BUC60623"
 puts "========================"
 
 restore [locate_data_file buc60623a.brep] a
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60623b.brep] b
-puts [checkshape b]
+checkshape b
 
 mksurface S1 a
 mksurface S2 b
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index b19c919..08b6e68
@@ -7,7 +7,7 @@ puts "=========="
 pload QAcommands
 
 restore [locate_data_file buc60652a.brep] result
-puts [checkshape result]
+checkshape result
 BUC60652 result
 
 set check_square 1
old mode 100644 (file)
new mode 100755 (executable)
index 7f36042..677c238
@@ -7,7 +7,7 @@ puts "=========="
 pload QAcommands
 
 restore [locate_data_file buc60652b.brep] result
-puts [checkshape result]
+checkshape result
 BUC60652 result
 
 set check_square 1
old mode 100644 (file)
new mode 100755 (executable)
index 0591ce1..150675f
@@ -7,7 +7,7 @@ puts "==========="
 pload QAcommands
 
 restore [locate_data_file buc60652c.brep] result 
-puts [checkshape result]
+checkshape result
 BUC60652 result
 
 set check_square 1
old mode 100644 (file)
new mode 100755 (executable)
index 79a20ab..e03cc7a
@@ -7,7 +7,7 @@ puts "=========="
 pload QAcommands
 
 restore [locate_data_file shading_104.brep] result 
-puts [checkshape result]
+checkshape result
 BUC60652 result
 
 set check_square 1
old mode 100644 (file)
new mode 100755 (executable)
index 663c9b6..1690c15
@@ -5,7 +5,7 @@ puts "==================="
 
 restore [locate_data_file buc60667a.brep] result
 fsameparameter result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
old mode 100644 (file)
new mode 100755 (executable)
index 7a9f84d..dfe66d1
@@ -7,7 +7,7 @@ puts ""
 ## Fillets created in CasCade version 3 do not display as shaded surfaces. 
 #################################################
 restore [locate_data_file buc60707a.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 incmesh result .1
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 758a13f..283cebb
@@ -5,14 +5,14 @@ puts "BUC60755"
 puts "========================"
 
 restore [locate_data_file buc60755a.brep] a 
-puts [checkshape a]
+checkshape a
 
 #########################################
 # "tcopy" command of a valid shape give a no-valid shape. 
 #########################################
 
 tcopy a result
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 623.832
old mode 100644 (file)
new mode 100755 (executable)
index 161d881..03e57bf
@@ -4,7 +4,7 @@ puts "BUC60769"
 puts "============="
 
 restore [locate_data_file buc60769a.brep] result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
old mode 100644 (file)
new mode 100755 (executable)
index 0f28d3c..5bcf9f0
@@ -7,7 +7,7 @@ pload QAcommands
 line aLine 0 0 0 0 0 1
 mkedge aEdge1 aLine
 restore [locate_data_file buc60825.brep] aEdge2 
-puts [checkshape aEdge2]
+checkshape aEdge2
 
 distmini d aEdge1 aEdge2
 regexp {NB RESULTS +: +([-0-9.+eE]+)} [BUC60825 aEdge1 aEdge2] full ext
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index d2e7308..da0499f
@@ -7,7 +7,7 @@ puts ""
 pload QAcommands
 
 restore [locate_data_file BUC60848.brep] a 
-puts [checkshape a]
+checkshape a
 
 tcopy a res
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 9e56888..ca71b33
@@ -7,10 +7,10 @@ puts ""
 pload QAcommands
 
 restore [locate_data_file buc60868.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 BUC60868 result sh
-puts [checkshape result]
+checkshape result
 
 set len [llength [explode result w]]
 if { $len != 3 } {
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 1860d0a..9eb62fc
@@ -10,7 +10,7 @@ puts ""
 restore [locate_data_file BUC60895.brep] result
 
 fsameparameter result
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set length 12.6012
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 022fd2e..7910b14
@@ -5,7 +5,7 @@ puts "==========="
 
 puts "Restoring face from file"
 restore [locate_data_file buc60955.brep] result
-puts [checkshape result]
+checkshape result
 
 build3d result
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index d00746c46cdadb735915280ed6b20c56457a6206..776bfa21324de4060f932f5b591919031a182101 100755 (executable)
@@ -15,11 +15,11 @@ puts ""
 cpulimit 3000
 
 restore [locate_data_file OCC104-1.brep] sh1 
-puts [checkshape sh1]
+checkshape sh1
 regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full l1
 
 restore [locate_data_file OCC104-2.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full l2
 
 set diff [expr abs([expr $l2 - $l1])]
diff --git a/tests/bugs/moddata/bug1048 b/tests/bugs/moddata/bug1048
new file mode 100755 (executable)
index 0000000..8680866
--- /dev/null
@@ -0,0 +1,23 @@
+puts "================"
+puts "OCC1048"
+puts "================"
+puts ""
+
+pload QAcommands
+
+restore [locate_data_file OCC1048.brep] result
+
+set list [OCC1048 result]
+
+set NBTRIANGLES 0
+regexp {Info: +Number +of +triangles += +([-0-9.+eE]+)} $list full NBTRIANGLES
+
+if { ${NBTRIANGLES} > 0 } {
+    puts "OCC1048: OK"
+} else {
+    puts "OCC1048: Error"
+}
+
+set 2dviewer 0
+
+
index 00ebac9cfc9c088494d48256deda5456aea15ced..9a4e25b05915ff3786503fe03a3fa7adb450c482 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 pload QAcommands
 
 restore [locate_data_file OCC105.brep] result
-puts [checkshape result]
+checkshape result
 
 if [catch { OCC105 result} ] {
   puts "Error : BUC61032"
index bb6245e8376f4398b153b6ba460b1c0fe3c988cd..00b8f43a389e0aec3fae9d8884ccdd3e6265cb5c 100755 (executable)
@@ -6,9 +6,9 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC107-1.brep] ee 
-puts [checkshape ee]
+checkshape ee
 restore [locate_data_file OCC107-2.brep] ff
-puts [checkshape ff]
+checkshape ff
 
 distmini dd1 ee ff
 
index d68bdfa8246c2e1c92652bd708bcf2004fb4ffbb..21c60c84f708f15052954ee7093bd6f35a71773b 100755 (executable)
@@ -17,14 +17,14 @@ if { ${mistake} == 1} {
     puts " 1) OCC119 OK: BLEND was NOT created and suitable except was given."
 } else {
     puts "1) OCC119 OK: function BLEND works without suitable except"
-    puts [checkshape result_1]
+    checkshape result_1
     explode result_1 e
 
     if { [catch {blend result_2 result_1 50 result_1_20 50 result_1_22 50 result_1_10} catch_result] } {
        puts "2) Faulty  OCC119: BLEND was NOT created"
     } else {
        puts "2) BLEND OCC199 OK: BLEND was created"
-       puts [checkshape result_2]
+       checkshape result_2
     }
 
     set che [checkshape result_2 r]
index 2cd6fee0b2bddc93277e27aa36052040f1dd373a..612f458c6f0822652d4de1678a2f02e9595834f5 100755 (executable)
@@ -5,7 +5,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC12.brep] f 
-puts [checkshape f]
+checkshape f
 
 mksurface su f
 clpoles su
index ed3df11a7d4763abd835bc221f352da2e38627ad..5a66edc59d2707cd24951b4ef849d6d270679df4 100755 (executable)
@@ -5,10 +5,10 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC126-1.brep] sh1 
-puts [checkshape sh1]
+checkshape sh1
 
 restore [locate_data_file OCC126-2.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 
 compound sh1 sh2 result
 
index 1e044759a41cb01b5d16ec4b17b19ac0081b552a..0fb7ed447bc7321d660fa28a454ebb9c6235cf9b 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ######################################################
 
 restore [locate_data_file OCC130.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 line l -120 -100 400 0 0 1
 mksurface surf sh
index 137a2de57c2b5742bf50697b1ae98f24b5114a2e..b9761c8b837d845df3aae5575eca7107c09417b5 100755 (executable)
@@ -9,10 +9,10 @@ puts ""
 ####################################
 
 restore [locate_data_file OCC134-1.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 prism result sh 100 100 100
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 104057
index 1a126db7f1ef359bbaa4b1ca658388a85917f244..815f9445e3050d8cec07f804ebb7bbf67e589c56 100755 (executable)
@@ -9,10 +9,10 @@ puts ""
 ###########################################################
 
 restore [locate_data_file OCC134-2.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 prism result sh 100 100 100
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 271859
index e00a7e5c44a87225b70cfe816da170aed8c82a43..671a68a57ce2f361df59340f0bc74ac377094973 100755 (executable)
@@ -5,10 +5,10 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC135.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 sewing result 1 sh
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 273837
index b439c7205bdc5a67f29bd117edea9abf00b3ace5..044e6e6ac16bc9bd4cb2aa7459f3995caa70b15f 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 
 restore [locate_data_file OCC15.brep] result
 
-puts [checkshape result]
+checkshape result
 
 vinit
 tclean result
index 331a9dd74fbf688a37be05501a493633e4af04e7..53423ad4223ee3cad7d5e66d9014eb7eadf9477a 100755 (executable)
@@ -25,11 +25,11 @@ puts ""
 restore [locate_data_file OCC150_compsolid_nofuse.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_1 sh_2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 700
index 93391ea823fe9f8f8f48c307513248d1a17371ae..b55d14a101687964653acb0996bcd50791b7de7a 100755 (executable)
@@ -24,11 +24,11 @@ puts ""
 restore [locate_data_file OCC150_compsolid_nofuse.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_2 sh_1
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 700
index 8569b20825fdec5a94ec14cc8cc5f37ea4cfb3b8..ba5ba13cefd94e24c77a84d68247433e0365cd8c 100755 (executable)
@@ -8,11 +8,11 @@ puts ""
 restore [locate_data_file OCC3-1.brep] sh1 
 restore [locate_data_file OCC3-2.brep] sh2
 
-puts [checkshape sh1]
-puts [checkshape sh2]
+checkshape sh1
+checkshape sh2
 
 bfuse result sh1 sh2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 11400
index 438b9677dc0b5501c3aa6f1521f49ca0ecba97c4..f57f1edd1892395c9fc5195b6b82099f179084a2 100755 (executable)
@@ -8,11 +8,11 @@ puts ""
 restore [locate_data_file OCC3-1.brep] sh1 
 restore [locate_data_file OCC3-2.brep] sh2
 
-puts [checkshape sh1]
-puts [checkshape sh2]
+checkshape sh1
+checkshape sh2
 
 bfuse result sh2 sh1
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 11400
index c50654bf3d47abd86ae4b918c4732ffa49936255..d068783adaca20860de4c1797fb93c622dbaf77c 100755 (executable)
@@ -16,11 +16,11 @@ puts ""
 restore [locate_data_file OCC152.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bcut result sh_1 sh_2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 276424
index 17baa5e21f68343a381ea3460b836e0fb06f1b03..e2af220b33eaf7adbf345d6760378671ba108d61 100755 (executable)
@@ -15,11 +15,11 @@ puts ""
 restore [locate_data_file OCC152.brep] sh 
 explode sh
 
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bcut result sh_2 sh_1
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 34894.3
index 706a0322a2e2fc64756fc91688e4fd441f8a2482..9295085f1ce7dc44990d31d13a90cbeae84ce266 100755 (executable)
@@ -6,12 +6,12 @@ puts "(COMMON: A and B)"
 puts "========================"
 
 restore [locate_data_file buc60775a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60775b.brep] b
-puts [checkshape b]
+checkshape b
 
 bcommon result a b
-puts [checkshape result]
+checkshape result
 
 set nf [llength [explode result f]]
 if {$nf < 6} {
index e6f2f34450d8af054052f524c0c89a3ec2b03a52..a8a8f2992e42cf8f80f9f14a28a9fe220c4f85c9 100755 (executable)
@@ -6,12 +6,12 @@ puts "(COMMON: B and A)"
 puts "========================"
 
 restore [locate_data_file buc60775a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60775b.brep] b
-puts [checkshape b]
+checkshape b
 
 bcommon result b a
-puts [checkshape result]
+checkshape result
 
 set nf [llength [explode result f]]
 if {$nf < 6} {
index 64c2731c005318ab7ab92e42ce90e7ed7f871e59..71383317860dc819f9a817391abbbe88b7c30eac 100755 (executable)
@@ -6,12 +6,12 @@ puts "(FUSE: A and B)"
 puts "========================"
 
 restore [locate_data_file buc60775a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60775b.brep] b
-puts [checkshape b]
+checkshape b
 
 bfuse result a b
-puts [checkshape result]
+checkshape result
 
 set nf [llength [explode result f]]
 
index d3b6e0a538c3560fcaa71ce4cec81572a9d17027..8f0f12eba2a45678573c33e987e34a7da333c638 100755 (executable)
@@ -6,12 +6,12 @@ puts "(FUSE: B and A)"
 puts "========================"
 
 restore [locate_data_file buc60775a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60775b.brep] b
-puts [checkshape b]
+checkshape b
 
 bfuse result b a
-puts [checkshape result]
+checkshape result
 
 set nf [llength [explode result f]]
 if {$nf < 6} {
index e99b49550a22f1031a032f2db148cfadf00ac99d..6712ac474894ab95a772a18b5c78d0f9e252baf6 100755 (executable)
@@ -6,12 +6,12 @@ puts "(CUT: A and B)"
 puts "========================"
 
 restore [locate_data_file buc60775a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60775b.brep] b
-puts [checkshape b]
+checkshape b
 
 bcut result a b
-puts [checkshape result]
+checkshape result
 
 set nf [llength [explode result f]]
 if {$nf < 6} {
index e59fff558138e51523440cbfd46db923ec9689a8..1ee510f7e36484d201bd73d9e41f70c439d5a5a7 100755 (executable)
@@ -7,12 +7,12 @@ puts "(CUT: B and A)"
 puts "========================"
 
 restore [locate_data_file buc60775a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file buc60775b.brep] b
-puts [checkshape b]
+checkshape b
 
 bcut result b a
-puts [checkshape result]
+checkshape result
 
 set nf [llength [explode result f]]
 if {$nf < 6} {
index bde980a3e207144762eebb01dab00468a423cb9e..393a13b0d1755c6c4207781f21b6cb4dcab24bf2 100755 (executable)
@@ -10,7 +10,7 @@ puts ""
 
 restore [locate_data_file OCC130.brep] res 
 
-puts [checkshape res]
+checkshape res
 
 line l -120 -100 400 0 0 1
 mksurface s res
index 6da9b7305d26c91d56befdeaceb5b06ee06d6f1f..92f8e084c985fff1fc538b1829635f91bc3a007f 100755 (executable)
@@ -7,11 +7,11 @@ puts ""
 
 restore [locate_data_file OCC164-1.brep] sh1 
 restore [locate_data_file OCC164-2.brep] sh2
-puts [checkshape sh1]
-puts [checkshape sh2]
+checkshape sh1
+checkshape sh2
 
 bfuse result sh1 sh2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 344595
index 07d07fcf23b52016c3382cb3ce557a616913c98e..621fbef9dc79b4c404b80c28b0edfaf5a76318fe 100755 (executable)
@@ -7,11 +7,11 @@ puts ""
 
 restore [locate_data_file OCC164-1.brep] sh1 
 restore [locate_data_file OCC164-2.brep] sh2
-puts [checkshape sh1]
-puts [checkshape sh2]
+checkshape sh1
+checkshape sh2
 
 bfuse result sh2 sh1
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 344595
index 5d89b5084c7295d701ad4332bb32784f39a1fc75..762d8a3de5f7745e2a135fdb047d39b76f04d156 100755 (executable)
@@ -4,10 +4,10 @@ puts "Bug regression in BRepOffsetAPI_MakeOffset class (offsetting in OY directi
 puts "========"
 
 restore [locate_data_file offset_wire_019.brep] a 
-puts [checkshape a]
+checkshape a
 
 mkplane f a
-puts [checkshape f]
+checkshape f
 
 set IsGood 1
 if [catch {mkoffset res1 f 1 1 } result] {
index eec1314f94b0eea556a15fed42cb16ed977a0993..624eb3d75c3d56a194824fe067f9193be2e5108c 100755 (executable)
@@ -13,28 +13,28 @@ puts "Bug regression in BRepOffsetAPI_MakeOffset class (offsetting in OY directi
 puts "========"
 
 restore [locate_data_file offset_wire_019.brep] a 
-puts [checkshape a]
+checkshape a
 
 mkplane f a
-puts [checkshape f]
+checkshape f
 
 set IsGood 1
 if [catch {mkoffset res1 f 1 4.8 } result] {
   set IsGood 0
 } else {
   puts "OCC165 OK (case 1): function MKOFFSET works properly"
-  puts [checkshape res1_1]
+  checkshape res1_1
   mkplane pl1 res1_1
-  puts [checkshape pl1]
+  checkshape pl1
 }
 
 if [catch {mkoffset res2 f 1 -2.9 } result] {
   set IsGood 0
 } else {
   puts "OCC165 OK (case 2): function MKOFFSET works properly"
-  puts [checkshape res2_1]
+  checkshape res2_1
   mkplane pl2 res2_1 
-  puts [checkshape pl2]
+  checkshape pl2
 }
 
 if {$IsGood == 1} {
index 2762f7e1d7efc4147121d70f7440f0cf22d1752b..32551f84c779e5076d4ddc68cd791909231698ed 100755 (executable)
@@ -4,7 +4,7 @@ puts "OCC165"
 puts "========"
 
 restore [locate_data_file OCC165-2.brep] f 
-puts [checkshape f]
+checkshape f
 
 set IsGood 1
 if [catch {mkoffset res1 f 3 10 } result] {
@@ -13,11 +13,11 @@ if [catch {mkoffset res1 f 3 10 } result] {
 } else {
   #puts "OCC165 OK (case 1): function MKOFFSET works properly"
   mkplane pl1_1 res1_1 
-  puts [checkshape pl1_1]
+  checkshape pl1_1
   mkplane pl1_2 res1_2 
-  puts [checkshape pl1_2]
+  checkshape pl1_2
   mkplane pl1_3 res1_3 
-  puts [checkshape pl1_3]
+  checkshape pl1_3
 }
 
 if [catch {mkoffset res2 f 3 -10 } result] {
@@ -26,11 +26,11 @@ if [catch {mkoffset res2 f 3 -10 } result] {
 } else {
   #puts "OCC165 OK (case 2): function MKOFFSET works properly"
   mkplane pl2_1 res2_1 
-  puts [checkshape pl2_1]
+  checkshape pl2_1
   mkplane pl2_2 res2_2 
-  puts [checkshape pl2_2]
+  checkshape pl2_2
   mkplane pl2_3 res2_3 
-  puts [checkshape pl2_3]
+  checkshape pl2_3
 }
 
 if {$IsGood == 1} {
index fbd1d972b34de72f9c87f10ae8f4e9f285303c2e..85ae54b4dfcd396aa19f8540a2c8f1d272c1e46f 100755 (executable)
@@ -11,7 +11,7 @@ puts " Solid_14 will be the face which is unvisible during displaying entire sol
 
 restore [locate_data_file OCC17.brep] sh 
 
-puts [checkshape sh]
+checkshape sh
 
 explode sh f
 renamevar sh_14 result
index 5b5ffa45a432ae4ba2bf8d836111f8bfdbeec656..a7100b67a4fd4a8155465a00ca0ae4ebcc93ced4 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ###########################################
 
 restore [locate_data_file OCC175.brep] result 
-puts [checkshape result]
+checkshape result
 
 regexp {SHAPE +: +([-0-9.+eE]+)} [nbshapes result] full col1
 
index c0d92d3c83819e377d01033883f2478ce2ac384d..0e4dccbee9a371256523fbf73789573ee1563019 100755 (executable)
@@ -6,13 +6,13 @@ puts "========================"
 puts ""
 
 restore [locate_data_file f1] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file f4] b2
-puts [checkshape b2]
+checkshape b2
 
 bcommon result b1 b2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 315.159
index 45c7cd924730e3abbe63a46cd64152c32bec6971..a4396aa7a825256dacc5845251a1aef1f8cde6ee 100755 (executable)
@@ -6,13 +6,13 @@ puts "========================"
 puts ""
 
 restore [locate_data_file so1] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file so4] b2
-puts [checkshape b2]
+checkshape b2
 
 bfuse result b1 b2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 942.478
index 44d93cf4ea8df7cd6c57674f83ea9fbb583464b9..e8b782dc88ad8e0f91f409d261941f51e337b831 100755 (executable)
@@ -6,13 +6,13 @@ puts "========================"
 puts ""
 
 restore [locate_data_file so1] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file so4] b2
-puts [checkshape b2]
+checkshape b2
 
 bcut result b1 b2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 863.938
index 8f2372ba40e169293438d3361c9a3e277236d8fa..62bf145ee0a6398afe9286fd7a96c806963cbcba 100755 (executable)
@@ -6,13 +6,13 @@ puts "========================"
 puts ""
 
 restore [locate_data_file so1] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file so2] b2
-puts [checkshape b2]
+checkshape b2
 
 bcommon result b1 b2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 392.699
index 56bd2deeba6703022ebfca41bfc836e495731175..9e29053932f01087b4bd3516f68f0b4ce55cfcb5 100755 (executable)
@@ -6,13 +6,13 @@ puts "========================"
 puts ""
 
 restore [locate_data_file so4] b1 
-puts [checkshape b1]
+checkshape b1
 
 restore [locate_data_file so2] b2
-puts [checkshape b2]
+checkshape b2
 
 bcommon result b1 b2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 198.863
index 730c644d0be521d4d0698bac1235053eb48911f2..12709f754381de3cbc74f5fc66f70e2ab1c31fe3 100755 (executable)
@@ -7,13 +7,13 @@ puts "========================"
 puts ""
 
 restore [locate_data_file CTO900_cts16184a.rle] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file cts16184b.brep] b
-puts [checkshape b]
+checkshape b
 
 bop a b
 bopfuse result a b
-puts [checkshape -top result]
+checkshape -top result
 
 set check_square 1
 set square 0.0892544
index 12fe31698a2e21638988ed446e4f54e294a39097..72f29ef6bc52879ce8232aa70addd57b0e141596 100755 (executable)
@@ -7,11 +7,11 @@ puts "============"
 restore [locate_data_file BUC60929.brep] a 
 
 explode a 
-puts [checkshape a_1] 
-puts [checkshape a_2]
+checkshape a_1 
+checkshape a_2
 
 bcommon result a_1 a_2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 3739.26
index b23b36dd4006ca663a8f8d1a7352764c4ecd9d9b..65a1400263b92d939499e9035e3f99e7270c6f0e 100755 (executable)
@@ -6,11 +6,11 @@ puts ""
 
 restore [locate_data_file BUC60929.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcut result a_1 a_2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 669659
index 9c40c4e29f0c24dfa5bfd5f4e0d02f37e38285a9..2552e98f0c37182445499dfed21d3bb372b010e3 100755 (executable)
@@ -11,7 +11,7 @@ puts ""
 pload QAcommands
 restore [locate_data_file OCC20.brep] result
 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index a3764c7b755b37c98f2d8c759caa46f58569a817..769bb1a30d17b85327d814a3243897d3500e790e 100755 (executable)
@@ -12,7 +12,7 @@ restore [locate_data_file OCC211.brep] a
 explode a e
 
 blend result a 10 a_24
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 1.34399e+06
index 124a01d79887e4279afe7356999235327ef8e375..c791e25aae25eabc9d2a7f2a187abef9329c5151 100755 (executable)
@@ -12,7 +12,7 @@ restore [locate_data_file OCC211.brep] a
 explode a e
 
 blend result a 10 a_4
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 1.34399e+06
index ce8532bb3bc52167c456e3ca291b9e320e37464f..05c39abb9c582de23e992ca4a695718ecebd5b7e 100755 (executable)
@@ -11,7 +11,7 @@ box b -5 -5 -5 10 10 10
 psphere s 6 
 
 bfuse result s b 
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 618.85
index 773a91000274f9245c00d90cae91d146e27cce12..64cede8e716089738a693edf90423a5f15c6d700 100755 (executable)
@@ -11,15 +11,15 @@ puts "========"
 restore [locate_data_file OCC227a.brep] a 
 fsameparameter a
 updatetolerance a
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file OCC227b.brep] b
 fsameparameter b
 updatetolerance b
-puts [checkshape b]
+checkshape b
 
 bfuse result a b 
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 1583.92
index 6b3e273b77f74c76f7174c1f5cddd58fbe9969d0..bf387cc30ff4a6292d98af1d6525d27ee344790e 100755 (executable)
@@ -11,15 +11,15 @@ puts "========"
 restore [locate_data_file OCC227a.brep] a 
 fsameparameter a
 updatetolerance a
-puts [checkshape a]
+checkshape a
 
 restore [locate_data_file OCC227b.brep] b
 fsameparameter b
 updatetolerance b
-puts [checkshape b]
+checkshape b
 
 bfuse result b a 
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 1583.92
index 1510d872e0e0b9300b8f402dfdcce6c3dde55440..9bd1ce1e87f2bebcc44286e24d9f210525702511 100755 (executable)
@@ -11,8 +11,8 @@ cpulimit 4000
 
 restore [locate_data_file OCC228.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bcommon result a_1 a_2
 
index 49ff0d42da9377850676a1df507eef703d281747..0e2c5a2fc589724e58319358b9785667aeb3db9c 100755 (executable)
@@ -8,7 +8,7 @@ pload QAcommands
 
 restore [locate_data_file OCC252.brep] a 
 
-puts [checkshape a]
+checkshape a
 
 explode a w
 
index 126588963bcda74acf2bc1426e33e47168699149..437d85f33c5d39de98208c0f4a2010d42aa120b5 100755 (executable)
@@ -7,7 +7,7 @@ puts ""
 pload QAcommands
 
 restore [locate_data_file OCC252.brep] a 
-puts [checkshape a]
+checkshape a
 
 explode a w
 
index 456c64363333e7e533e165d86479afd31b691f01..4cee576453eda9c7e9a157b9c6b8b91cdbe08428 100755 (executable)
@@ -7,7 +7,7 @@ puts ""
 pload QAcommands
 
 restore [locate_data_file OCC252.brep] a 
-puts [checkshape a]
+checkshape a
 
 explode a w
 
index f89994e01cf66d87c8aaed603648884bcac0272c..cd399167f2ff9917d69c559db16ff3d7342a8771 100755 (executable)
@@ -5,13 +5,13 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC254-1.brep] shape1 
-puts [checkshape shape1]
+checkshape shape1
  
 restore [locate_data_file OCC254-3.brep] shape3
-puts [checkshape shape3]
+checkshape shape3
  
 common result shape1 shape3
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set length 1231.07
index 02b9cc9ae5d2d5b7488b79fa11700a26494e706a..e75b7f01e348609a868bef241f2671dc92f2f615 100755 (executable)
@@ -4,7 +4,7 @@ puts "OCC256"
 puts "========"
 
 restore [locate_data_file OCC256.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 5dff1b7900ee3ca1386fc5c7ca2fb949038b2e61..c94021f76f47d43f9f3f3e432a68c87782eed622 100755 (executable)
@@ -8,7 +8,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC257.brep] result 
-puts [checkshape result]
+checkshape result
 
 set bb [bounding result]
 
index 6ad4ae6c2767a0808bc905b0250ae278916299d2..5a5c898f2f856ce5991ee57a4c040784db883c0f 100755 (executable)
@@ -5,7 +5,7 @@ puts "(case 1)"
 puts "========================"
 
 restore [locate_data_file shading_143.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 isos result 0
index 62e90ca0baf69b6b6692372548738697c280c1bf..de68cd1703b7eb525b21bbcb4b2eaa7f7f0042d3 100755 (executable)
@@ -5,7 +5,7 @@ puts "(case 2)"
 puts "========================"
 
 restore [locate_data_file shading_144.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 isos result 0
index c14cb66ce448897288687edcf260ea2b7f57f6bd..a5d00c6009a278ef12228ae00b34e48d17abb9fa 100755 (executable)
@@ -14,7 +14,7 @@ box b2 -r -r 0 2*r 2*r 2
 trotate b2 0 0 0 0 0 1 135
 
 bfuse result b2 b1
-puts [checkshape -top result]
+checkshape -top result
 
 set check_square 1
 set square 18.8496
index e0d37ad440a6fd891f4590d024c85207e6045ae0..652cc5873d4d6e8a7f21c8c6a150e876e14e44d8 100755 (executable)
@@ -5,7 +5,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC266.brep] a 
-puts [checkshape a]
+checkshape a
 
 renamevar a edge
 explode edge e
@@ -14,7 +14,7 @@ renamevar edge face
 explode face f
 
 chamf result face edge_10 face_3 A 1 45 edge_6 face_3 A 1 45 edge_11 face_3 A 1 45 edge_12 face_3 A 1 45 edge_13 face_3 A 1 45 edge_14 face_3 A 1 45 edge_8 face_3 A 1 45 edge_9 face_3 A 1 45
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 48913
index 55bf710a6cdeced7e0f6289c70502214f5b67ddc..3958a9b4d1cb0329f45574dd6ab479be85def987 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ###########################################################
 
 restore [locate_data_file OCC268.brep] result 
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set length 56.6039
index e4921b73198785cd2b30000957880ed8c2b1642c..6da88a2198553e0e86e215c6b3a8f4047901d0cd 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 
 restore [locate_data_file OCC26.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_1 a_2
 
index f828214ae8920c425bc78639473f903d825fe3e7..8366ac0c29c3350135073fb72e86d7d8dedee1f6 100755 (executable)
@@ -6,8 +6,8 @@ puts ""
 
 restore [locate_data_file OCC26.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_2 a_1
 
index bff81c5127d6d1817e38ed4b2fd6ffdf59ded7fc..95be7218576a040cd56e230338da3777f6a87ff4 100755 (executable)
@@ -11,7 +11,7 @@ restore [locate_data_file OCC276.brep] result
 dchrono h2 reset
 dchrono h2 start
 
-puts [checkshape result]
+checkshape result
 
 dchrono h2 stop
 set q2 [ dchrono h2 show ]
index 353a8d96e89f590459f7db74e996f61d6459c5ee..2fc28225a45548bc0b1c177c7976039ccefaa991 100755 (executable)
@@ -14,7 +14,7 @@ puts "========"
 restore [locate_data_file OCC278a.brep] a 
 
 mkplane result a
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 2914.99
index 2f1c270174c892f1f05f10814a40a0ad8073e3f0..089dabd28c9cef43366865c3fe63447e8aa6c62f 100755 (executable)
@@ -14,7 +14,7 @@ puts "========"
 restore [locate_data_file OCC278b.brep] a 
 
 mkplane result a
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 22740
index 6316ce4696f634039066fe2ba023bccc452f0cfe..0d2e01ef3723d7328dfc81b62fd33d14ea47ee30 100755 (executable)
@@ -9,7 +9,7 @@ checkshape a
 
 explode a e
 blend result a 1 a_5 1 a_6 1 a_7 1 a_8
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 155.846
index f85c06496bce064bb976457771b03bf5ca580a2b..9bb04b90fa6a4b0e7cdfa595d274cf0ae2797960 100755 (executable)
@@ -10,7 +10,7 @@ checkshape a
 explode a e
 explode a f
 chamf result a a_5 a_1 A 1 45 a_6 a_1 A 1 45 a_7 a_1 A 1 45 a_8 a_1 A 1 45
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 154.145
index 19e1fb8e9e6f7e43a832dddeff1212dbd12a14e7..86bcf086272d518439c68e1c7f9c1a898a971ed1 100755 (executable)
@@ -9,11 +9,11 @@ puts "Bug is limitation on currently version of topology (07.06.2002)."
 cpulimit 1200
 restore [locate_data_file OCC28.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_1 a_2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 483935
index c46714167e0a0ddfa93d130befaf17b778e00cf7..487ce241d14c928732cfccb5ff290e5ce85e3813 100755 (executable)
@@ -9,11 +9,11 @@ puts "Bug is limitation on currently version of topology (07.06.2002)."
 cpulimit 1200
 restore [locate_data_file OCC28.brep] a 
 explode a
-puts [checkshape a_1]
-puts [checkshape a_2]
+checkshape a_1
+checkshape a_2
 
 bfuse result a_2 a_1
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 483935
index 337a6296839de26d9e8f33c55c02fac25cfded12..14a9782c2d750ee6efbc1e497f49e549767403c2 100755 (executable)
@@ -6,28 +6,28 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC31.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 explode sh f
 
 explode sh_2 e
 
 chamf res1 sh sh_2_1 sh_2 7 7 
-puts [checkshape res1]
+checkshape res1
 
 explode res1 f
 
 explode res1_5 e
 
 chamf res2 res1 res1_5_4 res1_5 7 7
-puts [checkshape res2]
+checkshape res2
 
 explode res2 f
 
 explode res2_4 e
 
 chamf result res2 res2_4_1 res2_4 7 7
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 107634
index 73f07e50773409decd341edaf4534996c96f70da..ec9a18d637bbd62d3f601658f46a1bd442514672 100755 (executable)
@@ -13,8 +13,8 @@ set major_radius 200
 
 OCC332 ${wall_thickness} ${dia1} ${dia2} ${length} ${major_radius}
 
-puts [checkshape wallSolid_]
-puts [checkshape gasSolid_]
+checkshape wallSolid_
+checkshape gasSolid_
 
 
 vinit
index 21953d32a0f9d221811da5c9b63215c29daf56ed..009d4ef180b43124c63851090143f0e74ec2c8b3 100755 (executable)
@@ -13,7 +13,7 @@ restore [locate_data_file OCC354a.brep] a
 explode a e
 
 blend result a 2 a_18
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 593.527
index aac75c3f40880372091a76dc3a8d4e8d0c0992f4..bc7536c1b421c3acef46b26891a60198634df93c 100755 (executable)
@@ -16,7 +16,7 @@ explode a_5 e
 donl a a_5_6
 
 chamf result a a_5_6 a_5 A 2 45
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 589.268
index 6fdfa85be2cac200580940b1e4e03b688924fbc2..a3c733f480aeaf7ef4326bfe38352410f2ec847c 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 ##############################################
 
 restore [locate_data_file OCC368.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 isos result 0
diff --git a/tests/bugs/moddata/bug372 b/tests/bugs/moddata/bug372
new file mode 100755 (executable)
index 0000000..de1d75e
--- /dev/null
@@ -0,0 +1,31 @@
+pload QAcommands
+
+puts "========================"
+puts "OCC372"
+puts "BUC61036"
+puts "========================"
+puts ""
+###############################################################
+##BRepClass3d_SolidClassifier classify point to solid as OUT, but the point is inside the solid.
+###############################################################
+
+restore [locate_data_file OCC372.brep] b1 
+checkshape b1
+
+point p1 6311.4862583184 -2841.3092756034 16.461053497188
+
+set result [OCC299 b1 p1]
+set ll [llength ${result}]
+if { ${ll} < 4 } then {
+    puts "OCC372: ERROR 1"
+} else {
+    regexp {The point is (.*) shape} ${result} full status
+    if {[string compare ${status} "IN"] == 0} then {
+       puts "status = ${status}"
+       puts "OCC372: OK"
+    } else {
+       puts "status = ${status}"
+       puts "Faulty : OCC372"
+    }
+}
+
index 5b15d169e7f1fb5b074cc712de54401fb443e21e..142ed50f8e0e562c1d8c2bd99565dc0ad581508b 100755 (executable)
@@ -6,11 +6,11 @@ puts ""
 
 restore [locate_data_file OCC37.brep] sh 
 explode sh
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_1 sh_2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 665013
index 142ab851d36dc08f985e83161cec8829588da99d..4aaf933827ca0ca8cb6640185534c5fd833ffa5d 100755 (executable)
@@ -6,11 +6,11 @@ puts ""
 
 restore [locate_data_file OCC37.brep] sh 
 explode sh
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 bfuse result sh_2 sh_1
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 665013
index 2b310377320f120709dfbdc5c52f28a2425f1048..e5507c9c7425f0842ad6aef589c8f1cc869b55cb 100755 (executable)
@@ -6,11 +6,11 @@ puts ""
 
 restore [locate_data_file OCC3-1.brep] a 
 restore [locate_data_file OCC3-2.brep] b
-puts [checkshape a]
-puts [checkshape b]
+checkshape a
+checkshape b
 
 bfuse result a b
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 11400
index 633122201c45c5697e8a11d9511398bdedb05d32..b13213f5aa0eeaeb1205ea333e92cf608714efa7 100755 (executable)
@@ -6,11 +6,11 @@ puts ""
 
 restore [locate_data_file OCC3-1.brep] a 
 restore [locate_data_file OCC3-2.brep] b
-puts [checkshape a]
-puts [checkshape b]
+checkshape a
+checkshape b
 
 bfuse result b a
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 11400
index f239611b165218ac4492f59566ae404ee2cd37b7..c885ca0585ea6144d36fbe33e40d3e5799d5bff0 100755 (executable)
@@ -5,12 +5,12 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC4.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 explode sh e
 
 fillet result sh 15 sh_14
-puts [checkshape result]
+checkshape result
 
 set square 1
 set 2dviewer 0
index 6338cce7e35e0aed93b034e3f62a8665708e8361..2fcb2d5c6e5e4eae1d390c907282fc99a8fa6ea3 100755 (executable)
@@ -8,7 +8,7 @@ nurbsconvert b1 b1
 box b2  0    -0.5   0     1.5   0.5   0.5
 
 bcommon result b1 b2 
-puts [checkshape -top result]
+checkshape -top result
 
 
 
index 87bd21c7c9461baeaa033cd04398fe0406973be4..e2cc3767fa8ffff64840419b102618d557616d35 100755 (executable)
@@ -10,14 +10,14 @@ pload XDE
 
 # 1. retriesve shape
 restore [locate_data_file OCC42.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 # 2. perform sewing
 set toler 80
 sewing result $toler sh
 
 # 3. Verify result of sewing
-puts [checkshape result]
+checkshape result
 
 # Retrieve free wires from result shape
 catch { fbclose result $toler $toler } resOfCatch
index 0ace09d7cb9ffdf7116c50d8225dad2abbe5c7f0..c48cb0d588559e25d4cb3ee48be15be488b4205b 100755 (executable)
@@ -7,6 +7,6 @@ puts ""
 ############################################
 
 restore [locate_data_file OCC432.brep] result
-puts [checkshape result r]
+checkshape result r
 
 set 2dviewer 0
index 8462630a8459d50fcc3abae7b761b1b0ae8e3e47..054d0267e965f07b0eea567f3ce788aa1b3157d0 100755 (executable)
@@ -5,7 +5,7 @@ puts "========================"
 puts ""
 
 restore [locate_data_file OCC466.brep] res 
-puts [checkshape res]
+checkshape res
 
 nurbsconvert result res
 
index af0cdc254e0098f46dc38c508775c8ea0afdc31f..6e3063ec0ed4ff38956477c83865aea4c5fda493 100755 (executable)
@@ -24,7 +24,7 @@ checkshape a_1
 checkshape a_2
 
 bfuse result a_1 a_2
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 10
diff --git a/tests/bugs/moddata/bug486 b/tests/bugs/moddata/bug486
new file mode 100755 (executable)
index 0000000..573eb61
--- /dev/null
@@ -0,0 +1,33 @@
+pload QAcommands
+
+puts "========"
+puts "OCC486"
+puts "========"
+puts ""
+#############################
+## Extrema_ExtPS gives wrong solution.
+#############################
+
+restore [locate_data_file OCC486.draw] s 
+
+# Case 1. Verify whether surface is u-periodic and v-periodic
+set result [isperiodic s]
+puts $result
+set uper "is u-periodic"
+set vper "is v-periodic"
+if {[regexp $uper $result] && [regexp $vper $result]} {
+    puts "OCC486 case 1 - Faulty"
+} else {
+    puts "OCC486 case 1 -  OK"
+}
+
+# Case 2. Verify extremum distance between point and surface
+
+point p3d -420.1170080179139 926.8792206000001 229.5109675013802
+if { [ catch { OCC486 s -420.1170080179139 926.8792206000001 229.5109675013802 0 0.0000001 } ] } {
+    puts "OCC486 case 2 - Faulty"
+} else {
+    puts "OCC486 case 2 -  OK"
+}
+
+set 2dviewer 1
index 921d6fea01dc512bdd267d30e6ae10330764cea9..5968bcaca898c6fe40fb23f6f4cfbe93d3dda0ba 100755 (executable)
@@ -7,10 +7,10 @@ puts ""
 ##############################
 
 restore [locate_data_file OCC496a.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 restore [locate_data_file OCC496b.brep] a_2
-puts [checkshape a_2]
+checkshape a_2
 
 bfuse result a_1 a_2
 
index 6103db79c41b5911ca784519ff006fdf87133ec5..5b2e296d82fa6bb1f731427caefaa53b1932055a 100755 (executable)
@@ -9,12 +9,12 @@ puts ""
 ###################################################################
 
 restore [locate_data_file OCC50.brep] a 
-puts [checkshape a]
+checkshape a
 
 explode a e
 
 blend result a 1 a_17 1 a_5 1 a_1 1 a_2 1 a_16 1 a_20 1 a_3 1 a_11 1 a_10 1 a_4
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set square 7677.49
index 06bced5dd79f1fae5076ee779afe50cb32465d10..0ced41616f66b0aa17e901dcbf105c26719d0c31 100755 (executable)
@@ -8,10 +8,10 @@ puts ""
 #####################################
 
 restore [locate_data_file OCC505a.brep] su1 
-puts [checkshape su1]
+checkshape su1
 
 restore [locate_data_file OCC505b.brep] su2
-puts [checkshape su2]
+checkshape su2
 
 distmini d su1 su2
 
diff --git a/tests/bugs/moddata/bug513 b/tests/bugs/moddata/bug513
new file mode 100755 (executable)
index 0000000..237a686
--- /dev/null
@@ -0,0 +1,23 @@
+puts "========"
+puts "OCC513"
+puts "========"
+puts ""
+
+######################################
+## Can not intersect plane and conical surfaces
+## The ">intersect" command hangs up the computer.
+######################################
+
+# cpulimit 9000
+
+restore [locate_data_file OCC513a.draw] sa23 
+restore [locate_data_file OCC513b.draw] sb8 
+
+if { [catch {intersect result sa23 sb8} catch_result] } {
+    puts "Faulty OCC513: function INTERSECTION works wrongly"
+} else {
+    puts "OCC513 OK: function INTERSECTION works properly"
+}
+
+set 2dviewer 0
+
diff --git a/tests/bugs/moddata/bug515 b/tests/bugs/moddata/bug515
new file mode 100755 (executable)
index 0000000..2120f1b
--- /dev/null
@@ -0,0 +1,27 @@
+puts "========"
+puts "OCC515"
+puts "========"
+puts ""
+################################
+## Wrong projection of the Line on the Cone
+################################
+
+restore [locate_data_file OCC515a.draw] cx 
+restore [locate_data_file OCC515b.draw] s 
+
+if { [catch {project c2d cx s -t 0.0015} ] } { 
+    puts "OCC515 FAULTY"
+}  else {
+    # create dump of resulting curve  
+    set dump [dump c2d]
+    # read dump of old curve 
+    set olddump [read [open [locate_data_file OCC515_DUMP]]]
+    # if the the dumps is equal this bug is still exist
+    if { $dump == $olddump } {
+       puts "OCC515 FAULTY"
+    } else {
+       puts "OCC515 WARNING: Dumps of old and new curve are different, probably bug is still exist"
+    }
+}
+
+
diff --git a/tests/bugs/moddata/bug525 b/tests/bugs/moddata/bug525
new file mode 100755 (executable)
index 0000000..57a6051
--- /dev/null
@@ -0,0 +1,23 @@
+pload QAcommands
+
+puts "========"
+puts "OCC525"
+puts "========"
+puts ""
+#########################################
+## Bug in GeomPlate_BuildPlateSurface::ComputeSurfInit()
+#########################################
+
+set mistake 0
+
+decho off
+if { [catch { OCC525 } ] } {
+    set mistake 1
+}
+decho on
+
+if { $mistake == 1 } {
+    puts "Faulty : OCC525"
+}
+
+set 2dviewer 1
diff --git a/tests/bugs/moddata/bug531 b/tests/bugs/moddata/bug531
new file mode 100755 (executable)
index 0000000..0d8567b
--- /dev/null
@@ -0,0 +1,16 @@
+
+puts "======="
+puts "OCC531"
+puts "======="
+puts ""
+##########################################################
+## Can not intersect plane and cone.The ">intersect" command hangs up the computer
+##########################################################
+
+restore [locate_data_file OCC531_1.draw] a 
+restore [locate_data_file OCC531_2.draw] b 
+
+intersect result a b
+
+set 2dviewer 0
+
diff --git a/tests/bugs/moddata/bug537 b/tests/bugs/moddata/bug537
new file mode 100755 (executable)
index 0000000..21df4bc
--- /dev/null
@@ -0,0 +1,27 @@
+puts "TODO OCC12345 ALL: Error : OCC537"
+
+puts "======="
+puts "OCC537"
+puts "======="
+puts ""
+#######################################################################
+##Application do something in intersection operation for long time and eat much memory (This may be the
+##  reason of BUS ERROR that happens in application). Intersection operation invokes for conical and plane
+## surfaces.
+#######################################################################
+
+restore [locate_data_file OCC537_CONE.draw] c 
+restore [locate_data_file OCC537_PLANE.draw] p 
+
+intersect result c p
+
+set wt_is [whatis result]
+
+if { [regexp {WIRE} ${wt_is}] } {
+    puts " OCC537 OK"
+} else {
+    puts "Error : OCC537"
+}
+
+set 2dviewer 2
+
index 9e72bb6134cdeaa9058f09fa43cab1989e57f051..b3c3bd9279d38c463fa0703652c761f4c8341250 100755 (executable)
@@ -16,6 +16,6 @@ puts ""
 cpulimit 300
 restore [locate_data_file OCC54.brep] result
 
-puts [checkshape result]
+checkshape result
 
 set 3dviewer 0
diff --git a/tests/bugs/moddata/bug541 b/tests/bugs/moddata/bug541
new file mode 100755 (executable)
index 0000000..b94710c
--- /dev/null
@@ -0,0 +1,20 @@
+puts "========================"
+puts " OCC541 "
+puts "========================"
+puts ""
+############################################
+## Extrema works wrong for line and circle laying on one plane.
+############################################
+
+restore [locate_data_file OCC541a.draw] c1x 
+restore [locate_data_file OCC541b.draw] c2x 
+
+set result [extrema c1x c2x]
+set err [llength $result]
+if { $err < 1} {
+    puts "Faulty OCC541 (amount of solution): command extrema does NOT work properly"
+} else {
+    puts "OCC541 OK (amount of solution): : command extrema works properly"
+}
+
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug542 b/tests/bugs/moddata/bug542
new file mode 100755 (executable)
index 0000000..6e5fa1b
--- /dev/null
@@ -0,0 +1,28 @@
+
+puts "========"
+puts "OCC542"
+puts "========"
+puts ""
+################################
+## Wrong projection of the circle on the sphere
+################################
+
+restore [locate_data_file OCC542_C3D.draw] c3d 
+restore [locate_data_file OCC542_S.draw] s 
+
+if { [catch {project result c3d s } catch_result] } {
+    puts "OCC542 Faulty"
+} else {
+    # create dump of resulting curve  
+    set dump [dump result]
+    # read dump of old curve 
+    set olddump [read [open [locate_data_file OCC542_DUMP]]]
+    # if the the dumps is equal this bug is still exist
+    if { $dump == $olddump } {
+       puts "OCC542 Faulty"
+    } else {
+       puts "OCC542 WARNING: Dumps of old and new curve are different, probably bug is still exist"
+    }
+}
+
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug565 b/tests/bugs/moddata/bug565
new file mode 100755 (executable)
index 0000000..ae63aad
--- /dev/null
@@ -0,0 +1,53 @@
+puts "========| OCC565 |========"
+##################################
+## Can not intersect two trimmed conical surfaces 
+##################################
+
+restore [locate_data_file OCC565a.draw] s1 
+restore [locate_data_file OCC565b.draw] s2 
+
+puts "Preliminary check: intersection work with infinite cones:"
+if { [catch {intersect inf s1 s2 } catch_result] } {
+    puts "Faulty OCC565: function intersection works wrongly with infinite cones"
+} else {
+    set j 1
+    set er [lindex [whatis inf] 5]
+    repeat 4 {
+       set err [lindex [whatis inf_$j] 5]
+       if { $err != "curve" && $er != "curve"} {
+           puts " Faulty OCC565: function intersection works wrongly with infinite cones"
+           break
+       } else {
+           puts [format "curve inf_%s : exist " $j]
+       }
+       incr j
+    }
+    puts "Function intersection works correctly with infinite cones. Then check OCC565:"
+}
+
+trim s1x s1 0 2*pi 0 2.8
+trim s2x s2 0 2*pi 0 2.8
+
+if { [catch {intersect result s1x s2x } catch_result] } {
+    puts "Faulty OCC565 exception: function intersection works wrongly with trimmed cones"
+} else {
+    set nom 0
+    set j 1
+    set er [lindex [whatis result] 5]
+    repeat 4 {
+       set err [lindex [whatis result_$j] 5]
+       if { $err != "curve" && $er != "curve"} {
+           break
+        } else {
+           set nom [expr $nom + 1]
+        }
+       incr j
+    }
+    if { $nom == 0} {
+       puts " Faulty OCC565: function intersection works wrongly with trimmed cones"
+    } else {
+       puts " OCC565 OK: function intersection works with trimmed cones"
+    }
+}
+
+
diff --git a/tests/bugs/moddata/bug567 b/tests/bugs/moddata/bug567
new file mode 100755 (executable)
index 0000000..dbfa54d
--- /dev/null
@@ -0,0 +1,52 @@
+puts "TODO OCC12345 ALL: Faulty OCC565: function intersection works wrongly with trimmed Surfaces"
+
+puts "========"
+puts "OCC567"
+puts "========"
+puts ""
+#######################################
+## Can not intersect two Rectangular Trimmed Surfaces . 
+#######################################
+
+restore [locate_data_file OCC567a.draw] s1 
+restore [locate_data_file OCC567b.draw] s2 
+
+if { [catch {intersect i s1 s2 } catch_result] } {
+    puts "Faulty OCC565: function intersection works wrongly with infinite Surfaces"
+} else {
+   set j 1
+   repeat 11 {
+   set err [lindex [whatis i_$j] 5]
+     if { $err != "curve"} {
+       puts " Faulty OCC565: function intersection works wrongly with infinite Surfaces"
+       break
+      } else {
+       puts [format "%s ) OCC565 OK: function intersection works with infinite Surfaces" $j]
+              }
+    incr j}
+}
+
+trim s1x s1 0 2*pi 0 2*pi/13
+trim s2x s2 0 2*pi 0 2*pi/13
+
+if { [catch {intersect result s1x s2x } catch_result] } {
+    puts "Faulty OCC565 exception: function intersection works wrongly with trimmed Surfaces"
+} else {
+    set nom 0
+    set j 1
+    repeat 11 {
+       set err [lindex [whatis result_$j] 5]
+        if { $err != "curve"} {
+           break
+        } else {
+           set nom [expr $nom + 1]
+        }
+       incr j
+    }
+    if { $nom == 0} {
+       puts "Faulty OCC565: function intersection works wrongly with trimmed Surfaces"
+    } else {
+       puts " OCC565 OK: function intersection works with trimmed Surfaces"
+    }
+}
+
diff --git a/tests/bugs/moddata/bug569 b/tests/bugs/moddata/bug569
new file mode 100755 (executable)
index 0000000..6035413
--- /dev/null
@@ -0,0 +1,33 @@
+puts "TODO OCC12345 ALL: Faulty OCC569: function intersection works wrongly with trimmed plane and cone surfaces"
+
+puts "========"
+puts "OCC569"
+puts "========"
+puts ""
+##################################
+## Can not intersect trimmed plane and cone surfaces 
+##################################
+
+restore [locate_data_file OCC569a.draw] s1 
+restore [locate_data_file OCC569b.draw] s2 
+
+if { [catch {intersect result s1 s2 } catch_result] } {
+    puts "Faulty OCC569 exception: function intersection works wrongly with trimmed plane and cone surfaces "
+} else {
+    set nom 0
+    set j 1
+    repeat 10 {
+       set err [lindex [whatis result_$j] 5]
+       if { $err != "curve"} {
+           break
+       } else {
+           set nom [expr $nom + 1]
+       }
+       incr j
+    }
+    if { $nom == 0} {
+       puts "Faulty OCC569: function intersection works wrongly with trimmed plane and cone surfaces"
+    } else {
+       puts "OCC569 OK: function intersection works with trimmed plane and cone surfaces"
+    }
+}
diff --git a/tests/bugs/moddata/bug593 b/tests/bugs/moddata/bug593
new file mode 100755 (executable)
index 0000000..a275e0a
--- /dev/null
@@ -0,0 +1,54 @@
+puts "TODO OCC12345 ALL: Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
+
+puts "========================"
+puts " OCC593 "
+puts "========================"
+puts ""
+#############################################################
+## Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect 
+#############################################################
+
+restore [locate_data_file OCC593.brep] ff48 
+
+set tolerance [maxtolerance ff48]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
+
+vertex vv -19.561252535222 17.89876466186 71.408126285268
+distmini dd vv ff48
+regexp {([-0-9.+eE]+)$} [dump dd_val] full ddval
+
+mksurface gs ff48
+
+proj gs -19.561252535222 17.89876466186 71.408126285268
+
+set pp1 [lindex [dump ext_1] 9]
+set pp2 [lindex [dump ext_1] 10]
+
+set err [expr abs ([expr $pp2 - $pp1])]
+puts [format "MaxFaceTolerance = %s" $MaxFaceTolerance]
+puts [format "MaxDistance = %s" $err]
+if { $err < $MaxFaceTolerance } {
+    puts  "OCC593 (case 1) : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works properly"
+} else {
+    puts "Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
+}
+copy ext_1 oldext_1
+
+puts ""
+puts "***** Another example: *****"
+
+svalue gs 0.56 0.4 x y z
+point p x y z
+proj gs x y z
+
+set p1 [lindex [dump ext_1] 9]
+set p2 [lindex [dump ext_1] 10]
+
+set err1 [expr abs ([expr $p2 - $p1])]
+puts [format "MaxFaceTolerance = %s" $MaxFaceTolerance]
+puts [format "MaxDistance = %s" $err1]
+if { $err1 < $MaxFaceTolerance } {
+    puts  "OCC593 (case 2) : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works properly"
+} else {
+    puts "Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
+}
diff --git a/tests/bugs/moddata/bug601 b/tests/bugs/moddata/bug601
new file mode 100755 (executable)
index 0000000..46428f8
--- /dev/null
@@ -0,0 +1,26 @@
+puts "TODO OCC12345 ALL: Faulty OCC601: function BLEND works wrongly"
+
+puts "========================"
+puts " OCC601 "
+puts "SAM1542"
+puts "========================"
+puts ""
+#############################################
+## No possibility to make a fillet 13 at the inner edge of the shape
+#############################################
+
+restore [locate_data_file OCC601.brep] a
+checkshape a
+
+explode a e
+
+if [catch {blend result a 13 a_41 } res] {
+    puts "Faulty OCC601: function BLEND works wrongly"
+} else {
+    puts "OCC601 OK: function BLEND works without exception"
+    checkshape result
+    
+    set check_square 1
+    set square 10
+    set 2dviewer 0
+}
diff --git a/tests/bugs/moddata/bug604 b/tests/bugs/moddata/bug604
new file mode 100755 (executable)
index 0000000..c460f07
--- /dev/null
@@ -0,0 +1,35 @@
+puts "TODO OCC12345 ALL: Faulty OCC604: Result of intersection operation is INcorrect !!!"
+
+puts "========================"
+puts " OCC604"
+puts "========================"
+puts ""
+############################
+## Wrong intersection between two tores.
+############################
+
+restore [locate_data_file OCC604a.draw] a 
+restore [locate_data_file OCC604b.draw] b 
+
+if { [catch { intersect result a b } catch_result] } {
+    puts "Faulty OCC604: function INTERSECTION works with exception"
+} else {
+    set nom 0
+    set j 1
+    repeat 10 {
+       set err [lindex [whatis res_$j] 5]
+       if { $err != "curve"} {
+           break
+        } else {
+           set nom [expr $nom + 1]
+        }
+       incr j
+    }
+    if { $nom != 1 } {
+       puts "Faulty OCC604: Result of intersection operation is INcorrect !!!"
+    } else {
+       puts "OCC604 OK : Result of intersection operation is CORRECT !!! "
+    }
+}
+
+set 3dviewer 1
diff --git a/tests/bugs/moddata/bug611_1 b/tests/bugs/moddata/bug611_1
new file mode 100755 (executable)
index 0000000..998f762
--- /dev/null
@@ -0,0 +1,21 @@
+puts "========================"
+puts "OCC611"
+puts "SAM1564"
+puts "(case 1)"
+puts "========================"
+puts ""
+############################
+## No possibility to fuse the shapes. 
+############################
+
+restore [locate_data_file OCC611.brep] a
+explode a
+checkshape a_1
+checkshape a_2
+
+bfuse result a_1 a_2
+checkshape result
+
+set check_square 1
+set square 531.197
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug611_2 b/tests/bugs/moddata/bug611_2
new file mode 100755 (executable)
index 0000000..71616d4
--- /dev/null
@@ -0,0 +1,22 @@
+puts "=================7======="
+puts "OCC611"
+puts "SAM1564"
+puts "(case 2)"
+puts "========================"
+puts ""
+############################
+## No possibility to fuse the shapes. 
+############################
+
+restore [locate_data_file OCC611.brep] a
+explode a
+checkshape a_1
+checkshape a_2
+
+bop a_1 a_2
+bopfuse result
+checkshape result
+
+set check_square 1
+set square 531.197
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug611_3 b/tests/bugs/moddata/bug611_3
new file mode 100755 (executable)
index 0000000..308a525
--- /dev/null
@@ -0,0 +1,21 @@
+puts "========================"
+puts "OCC611"
+puts "SAM1564"
+puts "(case 1)"
+puts "========================"
+puts ""
+############################
+## No possibility to fuse the shapes. 
+############################
+
+restore [locate_data_file OCC611.brep] a
+explode a
+checkshape a_1
+checkshape a_2
+
+bfuse result a_2 a_1
+checkshape result
+
+set check_square 1
+set square 531.197
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug613_1 b/tests/bugs/moddata/bug613_1
new file mode 100755 (executable)
index 0000000..071719b
--- /dev/null
@@ -0,0 +1,26 @@
+puts "========================"
+puts " OCC613"
+puts "(case 1)"
+puts "========================"
+puts ""
+#############################################
+## Meshing algo cannot create mesh for faces with internal edges
+#############################################
+
+restore [locate_data_file OCC613a.brep] result
+
+tclean result
+isos result 0
+incmesh result .1
+triangles result
+
+set tri_info [trinfo result]
+regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
+regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
+
+if { $tri == 0 || $nod == 0 } {
+    puts "Error : Meshing algo cannot create mesh for faces with internal edges "
+}
+
+set 3dviewer 1
+
diff --git a/tests/bugs/moddata/bug613_2 b/tests/bugs/moddata/bug613_2
new file mode 100755 (executable)
index 0000000..44a4b84
--- /dev/null
@@ -0,0 +1,26 @@
+puts "========================"
+puts " OCC613"
+puts "(case 2)"
+puts "========================"
+puts ""
+#############################################
+## Meshing algo cannot create mesh for faces with internal edges
+#############################################
+
+restore [locate_data_file OCC613b.brep] result
+
+tclean result
+isos result 0
+incmesh result .1
+triangles result
+
+set tri_info [trinfo result]
+regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
+regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
+
+if { $tri == 0 || $nod == 0 } {
+    puts "Error : Meshing algo cannot create mesh for faces with internal edges "
+}
+
+set 3dviewer 1
+
index f061aa66a2794e2b95170c3eb97af824a2173dcc..688f9e02c65e794482e377f7a808ecac87a4301e 100755 (executable)
@@ -8,9 +8,9 @@ puts ""
 ############################
 
 restore [locate_data_file OCC618a.brep] a 
-puts [checkshape a]
+checkshape a
 restore [locate_data_file OCC618b.brep] b 
-puts [checkshape b]
+checkshape b
 
 if [catch {bop a b} catch_result] {
     puts "Faulty OCC618 : BOP operation was made wrongly"
index cbcf3e158c265a702a3cba28e1c6947a9970cabb..af394df2e80e8e63c789d787b1aff13d585b2bcb 100755 (executable)
@@ -12,11 +12,11 @@ puts ""
 ###############################################
 
 restore [locate_data_file OCC65.brep] sh 
-puts [checkshape sh]
+checkshape sh
 
 revol result sh 0 0 0 0 0 1 360
 
-puts [checkshape result]
+checkshape result
 
 set check_square 1
 set volume 10
diff --git a/tests/bugs/moddata/bug703 b/tests/bugs/moddata/bug703
new file mode 100755 (executable)
index 0000000..5244823
--- /dev/null
@@ -0,0 +1,22 @@
+puts "=========="
+puts "OCC703    "
+puts "=========="
+puts ""
+##################################################
+## Wrong result of extrema
+## Draw command extrema c1 ce gives no solutions, but must be 2 solutions
+##################################################
+
+restore [locate_data_file OCC703_1.draw] c1 
+restore [locate_data_file OCC703_2.draw] ce 
+
+set result [extrema c1 ce]
+set err [llength $result]
+if { $err != 2} {
+    puts "Faulty OCC703 (amount of solution): command extrema does NOT work properly"
+} else {
+    puts "OCC703 OK (amount of solution): command extrema works properly"
+}
+
+set 2dviewer 0
+
diff --git a/tests/bugs/moddata/bug726_3 b/tests/bugs/moddata/bug726_3
new file mode 100755 (executable)
index 0000000..708f6d2
--- /dev/null
@@ -0,0 +1,24 @@
+puts "TODO OCC12345 ALL: Tcl Exception: result is not a topological shape!!!"
+puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+
+puts "========"
+puts "OCC726"
+puts "SAM1594"
+puts "========"
+puts ""
+######################################
+## Boolean operations are impossible on the attachment.
+######################################
+
+restore [locate_data_file OCC726.brep] a 
+explode a
+checkshape a_1
+checkshape a_2
+
+bcut result a_2 a_1
+
+checkshape result
+
+set check_square 1
+set square 10
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug736 b/tests/bugs/moddata/bug736
new file mode 100755 (executable)
index 0000000..5507ea2
--- /dev/null
@@ -0,0 +1,21 @@
+puts "========"
+puts "OCC736"
+puts "========"
+puts ""
+#####################################################
+## After restoring attached shape(face) it is obviously that there is
+## selfintersecting wire. However BRepCheck gives reply that shape looks OK.
+#####################################################
+
+restore [locate_data_file OCC736.brep] result
+decho off
+set che [checkshape result r]
+decho on
+if { [regexp {OK} $che ] == 1 } {
+    puts "Faulty OCC736:  checkshape command works wrongly"
+} else {
+    puts "OCC736 OK: checkshape command works PROPERLY"
+}
+
+set 2dviewer 0
+
diff --git a/tests/bugs/moddata/bug747 b/tests/bugs/moddata/bug747
new file mode 100755 (executable)
index 0000000..859231a
--- /dev/null
@@ -0,0 +1,20 @@
+
+puts "========"
+puts "OCC747"
+puts "========"
+puts ""
+###############################
+## Exception in DRAW-command "distmini"
+###############################
+
+restore [locate_data_file OCC747_1.brep] s1 
+checkshape s1
+restore [locate_data_file OCC747_2.brep] s2 
+checkshape s2
+
+if { [catch { distmini result s1 s2 } status] } {
+    puts "Faulty OCC747"
+} else {
+    puts "OCC747 OK"
+}
+
index e932d6d1d39eab09616e1f051f7d6aacfc68f676..214185d6587ad2805d8822581dfd294c061cd30e 100755 (executable)
@@ -7,11 +7,11 @@ puts "================"
 puts ""
 
 restore [locate_data_file shading_177.brep] sh1 
-puts [checkshape sh1]
+checkshape sh1
 regexp {Mass +: +([-0-9.+eE]+)} [vprops sh1] full l1
 
 restore [locate_data_file OCC76-2.brep] sh2
-puts [checkshape sh2]
+checkshape sh2
 regexp {Mass +: +([-0-9.+eE]+)} [vprops sh2] full l2
 
 if { [expr abs([expr $l1 - 3020.94])] > 0.00999} {     
diff --git a/tests/bugs/moddata/bug766 b/tests/bugs/moddata/bug766
new file mode 100755 (executable)
index 0000000..afdf179
--- /dev/null
@@ -0,0 +1,21 @@
+puts "========"
+puts "OCC766"
+puts "========"
+puts ""
+###############################
+## Can not project the 3-D point on the ellipse
+###############################
+
+restore [locate_data_file OCC766.draw] c 
+
+set result [proj c 30 3.944304526105059e-31 20.0]
+
+set length [llength $result]
+
+if {$length > 0} {
+  puts "OCC770 OK"
+} else {
+  puts "Faulty OCC770"
+}
+
+set 2dviewer 1
index 5bee838f5c17cf493f652408aa7e2d0a8459c244..75e16f53c61a130d890f44b96ff416f1f5142ecb 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 pload XDE
 restore [locate_data_file OCC8.brep] result
 
-puts [checkshape result]
+checkshape result
 
 explode result w
 set info [expwire result_1 sh]
diff --git a/tests/bugs/moddata/bug813 b/tests/bugs/moddata/bug813
new file mode 100755 (executable)
index 0000000..0cde7ff
--- /dev/null
@@ -0,0 +1,24 @@
+pload QAcommands
+
+puts "========="
+puts " OCC813 "
+puts "========="
+puts ""
+#####################################
+## Geom2dGcc_Lin2d2Tan fails on point and ellipse
+#####################################
+set U 200
+set V 200
+
+set result [OCC813 $U $V]
+
+set nb_sol 0
+
+regexp {nb of solutions = ([-0-9.+eE]+)} $result full nb_sol
+
+if {$nb_sol > 0} {
+    puts "OCC813 OK"
+} else {
+    puts "Faulty OCC813"
+}
+
diff --git a/tests/bugs/moddata/bug814 b/tests/bugs/moddata/bug814
new file mode 100755 (executable)
index 0000000..9772a63
--- /dev/null
@@ -0,0 +1,23 @@
+pload QAcommands
+
+puts "========="
+puts " OCC814 "
+puts "========="
+puts ""
+####################################
+## Geom2dGcc_Lin2d2Tan fails on circle and ellipse
+####################################
+
+set result [OCC814]
+
+set nb_sol 0
+
+regexp {nb of solutions = ([-0-9.+eE]+)} $result full nb_sol
+
+if {$nb_sol > 0} {
+    puts "OCC814 OK"
+} else {
+    puts "Faulty OCC814"
+}
+
+
diff --git a/tests/bugs/moddata/bug862 b/tests/bugs/moddata/bug862
new file mode 100755 (executable)
index 0000000..a1a7fad
--- /dev/null
@@ -0,0 +1,21 @@
+
+puts "================"
+puts "OCC862"
+puts "================"
+puts ""
+########################################
+## The result is just one extremum - intersection is not found.
+########################################
+restore [locate_data_file OCC862_1.draw] c1 
+restore [locate_data_file OCC862_2.draw] c2 
+
+set result [extrema c1 c2]
+set err [llength $result]
+if { $err <= 1} {
+    puts "Faulty OCC862 (amount of solution): command extrema does NOT work properly"
+} else {
+    puts "OCC862 OK (amount of solution): command extrema works properly"
+}
+
+set 2dviewer 0
+
diff --git a/tests/bugs/moddata/bug867 b/tests/bugs/moddata/bug867
new file mode 100755 (executable)
index 0000000..b2c780d
--- /dev/null
@@ -0,0 +1,24 @@
+pload QAcommands
+
+puts "========"
+puts "OCC867"
+puts "========"
+puts ""
+######################################################
+## When calling method Init() with surface and its boundary parameters are the 
+## arguments and then calling method Perform() it raises an exception.
+######################################################
+
+cylinder c 10 20
+trim c c 0 4 0 2
+point p 30 30 30
+set Umin 0 
+set Usup 3
+set Vmin 0 
+set Vsup 2
+
+if { [ catch {OCC867 p c $Umin $Usup $Vmin $Vsup} catch_result ] } {
+    puts "Faulty OCC867"
+} else {
+    puts "OCC867 OK"
+}
index 3f4ded502d60d4919ee4b45fab45b8004366d6e5..dd5438ebe2f44ac3aa85ad8daec624ab79d2c17c 100755 (executable)
@@ -12,8 +12,8 @@ restore [locate_data_file OCC88.brep] sh
 set che [checkshape sh]
 
 explode sh f
-puts [checkshape sh_1]
-puts [checkshape sh_2]
+checkshape sh_1
+checkshape sh_2
 
 mksurface surf1 sh_1
 mksurface surf2 sh_2
diff --git a/tests/bugs/moddata/bug889 b/tests/bugs/moddata/bug889
new file mode 100755 (executable)
index 0000000..4be5dd3
--- /dev/null
@@ -0,0 +1,22 @@
+puts "TODO OCC12345 ALL: Faulty OCC889 : Checkshape says that the shape has FAULTY, but it is not truth"
+
+puts "============"
+puts "OCC889"
+puts "============"
+puts ""
+############################################
+## Checkshape founds number of errors on new face. It is not true.
+############################################
+restore [locate_data_file OCC889.rle] result
+
+decho off
+set che [checkshape result]
+decho on
+
+if { [ regexp {Faulty} $che ] == 1 } {
+    puts "Faulty OCC889 : Checkshape says that the shape has FAULTY, but it is not truth"
+} else {
+    puts "OCC889 OK : Checkshape works properly"
+}
+
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug909 b/tests/bugs/moddata/bug909
new file mode 100755 (executable)
index 0000000..3573115
--- /dev/null
@@ -0,0 +1,27 @@
+puts "TODO OCC12345 ALL: Faulty OCC909"
+
+pload QAcommands
+
+puts "======="
+puts "OCC909"
+puts "======="
+puts ""
+#######################################################
+## BRepTools_WireExplorer give different number of edges in dev and FIXOCC40
+#######################################################
+
+restore [locate_data_file OCC909_f.rle] f 
+restore [locate_data_file OCC909_w.rle] w 
+
+if { [ catch { set result [OCC909 w f] } ] } {
+    puts "Faulty OCC909"
+} else {
+    set count 0
+    regexp {Count = ()} $result full count
+    if {$count != 2} {
+       puts "Faulty OCC909"
+    } else {
+       puts "OCC909 OK"
+    }
+}
+
diff --git a/tests/bugs/moddata/bug921 b/tests/bugs/moddata/bug921
new file mode 100755 (executable)
index 0000000..0ea374a
--- /dev/null
@@ -0,0 +1,72 @@
+pload QAcommands
+
+puts "======="
+puts "OCC921"
+puts "======="
+puts ""
+############################################################
+## I have found that regresiion on file a054a.sat depends on changes in
+## BRepTools::AddUVBounds. The method BRepTools::UVBounds(F, u1, u2, v1, v2)
+## returns different values in C40 and in dev. It is because there are different
+## strings of code. BRepTools.cxx line 213 (in dev version)
+############################################################
+
+set good_u1 -0.157166
+set good_u2 4.88216
+set good_v1 -1.65583
+set good_v2 7.93778
+
+set percent_max 0.1
+
+restore [locate_data_file OCC921.rle] a
+
+set BoundsList [OCC921 a]
+
+set u1 0
+set u2 0
+set v1 0
+set v2 0
+
+regexp {Bounds: *([-0-9.+eE]+) *([-0-9.+eE]+) *([-0-9.+eE]+) *([-0-9.+eE]+)} $BoundsList full u1 u2 v1 v2
+
+set u1_percent [expr abs(${u1} - ${good_u1}) / double(${good_u1}) * 100.]
+set u2_percent [expr abs(${u2} - ${good_u2}) / double(${good_u2}) * 100.]
+set v1_percent [expr abs(${v1} - ${good_v1}) / double(${good_v1}) * 100.]
+set v2_percent [expr abs(${v2} - ${good_v2}) / double(${good_v2}) * 100.]
+
+puts "u1 = ${u1}"
+puts "u2 = ${u2}"
+puts "v1 = ${v1}"
+puts "v2 = ${v2}"
+
+puts "u1_percent = ${u1_percent}"
+puts "u2_percent = ${u2_percent}"
+puts "v1_percent = ${v1_percent}"
+puts "v2_percent = ${v2_percent}"
+
+set status 0
+
+if {${u1_percent} > ${percent_max}} {
+  puts "OCC921: Error (case 1)"
+  set status 1
+}
+
+if {${u2_percent} > ${percent_max}} {
+  puts "OCC921: Error (case 2)"
+  set status 1
+}
+
+if {${v1_percent} > ${percent_max}} {
+  puts "OCC921: Error (case 3)"
+  set status 1
+}
+
+if {${v2_percent} > ${percent_max}} {
+  puts "OCC921: Error (case 4)"
+  set status 1
+}
+
+if {${status} == 0} {
+  puts "OCC921: OK"
+}
+
diff --git a/tests/bugs/moddata/bug935_1 b/tests/bugs/moddata/bug935_1
new file mode 100755 (executable)
index 0000000..07ddf00
--- /dev/null
@@ -0,0 +1,33 @@
+
+puts "========="
+puts " OCC935 "
+puts "(case 1)"
+puts "========="
+puts ""
+###############################
+## instability in checkshape in KAS:dev version.
+###############################
+
+restore [locate_data_file OCC935_1.brep] result
+
+decho off
+set err [checkshape result]
+decho on
+set j 1
+repeat 25 {
+    restore [locate_data_file OCC935_1.brep] result
+    decho off
+    set err1 [checkshape result]
+    decho on
+    if { $err != $err1 } {
+       puts [format " Faulty OCC935 (case 1): function CHECKSHAPE works wrongly on %s time" $j]
+       break
+    } else {
+       puts [format " OCC935 (case 1)  OK: function CHECKSHAPE works properly %s time" $j]
+    }
+    incr j
+}
+
+set 2dviewer 0
+
+
diff --git a/tests/bugs/moddata/bug935_2 b/tests/bugs/moddata/bug935_2
new file mode 100755 (executable)
index 0000000..7f738a4
--- /dev/null
@@ -0,0 +1,32 @@
+
+puts "========="
+puts " OCC935 "
+puts "(case 2)"
+puts "========="
+puts ""
+###############################
+## instability in checkshape in KAS:dev version.
+###############################
+
+restore [locate_data_file OCC935_2.brep] result
+
+decho off
+set err [checkshape result]
+decho on
+
+set j 1
+repeat 25 {
+    restore [locate_data_file OCC935_2.brep] result 
+    decho off
+    set err1 [checkshape result]
+    decho on
+    if { $err != $err1 } {
+       puts [format " Faulty OCC935 (case 2): function CHECKSHAPE works wrongly on %s time" $j]
+       break
+    } else {
+       puts [format " OCC935 (case 2)  OK: function CHECKSHAPE works properly %s time" $j]
+    }
+    incr j
+}
+
+set 2dviewer 0
diff --git a/tests/bugs/moddata/bug943_1 b/tests/bugs/moddata/bug943_1
new file mode 100755 (executable)
index 0000000..4ee1a39
--- /dev/null
@@ -0,0 +1,36 @@
+
+puts "========="
+puts " OCC943 "
+puts "(case 1)"
+puts "========="
+puts ""
+#####################################################
+## The regression is intersecting pcurves of face, They are added by fixshape.
+## (To see this you can try fixshape dF.rle from attachment. But please note, that
+## checkshape on result of fixshape sometimes fails and sometimes not. It is
+## instability!)
+######################################################
+
+restore [locate_data_file OCC943_1.brep] result
+
+decho off
+set err [checkshape result]
+decho on
+
+set j 1
+repeat 25 {
+    restore [locate_data_file OCC943_1.brep] result
+    decho off
+    set err1 [checkshape result]
+    decho on
+    if { $err != $err1 } {
+       puts [format " Faulty OCC943 (case 1): function CHECKSHAPE works wrongly on %s time" $j]
+       break
+    } else {
+       puts [format " OCC943 (case 1)  OK: function CHECKSHAPE works properly %s time" $j]
+    }
+    incr j
+}
+
+set 2dviewer 0
+
diff --git a/tests/bugs/moddata/bug943_2 b/tests/bugs/moddata/bug943_2
new file mode 100755 (executable)
index 0000000..5e44ef8
--- /dev/null
@@ -0,0 +1,36 @@
+
+puts "========="
+puts " OCC943 "
+puts "(case 2)"
+puts "========="
+puts ""
+#########################################################
+## distinace between projection and initial point in dev version is larger then in C40.
+#########################################################
+
+restore [locate_data_file OCC943_2.draw] su 
+
+set X 5.759527537723098 
+set Y 31.81368637070151
+set Z -0.2989616405627145
+
+vertex v $X $Y $Z
+proj su $X $Y $Z
+
+regexp {Parameters +: +[-0-9.+eE]+ +([-0-9.+eE]+)} [dump ext_1] full resV
+
+cvalue ext_1 $resV cx cy cz
+vertex V cx cy cz
+distmini d V v
+
+regexp {([-0-9.+eE]+)$} [dump d_val] full res
+
+set res_good 1.108e-05
+
+if { $res > $res_good } {
+    puts ""
+    puts "Faulty OCC493 (case 2)"
+} else {
+    puts ""
+    puts " OCC493 (case 2) OK"
+}
diff --git a/tests/bugs/moddata/bug956_1 b/tests/bugs/moddata/bug956_1
new file mode 100755 (executable)
index 0000000..dbb9439
--- /dev/null
@@ -0,0 +1,25 @@
+puts "TODO OCC12345 ALL: Faulty OCC956"
+
+puts "========="
+puts " OCC956 "
+puts "(case 1)"
+puts "========="
+puts ""
+###############################################
+##possible regression in KAS:dev on checkshape. Fails on valid shape
+###############################################
+
+restore [locate_data_file OCC956_1.brep] result
+
+decho off
+set che [checkshape result]
+decho on
+
+if { [regexp {Faulty} $che] } {
+    puts "Faulty OCC956 (case 1): Checkshape says that the shape is incorrect, but it is not truth"
+} else {
+    puts "OCC956 OK (case 1): Checkshape works properly"
+}
+
+set 2dviewer 0
+
diff --git a/tests/bugs/moddata/bug956_2 b/tests/bugs/moddata/bug956_2
new file mode 100755 (executable)
index 0000000..ef6fae6
--- /dev/null
@@ -0,0 +1,26 @@
+puts "TODO OCC12345 ALL: Faulty OCC956"
+
+puts "========="
+puts " OCC956 "
+puts "(case 2)"
+puts "========="
+puts ""
+###############################################
+##possible regression in KAS:dev on checkshape. Fails on valid shape
+###############################################
+
+restore [locate_data_file OCC956_2.brep] result
+
+decho off
+set che [checkshape result]
+decho on
+
+if { [regexp {Faulty} $che] } {
+    puts "Faulty OCC956 (case 2): Checkshape says that the shape is incorrect, but it is not truth"
+} else {
+    puts "OCC956 OK (case 2): Checkshape works properly"
+}
+
+set 2dviewer 0
+
+
old mode 100644 (file)
new mode 100755 (executable)
index da675ce..9d62fef
@@ -9,7 +9,7 @@ puts "=================================="
 puts ""
 
 restore [locate_data_file fra62476a.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 incmesh result .1
old mode 100644 (file)
new mode 100755 (executable)
index 379f01e..242acd6
@@ -8,7 +8,7 @@ puts "=================================="
 puts ""
 
 restore [locate_data_file fra62476b.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 incmesh result .1
index 7535a07f6a2ee28b4a11944ffa64abfcb5be534a..c61d04087d72d98c6dbf6ad5bdd081a04d15b201 100755 (executable)
@@ -3,14 +3,14 @@ puts "GER61235"
 puts "==========="
 
 restore [locate_data_file ger61235a.brep] tool 
-puts [checkshape tool]
+checkshape tool
 restore [locate_data_file ger61235b.brep] object 
-puts [checkshape object]
+checkshape object
 
 bsection result object tool 
 
 puts "Result of section :"
-puts [checkshape result]
+checkshape result
 #To check geometry part 
 mksurface s1 tool 
 mksurface s2 object 
index fb0b6513ab64c9bb91404df71b1c0aa6d4d2652f..332f598bfb3c1a5bd7ce71ccc84179e4de3168aa 100755 (executable)
@@ -9,9 +9,9 @@ puts ""
 #############################################################
 
 restore [locate_data_file pro19422a.brep] shape 
-puts [checkshape shape]
+checkshape shape
 restore [locate_data_file pro19422b.brep] tool
-puts [checkshape tool]
+checkshape tool
 
 bcut result shape tool
 
index 63a2fb9b9249887991590d98e5a2943bbc8be7ef..f41f11d3b2e4bf1be0928ff50418f2fb8b3d6c4f 100755 (executable)
@@ -8,9 +8,9 @@ puts ""
 #############################################################
 
 restore [locate_data_file pro19422c.brep] shape 
-puts [checkshape shape]
+checkshape shape
 restore [locate_data_file pro19422d.brep] tool
-puts [checkshape tool]
+checkshape tool
 
 bcut result shape tool
 
old mode 100644 (file)
new mode 100755 (executable)
index dcaf6dc..0f67ccf
@@ -8,7 +8,7 @@ puts "It takes visual check for this BUG"
 puts "=================================="
 
 restore [locate_data_file pro20333a.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 isos result 0
old mode 100644 (file)
new mode 100755 (executable)
index 29a53cd..41a60fa
@@ -5,6 +5,6 @@ puts "========================"
 stepread [locate_data_file buc60624a.stp] a *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
index 1d02ef1..f058643
@@ -10,8 +10,8 @@ param read.step.product.mode OFF
 stepread [locate_data_file BUC60809.stp] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
 
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index d608ebf..cd13b4c
@@ -67,8 +67,8 @@ if { ${IsOK} == 1 } {
 
 if { ${IsOK} == 1 } {
    fixshape result com ${delta}
-   puts [ checkshape result]
-   puts [checkshape result r]
+    checkshape result
+   checkshape result r
 }
 
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
index cb02f49..c955bd9
@@ -5,7 +5,7 @@ puts "BUC60948"
 puts "========================"
 
 restore [locate_data_file pump4.brep] a_1 
-puts [checkshape a_1]
+checkshape a_1
 
 #####################################################################
 catch {exec rm ${imagedir}/buc60948.stp}
@@ -16,7 +16,7 @@ dall
 stepread ${imagedir}/buc60948.stp a *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
index 40bb7af12f2e4b07139aa1d3a2aae402d920261a..f08c7d6ff43ffde21e6258578d64232fb0a551ee 100755 (executable)
@@ -9,7 +9,7 @@ tpcompound result
 if { [llength [whatis result]] == 3 } {
     puts "Error : There is no result"
 }
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
index 6b9080ce7094b718f3e576297b4cd7b7b21857e8..c07cf3d5b8c473fba228a4b4acb08715790ae6a8 100755 (executable)
@@ -14,7 +14,7 @@ vinit
 stepread [locate_data_file BUC61003-1.stp] a *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 vdisplay result
 vsetdispmode 1
index 60b44a3b14fc5b289e3863fe4b582dc98a4264ce..caa5f85c5a29a2bdd67e20a3f35793672888ccf3 100755 (executable)
@@ -14,7 +14,7 @@ vinit
 stepread [locate_data_file BUC61003-2.stp] a *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 vdisplay result
 vsetdispmode 1
index 4f380e9ecdfd4451c704be6fcadbdb1be2772e9d..82c4fb6b393d07bbbb31d637366624c148476147 100755 (executable)
@@ -16,7 +16,7 @@ vinit
 stepread [locate_data_file BUC61003-3.stp] a *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 vdisplay result
 vsetdispmode 1
index e9e50453af88a66b5d656c93a062f8ee58ada3a7..41861f147c795e62eff0b9b94e0f2f4d43a91ae1 100755 (executable)
@@ -15,7 +15,7 @@ vinit
 stepread [locate_data_file BUC61003-4.stp] a *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 vdisplay result
 vsetdispmode 1
index bd628f6d69698a6d3e210037235cf3b6daa8b119..d5533d2ee804b9cad4fa83c809714720acdaee9c 100755 (executable)
@@ -8,7 +8,7 @@ cpulimit 3000
 stepread [locate_data_file BUC61004.stp] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
index 00f75eacaa642b685f1c18f34b35b4ebd08df85f..8e426c52d10ffcdcd1143d53c9f145092ac7b966 100755 (executable)
@@ -24,7 +24,7 @@ puts " Read IGES file "
 igesbrep ${imagedir}/box.igs b *
 
 compound a_1 b_1 result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
index bb038df619db481a1caa16c6e817a4b228a653e8..4785268388e39a9127d82124f66f651843bdab24 100755 (executable)
@@ -10,7 +10,7 @@ cpulimit 2000
 stepread [locate_data_file OCC55.stp] a *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
diff --git a/tests/bugs/step/bug609 b/tests/bugs/step/bug609
new file mode 100755 (executable)
index 0000000..65da6ec
--- /dev/null
@@ -0,0 +1,28 @@
+puts "================"
+puts "OCC609"
+puts "================"
+puts ""
+#################################
+## Impossible to write separate vertices to STEP 
+#################################
+
+restore [locate_data_file OCC609.brep] a1
+
+######################################################################
+file delete ${imagedir}/vertises.stp
+stepwrite a a1 ${imagedir}/vertises.stp
+
+dall
+
+stepread ${imagedir}/vertises.stp a2 *
+
+set tex [nbshapes a2_1]
+regexp {VERTEX +: +([-0-9.+eE]+)} $tex full ve
+
+if { $ve != 0 } {
+    puts  " OCC609 : vertexes were saved and restored properly"
+} else {
+    puts "Faulty OCC609: vertexes were saved and restored wrongly"
+}
+
+
diff --git a/tests/bugs/step/bug630 b/tests/bugs/step/bug630
new file mode 100755 (executable)
index 0000000..8480315
--- /dev/null
@@ -0,0 +1,25 @@
+puts "================"
+puts "OCC630"
+puts "================"
+puts ""
+########################################################
+## DRAW hungs up at the  attempt to restore solid previously saved in STEP format
+########################################################
+
+restore [locate_data_file OCC630.brep] a1
+checkshape a1
+
+######################################################################
+file delete ${imagedir}/solid.stp
+stepwrite a a1 ${imagedir}/solid.stp
+
+dall
+
+if [catch {stepread ${imagedir}/solid.stp a2 * } res] {
+    puts "Faulty OCC630: here is reading problem"
+} else {
+    tpcompound result
+    checkshape result
+    
+    set 2dviewer 0
+}
diff --git a/tests/bugs/step/bug725 b/tests/bugs/step/bug725
new file mode 100755 (executable)
index 0000000..8aa7cb9
--- /dev/null
@@ -0,0 +1,14 @@
+puts "======="
+puts "OCC725"
+puts "======="
+puts ""
+#############################################################
+## Storing all free vertices of STEP into one SHAPE_DEFINITION_REPRESENTATION
+#############################################################
+
+stepread [locate_data_file OCC725.stp] a *
+
+tpcompound result
+checkshape result
+
+set 2dviewer 0
diff --git a/tests/bugs/step/bug725_1 b/tests/bugs/step/bug725_1
new file mode 100755 (executable)
index 0000000..ad87e2c
--- /dev/null
@@ -0,0 +1,26 @@
+puts "============"
+puts "OCC725"
+puts "============"
+puts ""
+###########################################################
+## Storing all free vertices of STEP into one SHAPE_DEFINITION_REPRESENTATION
+######################################################################
+
+set file2 ${imagedir}/OCC725.stp
+
+stepread [locate_data_file OCC725.stp] a *
+
+set len [nbshapes a_1]
+regexp {VERTEX +: +([-0-9.+eE]+)} $len full VERTEX1
+
+stepwrite a a_1 $file2
+
+stepread $file2 b *
+
+set len [nbshapes b_1]
+regexp {VERTEX +: +([-0-9.+eE]+)} $len full VERTEX2
+
+if { ${VERTEX1} != ${VERTEX2} } {
+    puts "Faulty OCC725"
+}
+
diff --git a/tests/bugs/step/bug926 b/tests/bugs/step/bug926
new file mode 100755 (executable)
index 0000000..c9be90b
--- /dev/null
@@ -0,0 +1,39 @@
+puts "TODO OCC12345 ALL: Error on Record"
+puts "TODO OCC12345 ALL: OCC926 Faulty"
+
+puts "================"
+puts "OCC926"
+puts "================"
+puts ""
+
+stepread [locate_data_file OCC926.stp] a *
+
+tpcompound result
+set list [nbshapes result]
+
+regexp {VERTEX +: +([-0-9.+eE]+)} $list full VERTEX
+regexp {EDGE +: +([-0-9.+eE]+)} $list full EDGE
+regexp {WIRE +: +([-0-9.+eE]+)} $list full WIRE
+regexp {FACE +: +([-0-9.+eE]+)} $list full FACE
+regexp {SHELL +: +([-0-9.+eE]+)} $list full SHELL
+regexp {SOLID +: +([-0-9.+eE]+)} $list full SOLID
+regexp {COMPSOLID +: +([-0-9.+eE]+)} $list full COMPSOLID
+regexp {COMPOUND +: +([-0-9.+eE]+)} $list full COMPOUND
+regexp {SHAPE +: +([-0-9.+eE]+)} $list full SHAPE
+
+if { $VERTEX != 4474 || \
+    $EDGE != 6907 || \
+    $WIRE != 3823 || \
+    $FACE != 3085 || \
+    $SHELL != 196 || \
+    $SOLID != 154 || \
+    $COMPSOLID != 0 || \
+    $COMPOUND != 32 || \
+    $SHAPE != 18671 } {
+    puts "OCC926 Faulty"
+} else {
+    puts "OCC926 OK"
+}
+
+set 2dviewer 0
+
old mode 100644 (file)
new mode 100755 (executable)
index 2d4bae1..799c73f
@@ -5,15 +5,15 @@ puts "Incorrect translation of one entity from STEP file in optimaze mode of C30
 
 stepread [locate_data_file id_turbine-B.stp] a *
 
-puts [checkshape a_1]
-puts [checkshape a_1 r]
+checkshape a_1
+checkshape a_1 r
 
 renamevar a_1 result
 
 tpdraw 2637
 
-puts [checkshape tp_2637]
-puts [checkshape tp_2637 r]
+checkshape tp_2637
+checkshape tp_2637 r
 
 set 2dviewer 0
 
old mode 100644 (file)
new mode 100755 (executable)
index c202d42..65dd709
@@ -16,8 +16,8 @@ tpcompound result
 
 tpdraw 2139
 
-puts [checkshape tp_2139]
-puts [checkshape tp_2139 r]
+checkshape tp_2139
+checkshape tp_2139 r
 
 set MaxTolerance [ lindex [ split [ lindex [tolerance tp_2139] 1 ] = ] 1 ]
 puts "MaxTolerance = $MaxTolerance"
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 23ba2c7..f9880b5
@@ -7,7 +7,7 @@ param read.step.product.mode OFF
 stepread [locate_data_file PRO20361-1.stp] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
index c48e870..3f153b3
@@ -7,7 +7,7 @@ param read.step.product.mode OFF
 stepread [locate_data_file PRO20361-3.stp] a *
 
 tpcompound result
-puts [checkshape result]
-puts [checkshape result r]
+checkshape result
+checkshape result r
 
 set 2dviewer 0
old mode 100644 (file)
new mode 100755 (executable)
index a80a6f1..db197ff
@@ -7,8 +7,8 @@ stepread [locate_data_file PRO20362.stp] a *
 explode a_1 f
 renamevar a_1 result
 
-puts [checkshape a_1_1]
-puts [checkshape a_1_1 r]
+checkshape a_1_1
+checkshape a_1_1 r
 
 set l [explode a_1_1 e]
 set n [llength $l]
@@ -16,8 +16,8 @@ if { $n != 4 } {
     puts "Error : The amount of edges in FIRST face is more than four"
 }
 
-puts [checkshape a_1_2]
-puts [checkshape a_1_2 r]
+checkshape a_1_2
+checkshape a_1_2 r
 
 set i [explode a_1_2 e]
 set m [llength $i]
diff --git a/tests/bugs/vis/buc60547 b/tests/bugs/vis/buc60547
new file mode 100755 (executable)
index 0000000..5e70815
--- /dev/null
@@ -0,0 +1,22 @@
+puts "TODO OCC12345 ALL: An exception was caught"
+puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+
+puts "=========="
+puts "BUC60547"
+puts "========================="
+puts "It takes visul check for this BUG"
+puts "We must see 4 contours"
+puts "========================="
+
+vinit
+BUC60547 f
+vfit
+QAUpdateLights
+
+set x_coord 290
+set y_coord 33
+
+checkcolor $x_coord $y_coord 1 0 0
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60574 b/tests/bugs/vis/buc60574
new file mode 100755 (executable)
index 0000000..fdecb78
--- /dev/null
@@ -0,0 +1,36 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "==========="
+puts "BUC60574"
+puts "==========="
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+vinit 
+BUC60574 
+
+QASelect 220 210 
+QASelect 220 210 
+QAUpdateLights
+puts ""
+
+set x_coord 205
+set y_coord 205
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "OK: Plane of trihedron was selected properly "
+}
+
+## modified colors 
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60587 b/tests/bugs/vis/buc60587
new file mode 100755 (executable)
index 0000000..d5f3479
--- /dev/null
@@ -0,0 +1,31 @@
+
+puts "========="
+puts "BUC60587"
+puts "========="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+restore [locate_data_file buc60587a.brep] result
+checkshape result
+tclean result
+vinit
+vdisplay result
+vfit
+vsetdispmode 1
+QASelect 180 180
+QASelect 180 180
+vsetcolor result CYAN3
+
+set x_coord 120
+set y_coord 180
+
+checkcolor $x_coord $y_coord 0.7 1 0.9
+
+if { $stat != 1 } {
+   puts "Error : Model has NOT CYAN colour."
+}
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/buc60614 b/tests/bugs/vis/buc60614
new file mode 100755 (executable)
index 0000000..a469365
--- /dev/null
@@ -0,0 +1,16 @@
+
+puts "================"
+puts "BUC60614"
+puts "================"
+puts "The application crashs when you set the selection mode to compound."
+puts ""
+
+box b 10 30 50
+compound b c
+vinit
+BUC60614 c
+QAMoveTo 200 200
+QAMoveTo 200 200
+vfit
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60632_1 b/tests/bugs/vis/buc60632_1
new file mode 100755 (executable)
index 0000000..a24fa58
--- /dev/null
@@ -0,0 +1,32 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "================"
+puts "BUC60632"
+puts "================"
+
+vinit
+BUC60632 0 100
+vfit
+QAMoveTo 313 254
+QAMoveTo 313 254
+puts "Highlighting by 'Move To' command in wireframe mode"
+
+set x_coord 315
+set y_coord 256
+
+checkcolor $x_coord $y_coord 0 1 1
+
+if { $stat != 1 } {
+   puts "Error : Highlighting by Move To command in wireframe mode is WRONG."
+}
+
+set only_screen 1
+
+
diff --git a/tests/bugs/vis/buc60632_2 b/tests/bugs/vis/buc60632_2
new file mode 100755 (executable)
index 0000000..f4831a7
--- /dev/null
@@ -0,0 +1,32 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "================"
+puts "BUC60632"
+puts "================"
+
+vinit
+BUC60632 1 100
+vfit
+QAMoveTo 313 254
+QAMoveTo 313 254
+puts "Highlighting by 'Move To' command in shading mode"
+
+set x_coord 315
+set y_coord 256
+
+checkcolor $x_coord $y_coord 0 1 1
+
+if { $stat != 1 } {
+   puts "Error : Highlighting by Move To command in shading mode is WRONG."
+}
+
+set only_screen 1
+
+
diff --git a/tests/bugs/vis/buc60659 b/tests/bugs/vis/buc60659
new file mode 100755 (executable)
index 0000000..1c55258
--- /dev/null
@@ -0,0 +1,16 @@
+
+puts "=========================="
+puts "BUC60659"
+puts "=========================="
+puts ""
+##########################################
+## puts "There was Exception after vsetshading command"
+##########################################
+
+box a 10 30 50 
+vinit
+vdisplay a
+vfit
+vsetshading a 
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60661 b/tests/bugs/vis/buc60661
new file mode 100755 (executable)
index 0000000..9421536
--- /dev/null
@@ -0,0 +1,48 @@
+puts "=================================="
+puts "BUC60661"
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+pload XDE
+
+##################################################################
+##DESCRIPTION: It is impossible to nominate "sheding" mode in 3D-viewer for the some shapes in
+##  C30 (SUN station), which were stored in "IGES" format previousl and then were retrieved again 
+## into "BREP" format. 
+##################################################################
+
+restore [locate_data_file buc60661a.brep] buc60661
+checkshape buc60661
+
+######################################################################
+file delete ${imagedir}/buc60661.igs } 
+brepiges buc60661 ${imagedir}/buc60661.igs
+######################################################################
+
+dall
+
+if [catch { igesbrep ${imagedir}//buc60661.igs a * } res] {
+  puts "Faulty BUC60661: here is reading problem of iges file"
+} else {
+  puts "Reading of iges in BUC60661 is OK"
+}
+
+tpcompound result
+checkshape result
+
+vinit
+tclean result
+vdisplay result
+vsetdispmode result 1
+
+set info [trinfo result]
+regexp { +([-0-9.+eE]+) +triangles} $info full tri
+regexp { +([-0-9.+eE]+) +nodes} $info full nod
+
+if { $tri == 0 || $nod ==0 }  {
+  puts "Error : here is shading problem"
+}
+
+set 3dviewer 1
+
diff --git a/tests/bugs/vis/buc60688 b/tests/bugs/vis/buc60688
new file mode 100755 (executable)
index 0000000..cfb683a
--- /dev/null
@@ -0,0 +1,37 @@
+puts "==========="
+puts "BUC60688"
+puts "==========="
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+vinit
+vertex v_1 .003 .0 .0
+vertex v_2 .003 .0 .003
+vertex v_3 .0 .0 .003
+vertex v_4 .0 .0 .0
+edge e_1 v_1 v_2
+edge e_2 v_2 v_3
+edge e_3 v_3 v_4
+edge e_4 v_4 v_1
+wire w_1 e_1 e_2 e_3 e_4
+mkplane r w_1
+vdisplay r
+vfit
+QASelect 120 21
+QASelect 120 21
+QAUpdateLights
+
+puts "WARNING : The rectangular MUST be highlighted !"
+puts ""
+
+set x_coord 88
+set y_coord 272
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : The rectangular is NOT highlighted."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60701 b/tests/bugs/vis/buc60701
new file mode 100755 (executable)
index 0000000..16ab817
--- /dev/null
@@ -0,0 +1,11 @@
+
+puts "========================"                                                                                      
+puts "BUC60701"                                                                                                      
+puts "========================"                                                                                      
+                                                                                                           
+box result 10 10 10
+vinit
+vdisplay result
+set 3dviewer 1
+
+###  Photo of V3Dview is less than image in the viewer (only half-part of viewer is present on a photo).
diff --git a/tests/bugs/vis/buc60738 b/tests/bugs/vis/buc60738
new file mode 100755 (executable)
index 0000000..c175349
--- /dev/null
@@ -0,0 +1,35 @@
+### by apn (no regresion in CR23352_3
+###if { [array get env os_type] != "" } {
+###    set os $env(os_type)
+###}
+###if { [string compare $os "windows"] == 0 } {
+###    puts "TODO OCC12345 ALL: Error : Colors are not equal in default coordinate and in the near coordinates too"
+###    puts "TODO OCC12345 ALL: Error : The style of edge is NOT dash"
+###    by apn: Image is not correct on WNT
+###}
+
+puts "========================"
+puts "BUC60738"                
+puts "========================"
+puts ""                                  
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+                        
+vinit
+BUC60738
+vfit
+vsetdispmode 1
+
+QAUpdateLights
+
+set x_coord 261
+set y_coord 314
+
+checkcolor $x_coord $y_coord 0 1 0
+
+if {$stat != 1} {
+   puts "Error : The style of edge is NOT dash"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60740 b/tests/bugs/vis/buc60740
new file mode 100755 (executable)
index 0000000..e79c9d4
--- /dev/null
@@ -0,0 +1,29 @@
+puts "==========="
+puts "BUC60740"
+puts "==========="
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+vinit
+box b 0 0 0 10 10 10
+pcylinder c 10 10
+vdisplay b
+vsetdispmode b 1
+vdisplay c
+vsetdispmode c 1
+vfit
+vsettransparency c 0.5
+
+set x_coord 154
+set y_coord 257
+
+QAUpdateLights
+
+checkcolor $x_coord $y_coord 0.6 0.4 0.07
+
+if {$stat != 1} {
+   puts "Error :function vsettransparency works WRONGLY"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60747 b/tests/bugs/vis/buc60747
new file mode 100755 (executable)
index 0000000..a45d452
--- /dev/null
@@ -0,0 +1,25 @@
+puts "==========="
+puts "BUC60747"
+puts "BUC60611"
+puts "BUC60639"
+puts "==========="
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+v2dinit
+pcone c_o 15 0 50 360
+v2ddisplay c_o
+v2dfit
+
+set x_coord 37
+set y_coord 287
+set color2d 1
+
+checkcolor $x_coord $y_coord 1 1 0
+
+if {$stat != 1} {
+   puts "Error : function V2DFIT works wrongly"
+}
+
+set only_screen2d 1
diff --git a/tests/bugs/vis/buc60753 b/tests/bugs/vis/buc60753
new file mode 100755 (executable)
index 0000000..a526247
--- /dev/null
@@ -0,0 +1,20 @@
+puts "========"
+puts "BUC60753"
+puts "========"
+puts ""
+
+restore [locate_data_file buc60753.brep] a
+checkshape a
+
+tclean a
+vinit
+vdisplay a
+vsetdispmode a 1
+vfit
+
+set TypeOfDegenerateModel 2
+set Ratio 0.5
+
+BUC60753 ${TypeOfDegenerateModel} ${Ratio}
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60774 b/tests/bugs/vis/buc60774
new file mode 100755 (executable)
index 0000000..4e6afca
--- /dev/null
@@ -0,0 +1,14 @@
+puts "========"
+puts "BUC60774"
+puts "========"
+puts ""
+
+vinit
+catch {BUC60774}
+vfit
+
+set only_screen 1
+
+
+
+
diff --git a/tests/bugs/vis/buc60814 b/tests/bugs/vis/buc60814
new file mode 100755 (executable)
index 0000000..730c549
--- /dev/null
@@ -0,0 +1,31 @@
+puts "========"                                                                                   
+puts "BUC60814"                                                                                   
+puts "========"                                                                                   
+puts ""                                                                                           
+
+vinit
+BUC60814
+vfit
+QAUpdateLights
+
+set x_coord 131
+set y_coord 352
+
+checkcolor $x_coord $y_coord 0 0 1
+
+#AKI.111002.Against **Exception..-it's on lin.Changed coord of trihedron.
+
+if {$stat != 1} {
+   puts "Error : Circle has NOT blue color."
+}
+
+set x_coord 170
+set y_coord 319
+
+checkcolor $x_coord $y_coord 0 0 1
+
+if {$stat != 1} {
+   puts "Error : Trihedron has NOT blue color."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60818 b/tests/bugs/vis/buc60818
new file mode 100755 (executable)
index 0000000..3b066f3
--- /dev/null
@@ -0,0 +1,9 @@
+puts "==========="
+puts "BUC60818"
+puts "==========="
+
+vinit
+BUC60818
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/buc60821 b/tests/bugs/vis/buc60821
new file mode 100755 (executable)
index 0000000..7c4c33e
--- /dev/null
@@ -0,0 +1,23 @@
+puts "==========="
+puts "BUC60821"
+puts "==========="
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+vinit
+
+catch {BUC60821 100 200 300}
+
+set x_coord 206
+set y_coord 195
+
+checkcolor $x_coord $y_coord 0 0 0
+
+if {$stat != 1} {
+   puts "Error : The texts have identical height"
+}
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/buc60830_1 b/tests/bugs/vis/buc60830_1
new file mode 100755 (executable)
index 0000000..1ae875a
--- /dev/null
@@ -0,0 +1,17 @@
+puts "============="
+puts "BUC60830"
+puts "BUC60829"
+puts "============="
+
+restore [locate_data_file BUC60830-face1.brep] res 
+checkshape res
+
+topoload res 
+side left 
+mat
+result
+
+side right
+mat
+result
+
diff --git a/tests/bugs/vis/buc60830_2 b/tests/bugs/vis/buc60830_2
new file mode 100755 (executable)
index 0000000..b135dcb
--- /dev/null
@@ -0,0 +1,15 @@
+puts "============="
+puts "BUC60830"
+puts "BUC60829"
+puts "============="
+coordload res [locate_data_file cont1.dat]
+topoload res
+drawcont
+side left
+mat
+result
+side right
+mat
+result
+
+
diff --git a/tests/bugs/vis/buc60830_3 b/tests/bugs/vis/buc60830_3
new file mode 100755 (executable)
index 0000000..5fa3bf5
--- /dev/null
@@ -0,0 +1,16 @@
+puts "============="
+puts "BUC60830"
+puts "BUC60829"
+puts "============="
+
+coordload res [locate_data_file cont2.dat]
+topoload res
+drawcont
+side left
+mat
+result
+side right
+mat
+result
+
+
diff --git a/tests/bugs/vis/buc60832 b/tests/bugs/vis/buc60832
new file mode 100755 (executable)
index 0000000..5dd0f58
--- /dev/null
@@ -0,0 +1,21 @@
+puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
+
+puts "============"
+puts "BUC60832"
+puts "============"
+puts ""                                                                                                                                                                        
+################################################################################
+## Try to display this shape in the viewer 3D by means of the method AIS_InteractiveContext::Display(). 
+## This method calls StdSelect_BRepSelectionTool::ComputeSelection() a recursive method which hangs up an application. 
+################################################################################
+
+restore [locate_data_file BUC60832.brep] result
+checkshape result
+
+tclean result
+vinit
+vdisplay result
+vsetdispmode result 1 
+vfit
+
+set only_screen 1                                                                                                                                                                        
diff --git a/tests/bugs/vis/buc60851 b/tests/bugs/vis/buc60851
new file mode 100755 (executable)
index 0000000..02cb664
--- /dev/null
@@ -0,0 +1,14 @@
+
+puts "============="
+puts "BUC60851"
+puts "============="
+puts ""
+##########################################################
+## After several manipulations with Triedron of V3d_View class it raises an exception 
+## (detected in method Visual3d_View::TriedronDisplay) 
+##########################################################
+
+BUC60851
+vfit
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60857 b/tests/bugs/vis/buc60857
new file mode 100755 (executable)
index 0000000..d2e234d
--- /dev/null
@@ -0,0 +1,89 @@
+puts "========"
+puts "BUC60857"
+puts "========"
+
+vinit
+BUC60857
+vfit
+
+set Property_BLUE [sprops BUC60857_BLUE]
+set Square_BLUE [lindex ${Property_BLUE} 2]
+
+set Property_RED [sprops BUC60857_RED]
+set Square_RED [lindex ${Property_RED} 2]
+
+set Property_GREEN [sprops BUC60857_GREEN]
+set Square_GREEN [lindex ${Property_GREEN} 2]
+
+boundingstr BUC60857_BLUE xmin_BLUE ymin_BLUE zmin_BLUE xmax_BLUE ymax_BLUE zmax_BLUE
+boundingstr BUC60857_RED xmin_RED ymin_RED zmin_RED xmax_RED ymax_RED zmax_RED
+boundingstr BUC60857_GREEN xmin_GREEN ymin_GREEN zmin_GREEN xmax_GREEN ymax_GREEN zmax_GREEN
+
+set delta_Square_GB [expr abs(${Square_GREEN} - ${Square_BLUE}) / ${Square_BLUE} * 100]
+set delta_Square_BR [expr ${Square_BLUE} / ${Square_RED}]
+
+set delta_xmin_GB [expr abs([dval xmin_GREEN] - [dval xmin_BLUE]) / [dval xmin_BLUE] * 100]
+set delta_ymin_GB [expr abs([dval ymin_GREEN] - [dval ymin_BLUE]) / [dval ymin_BLUE] * 100]
+set delta_zmin_GB [expr abs([dval zmin_GREEN] - [dval zmin_BLUE]) / [dval zmin_BLUE] * 100]
+set delta_xmax_GB [expr abs([dval xmax_GREEN] - [dval xmax_BLUE]) / [dval xmax_BLUE] * 100]
+set delta_ymax_GB [expr abs([dval ymax_GREEN] - [dval ymax_BLUE]) / [dval ymax_BLUE] * 100]
+set delta_zmax_GB [expr abs([dval zmax_GREEN] - [dval zmax_BLUE]) / [dval zmax_BLUE] * 100]
+
+set delta_xmin_RB [expr abs([dval xmin_RED] - [dval xmin_BLUE]) / [dval xmin_BLUE] * 100]
+set delta_ymin_RB [expr abs([dval ymin_RED] - [dval ymin_BLUE]) / [dval ymin_BLUE] * 100]
+set delta_zmin_RB [expr abs([dval zmin_RED] - [dval zmin_BLUE]) / [dval zmin_BLUE] * 100]
+set delta_xmax_RB [expr abs([dval xmax_RED] - [dval xmax_BLUE]) / [dval xmax_BLUE] * 100]
+set delta_ymax_RB [expr abs([dval ymax_RED] - [dval ymax_BLUE]) / [dval ymax_BLUE] * 100]
+set delta_zmax_RB [expr abs([dval zmax_RED] - [dval zmax_BLUE]) / [dval zmax_BLUE] * 100]
+
+set H_BLUE [expr [dval zmax_BLUE] - [dval zmin_BLUE] ]
+set H_RED [expr [dval zmax_RED] - [dval zmin_RED] ]
+set delta_H_RB [expr abs(${H_RED} - ${H_BLUE}) / ${H_BLUE} * 100]
+
+set maxdelta 0.01
+
+if {${delta_Square_GB} > ${maxdelta}} {
+   puts "delta_Square_GB = ${delta_Square_GB}"
+   puts "maxdelta = ${maxdelta}"
+   puts "BUC60857: ERROR (case 1)"
+} else {
+   puts "BUC60857: OK (case 1)"
+}
+
+if {${delta_Square_BR} > 3.0 || \
+    ${delta_Square_BR} < 2.9     } {
+   puts "delta_Square_BR = ${delta_Square_BR}"
+   puts "delta_Square_BR = ${delta_Square_BR}"
+   puts "BUC60857: ERROR (case 2)"
+} else {
+   puts "BUC60857: OK (case 2)"
+}
+
+if {${delta_xmin_GB} > ${maxdelta} || \
+    ${delta_ymin_GB} > ${maxdelta} || \
+    ${delta_zmin_GB} > ${maxdelta} || \
+    ${delta_xmax_GB} > ${maxdelta} || \
+    ${delta_ymax_GB} > ${maxdelta} || \
+    ${delta_zmax_GB} > ${maxdelta}     } {
+   puts "delta_xmin_GB = ${delta_xmin_GB}"
+   puts "delta_ymin_GB = ${delta_ymin_GB}"
+   puts "delta_zmin_GB = ${delta_zmin_GB}"
+   puts "delta_xmax_GB = ${delta_xmax_GB}"
+   puts "delta_ymax_GB = ${delta_ymax_GB}"
+   puts "delta_zmax_GB = ${delta_zmax_GB}"
+   puts "maxdelta = ${maxdelta}"
+   puts "BUC60857: ERROR (case 3)"
+} else {
+   puts "BUC60857: OK (case 3)"
+}
+
+set maxdelta_H 10
+if {${delta_H_RB} > ${maxdelta_H}} {
+   puts "delta_H_RB = ${delta_H_RB}"
+   puts "maxdelta_H = ${maxdelta_H}"
+   puts "BUC60857: ERROR (case 4)"
+} else {
+   puts "BUC60857: OK (case 4)"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/buc60858 b/tests/bugs/vis/buc60858
new file mode 100755 (executable)
index 0000000..323e3fa
--- /dev/null
@@ -0,0 +1,37 @@
+puts "============"
+puts "BUC60858"
+puts "============"
+puts ""                                                                                                                                                                        
+######################################################################
+## When I gave command "vdisplay a" , where a is shape restored from attached file.DRAW crashes
+## with segmentation fault. Exception is raised in the file BRepMesh/triangle.cxx.
+######################################################################
+
+restore [locate_data_file BUC60858.brep] result
+
+tclean result
+isos 0
+vinit
+incmesh result 0.01
+vdisplay result
+vfit
+
+vclear
+vdisplay result
+vsetdispmode result 1
+
+isos result 0
+triangles result
+
+set info [trinfo result]
+regexp { +([-0-9.+eE]+) +triangles} $info full tr
+regexp { +([-0-9.+eE]+) +nodes} $info full nd
+
+if { $tr == 0 || $nd == 0 }  {
+   puts "Error : here is shading problem"
+}
+
+set 3dviewer 1
+
+
+
diff --git a/tests/bugs/vis/buc60876 b/tests/bugs/vis/buc60876
new file mode 100755 (executable)
index 0000000..4fb5216
--- /dev/null
@@ -0,0 +1,21 @@
+puts "========"                                                                                                                                                 
+puts "BUC60876"                                                                                                                                                 
+puts "========"                                                                                                                                                 
+puts ""
+
+pcylinder c 100 300
+vinit
+BUC60876 c
+vfit
+QAMoveTo 200 200
+QAMoveTo 200 200
+
+QAUpdateLights
+
+set x_coord 200
+set y_coord 200
+
+checkcolor $x_coord $y_coord 0 1 1
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/buc60887 b/tests/bugs/vis/buc60887
new file mode 100755 (executable)
index 0000000..3f94031
--- /dev/null
@@ -0,0 +1,20 @@
+puts "============"
+puts "BUC60887"
+puts "============"
+puts ""                                                                                                                                                                        
+############################################
+## Shape hangs after command " vdisplay " in the Viewer3d. 
+############################################
+
+restore [locate_data_file BUC60887.brep] result
+
+set nb_info [nbshapes result]
+regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full nb_v
+
+puts [format "Shape res contains %s vertexes" $nb_v]
+if { $nb_v == 0} {
+   puts "Error : Result shape is NULL shape"
+} else {
+  set 3dviewer 1
+}
+
diff --git a/tests/bugs/vis/buc60915 b/tests/bugs/vis/buc60915
new file mode 100755 (executable)
index 0000000..12d64d1
--- /dev/null
@@ -0,0 +1,31 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "==========="
+puts "BUC60915"
+puts "==========="
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+vinit
+BUC60915
+
+set x_coord 300
+set y_coord 164
+
+checkcolor $x_coord $y_coord 0.51 0.98 0
+
+if {$stat != 1} {
+   puts "Error : Cannot set the arrow size when using AIS_LengthDimension or AIS_RadiusDimensin."
+}
+
+set only_screen 1
+
+
diff --git a/tests/bugs/vis/buc60920 b/tests/bugs/vis/buc60920
new file mode 100755 (executable)
index 0000000..03ddc39
--- /dev/null
@@ -0,0 +1,22 @@
+puts "==========="
+puts "BUC60920"
+puts "==========="
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+#########################################################################
+## Bug in Viewer3d: curves and points are not highlighted when mouse pointer is moved over in shading mode. 
+#########################################################################
+
+vinit
+BUC60920
+vfit
+
+QAUpdateLights
+
+set x_coord 315
+set y_coord 210
+
+checkcolor $x_coord $y_coord 0 1 1
+
+set only_screen 1
index 3fb9064ceb6420b3e28da85a151c59cdbc86d1b0..4b2186f35aa44b7027b5b6d49209eb104e5df851 100755 (executable)
@@ -4,7 +4,7 @@ puts " OCC112 "
 puts "========================"
 
 restore [locate_data_file OCC20.brep] res
-puts [checkshape res]
+checkshape res
 
 set first [trinfo res]
 tclean res
index 8e4b5b732eed43a1a900828b63e8eafbb4dade2d..dcc9f0e6fdb013064fdf876d57629e5355459fef 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 ###########################################################
 
 restore [locate_data_file OCC173.brep] result
-puts [checkshape result]
+checkshape result
 
 vinit result
 tclean 
index 65a05cac437a8301146e3a4fd13693a81ac39b2c..fcc6bbb0bcf0c981b717e2615f7a1969579a2a6c 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 ###########################################################
 
 restore [locate_data_file OCC173.brep] result
-puts [checkshape result]
+checkshape result
 
 vinit
 tclean result
index 2e9c422449bf041cb157eb1b259c8dffd4579dba..f99919b26adf083f6d429dfbb5dc0692fd91cc22 100755 (executable)
@@ -10,7 +10,7 @@ puts ""
 
 restore [locate_data_file OCC173.brep] result
 
-puts [checkshape result]
+checkshape result
 
 vinit
 tclean result
index c718051632255480efee0621f0d2078fcaa34e2c..fd341932b23acb9684e5d24f15afada58e765570 100755 (executable)
@@ -4,7 +4,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC19.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 incmesh result .9
index 23c01b5a43a4eda40107c0772d6399714d9e7963..0089a7d77f47079f5f0e2cc75c553fc2890e9b83 100755 (executable)
@@ -4,7 +4,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC19.brep] result
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 4c2029ab52e1c2fae0ed68fec0949e2f54ef7c7d..2d6c8bc28bf982637ef405ed51d8a3606dee7b86 100755 (executable)
@@ -4,7 +4,7 @@ puts "(case 1)"
 puts "========================"
 
 restore [locate_data_file shading_058.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 8657c2c1c2bae71b53408abb9b22982455dc27ca..e9ec41c77493989e2cf30ea4abd7061c4cb507de 100755 (executable)
@@ -4,7 +4,7 @@ puts "(case 2)"
 puts "========================"
 
 restore [locate_data_file shading_105.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index dad77c3729e7908314349cb8870362cbf49cd3bf..8da0807dbfbe94298f6fd57ba5811921fe9213da 100755 (executable)
@@ -4,7 +4,7 @@ puts "(case 3)"
 puts "========================"
 
 restore [locate_data_file shading_107.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index fab7c1b1ee1fb313e64e0f458a1390a41359a712..45e0302852a941a10c6fb44db5c3339be36102bf 100755 (executable)
@@ -4,7 +4,7 @@ puts "(case 4)"
 puts "========================"
 
 restore [locate_data_file shading_151.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index 5b72f3610f148676ff8926fb371b008a8bc38935..46c7f960bdc1f9505608b1129894929b0ec1e635 100755 (executable)
@@ -1,7 +1,7 @@
 puts "============ OCC288 (case 5) ==============="
 
 restore [locate_data_file OCC288e.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 vinit
index d895859c69dd1b735802551b279e476934327b18..ec4e51dab7abcb672a8a404d3be9a1881b8938ee 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 #############################################
 
 restore [locate_data_file OCC344.brep] result 
-puts [checkshape result]
+checkshape result
 tclean result
 
 vinit
index 472c96f662e46cb89e27d5a239e88e33f0b199e8..b42dd85ae48dd6338af372c44bca24a361276baf 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 ##############################################
 
 restore [locate_data_file OCC364.brep] result 
-puts [checkshape result]
+checkshape result
 
 tclean result
 isos result 0
diff --git a/tests/bugs/vis/bug378 b/tests/bugs/vis/bug378
new file mode 100755 (executable)
index 0000000..a085386
--- /dev/null
@@ -0,0 +1,23 @@
+puts "========================"
+puts "BUC61058"
+puts " OCC378 "
+puts "========================"
+puts ""
+########################################################################
+##Regression on KAS:dev:ros. Draw hangs after try to load 6381.brep  shape to 3D Viewer. Case : cgg/004/S2
+########################################################################
+
+restore [locate_data_file OCC378.brep] result
+
+tclean result
+vinit
+
+if [catch {vdisplay result } res] {
+   puts "Error : function VDISPLAY works wrongly"
+}
+
+vfit
+
+set only_screen 1
+
+
diff --git a/tests/bugs/vis/bug443 b/tests/bugs/vis/bug443
new file mode 100755 (executable)
index 0000000..0461af9
--- /dev/null
@@ -0,0 +1,22 @@
+puts "========"
+puts "OCC443"
+puts "========"
+puts ""
+###############################################################
+##"Fit all view" ives not centered picture during fitting the view (SAM024).
+###############################################################
+
+restore [locate_data_file OCC443.brep] result
+
+vinit
+vdisplay result
+vfit
+
+set x_coord 31
+set y_coord 304
+
+QAUpdateLights
+
+checkcolor $x_coord $y_coord 0 0 0
+
+set only_screen 1
diff --git a/tests/bugs/vis/bug451 b/tests/bugs/vis/bug451
new file mode 100755 (executable)
index 0000000..f940d90
--- /dev/null
@@ -0,0 +1,34 @@
+puts "========================"
+puts " OCC451 "
+puts "========================"
+puts ""
+#############################################################
+## puts "Choosing of viewer MODA for selection of VERTEX"
+## puts "(visual checking for this case is desirable)"
+##
+#                                           Selection Modes Activation:
+#          0 - OBJECT, 1 - VERTEX, 2 - ELEMENT, 3 - VERTEX, 4 - NONE
+#############################################################
+
+vertex v1 0 0 0
+vertex v2 10 10 10
+v2dinit
+v2ddisplay v1
+v2ddisplay v2
+v2dfit
+
+set x_coord 49
+set y_coord 361
+set color2d 1
+
+QAv2dSetHighlightMode 3
+QAMoveTo2d 0 0
+QASelect2d $x_coord $y_coord
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : Choosing of viewer MOD for selection of VERTEX was NOT MADE properly"
+}
+
+set only_screen2d 1
diff --git a/tests/bugs/vis/bug591 b/tests/bugs/vis/bug591
new file mode 100755 (executable)
index 0000000..c2ff934
--- /dev/null
@@ -0,0 +1,25 @@
+puts "========"
+puts "OCC591"
+puts "========"
+puts ""
+
+restore [locate_data_file OCC591.brep] result
+tclean result
+vinit
+vdisplay result
+vfit
+vsetdispmode result 1
+vsettransparency result .5
+
+QAUpdateLights
+
+set x_coord 250
+set y_coord 115
+
+checkcolor $x_coord $y_coord 0.58 0.41 0.07
+
+if {$stat != 1} {
+   puts "Error : Function VSETTRANSPARENCY works wrongly."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/bug597_1 b/tests/bugs/vis/bug597_1
new file mode 100755 (executable)
index 0000000..cce24f1
--- /dev/null
@@ -0,0 +1,52 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "=================================="
+puts "BUC60569" 
+puts "OCC597"
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+restore [locate_data_file buc60569a.rle] result
+tclean result
+vinit
+
+checkshape result
+
+BUC60569 result
+vfit
+QAMoveTo 250 190
+QASelect 250 190
+QAUpdateLights
+
+set x_coord 335
+set y_coord 331
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : The right face is NOT Selected by Select command."
+}
+
+QAShiftSelect 180 350
+QAUpdateLights
+
+set x_coord 101
+set y_coord 347
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : The left face is NOT Selected by Shift Select command."
+}
+
+set only_screen 1
+
+
diff --git a/tests/bugs/vis/bug597_2 b/tests/bugs/vis/bug597_2
new file mode 100755 (executable)
index 0000000..361e55b
--- /dev/null
@@ -0,0 +1,41 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "=================================="
+puts "BUC60569"
+puts "OCC597"
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+restore [locate_data_file buc60569a.rle] result
+tclean result
+vinit
+
+checkshape result
+
+BUC60569 result
+vfit
+QAMoveTo 250 190
+QASelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAUpdateLights
+
+set x_coord 335
+set y_coord 331
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : The right face is highlighted by Move To command."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/bug597_3 b/tests/bugs/vis/bug597_3
new file mode 100755 (executable)
index 0000000..aa3430f
--- /dev/null
@@ -0,0 +1,46 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "=================================="
+puts "BUC60569"
+puts "OCC597"
+puts "=================================="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+restore [locate_data_file buc60569a.rle] result
+tclean result
+vinit
+
+checkshape result
+
+BUC60569 result
+vfit
+
+QAMoveTo 250 190
+QASelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAMoveTo 180 350
+QAUpdateLights
+
+set x_coord 101
+set y_coord 347
+
+checkcolor $x_coord $y_coord 0 1 1
+
+if {$stat != 1} {
+   puts "Error : The left face is highlighted by Move To command"
+}
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/bug597_4 b/tests/bugs/vis/bug597_4
new file mode 100755 (executable)
index 0000000..7befdc9
--- /dev/null
@@ -0,0 +1,56 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "=================================="
+puts "BUC60569"
+puts "OCC597"
+puts "=================================="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+restore [locate_data_file buc60569a.rle] result
+tclean result
+vinit
+
+checkshape result
+
+BUC60569 result
+vfit
+QAMoveTo 250 190
+
+QASelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAMoveTo 180 350
+QASelect 390 390
+QAUpdateLights
+
+set x_coord 335
+set y_coord 331
+
+checkcolor $x_coord $y_coord 1 1 0
+
+if {$stat != 1} {
+   puts "Error : The right face is NOT deSelected."
+}
+
+set x_coord 101
+set y_coord 347
+
+checkcolor $x_coord $y_coord 1 1 0
+
+if {$stat != 1} {
+   puts "Error : The left face is NOT deSelected"
+}
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/bug597_5 b/tests/bugs/vis/bug597_5
new file mode 100755 (executable)
index 0000000..70f8ce6
--- /dev/null
@@ -0,0 +1,59 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "=================================="
+puts "BUC60569"
+puts "OCC597"
+puts "=================================="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+restore [locate_data_file buc60569a.rle] result
+tclean result
+vinit
+
+checkshape result
+
+BUC60569 result
+vfit
+QAMoveTo 250 190
+QASelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAMoveTo 180 350
+QASelect 390 390
+QAShiftSelect 250 190
+QAUpdateLights
+
+set x_coord 335
+set y_coord 331
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : The right face is NOT Selected by Shift Select command"
+}
+
+QAShiftSelect 180 350
+QAUpdateLights
+
+set x_coord 101
+set y_coord 347
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : The left face is Selected by Shift Select command"
+}
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/bug597_6 b/tests/bugs/vis/bug597_6
new file mode 100755 (executable)
index 0000000..e8d632e
--- /dev/null
@@ -0,0 +1,49 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+puts "=================================="
+puts "BUC60569"
+puts "OCC597"
+puts "=================================="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+restore [locate_data_file buc60569a.rle] result
+tclean result
+vinit
+
+checkshape result
+
+BUC60569 result
+vfit
+
+QAMoveTo 250 190
+QASelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAMoveTo 180 350
+QASelect 390 390
+QAShiftSelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAUpdateLights
+
+set x_coord 335
+set y_coord 331
+
+checkcolor $x_coord $y_coord 0 1 1
+
+if {$stat != 1} {
+  puts "Error : The right face is NOT highlighted by Move To command."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/bug597_7 b/tests/bugs/vis/bug597_7
new file mode 100755 (executable)
index 0000000..88a331a
--- /dev/null
@@ -0,0 +1,51 @@
+if { [array get env os_type] != "" } {
+    set os $env(os_type)
+}
+if { [string compare $os "windows"] != 0 } {
+   puts "TODO OCC12345 ALL: An exception was caught"
+   puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+   puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+}
+
+
+puts "=================================="
+puts "BUC60569"
+puts "OCC597"
+puts "=================================="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+puts ""
+
+restore [locate_data_file buc60569a.rle] result
+tclean result
+vinit
+
+checkshape result
+
+BUC60569 result
+vfit
+
+QAMoveTo 250 190
+QASelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAMoveTo 180 350
+QASelect 390 390
+QAShiftSelect 250 190
+QAShiftSelect 180 350
+QAMoveTo 250 190
+QAMoveTo 180 350
+
+set x_coord 335
+set y_coord 331
+
+checkcolor $x_coord $y_coord 0.8 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : The right face is NOT highlighted by Move To command."
+}
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/bug641 b/tests/bugs/vis/bug641
new file mode 100755 (executable)
index 0000000..25aa839
--- /dev/null
@@ -0,0 +1,28 @@
+puts "================"
+puts "OCC641"
+puts "SAM1559"
+puts "================"
+puts ""
+#################################################
+## Exception during attemption to display shape ==>SAM1559 (#2901)
+#################################################
+
+restore [locate_data_file OCC641.brep] a
+
+vinit
+vdisplay a
+vfit
+
+copy a b
+
+if [catch {tmirror result 0 0 0 0 1 0 } res] {
+   puts "Error : function tmirror works wrongly"
+} else {
+   if [catch { vdisplay result } res] {
+      puts "Error : result shape is displaed wrongly"
+   }
+   vfit
+}
+
+set only_screen 1
+
diff --git a/tests/bugs/vis/bug708 b/tests/bugs/vis/bug708
new file mode 100755 (executable)
index 0000000..cc235d8
--- /dev/null
@@ -0,0 +1,18 @@
+puts "========"
+puts "OCC708"
+puts "OCC1011"
+puts "========"
+puts ""
+#######################################################
+## UnsetTransformation() of the AIS_InteractiveObject crashes an application
+#######################################################
+vinit
+box result 10 10 10
+vdisplay result
+vfit
+
+if [catch { OCC708 result }] {
+  puts "Faulty OCC708"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/bug727 b/tests/bugs/vis/bug727
new file mode 100755 (executable)
index 0000000..6d9b1b6
--- /dev/null
@@ -0,0 +1,38 @@
+puts "============"
+puts "OCC727"
+puts "============"
+puts ""
+#############################
+## The second object can not be deselected.
+#############################
+
+box a 10 10 10
+box b 50 50 50 10 10 10
+
+vinit
+vdisplay a
+vdisplay b
+vfit
+
+set x1 60
+set y1 300
+set x2 350
+set y2 120
+
+QASelect 0 0
+QASelect ${x1} ${y1}
+QAShiftSelect ${x2} ${y2}
+
+set NbSelected1 [QANbSelected]
+if { ${NbSelected1} != 2 } {
+  puts "Error : (case 1)"
+}
+
+QAShiftSelect ${x2} ${y2}
+
+set NbSelected1 [QANbSelected]
+if { ${NbSelected1} != 1 } {
+  puts "Error : (case 2)"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/bug872 b/tests/bugs/vis/bug872
new file mode 100755 (executable)
index 0000000..77d80e8
--- /dev/null
@@ -0,0 +1,21 @@
+puts "======="
+puts "OCC872"
+puts "SAM1660"
+puts "======="
+puts ""
+
+########################################
+## Exception is raised during vizualization attached shape.
+########################################
+
+cpulimit 3000
+cpulimit 3500
+
+restore [locate_data_file OCC872.brep] result
+
+vinit
+vdisplay result
+vfit
+vsetdispmode 1
+
+set only_screen 1
diff --git a/tests/bugs/vis/ger61351_1 b/tests/bugs/vis/ger61351_1
new file mode 100755 (executable)
index 0000000..62b8934
--- /dev/null
@@ -0,0 +1,20 @@
+puts "==============="
+puts "    GER61351   "
+puts "=================================="
+puts "CASE 1 :takes visual check        "
+puts "=================================="
+
+vinit
+GER61351 RED2 
+QAUpdateLights
+
+set x_coord 200
+set y_coord 200
+
+checkcolor $x_coord $y_coord 0.93 0 0
+
+if {$stat != 1} {
+   puts "Error : Background color is NOT RED2."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/ger61351_2 b/tests/bugs/vis/ger61351_2
new file mode 100755 (executable)
index 0000000..5096429
--- /dev/null
@@ -0,0 +1,24 @@
+puts "==============="
+puts "    GER61351   "
+puts "     CASE 2    "
+puts "==============="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+vinit
+
+GER61351 0 255 0
+QAUpdateLights
+
+set x_coord 200
+set y_coord 200
+
+checkcolor $x_coord $y_coord 0 1 0
+
+if {$stat != 1} {
+   puts "Error : Background color is NOT 0 1 0."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/ger61351_3 b/tests/bugs/vis/ger61351_3
new file mode 100755 (executable)
index 0000000..221fef7
--- /dev/null
@@ -0,0 +1,22 @@
+puts "==============="
+puts "    GER61351   "
+puts "=================================="
+puts "CASE 3 :takes visual check        "
+puts "=================================="
+
+vinit
+box b 10 20 30
+GER61351 b RED2
+vfit
+QAUpdateLights
+
+set x_coord 89
+set y_coord 363
+
+checkcolor $x_coord $y_coord 0.93 0 0
+
+if {$stat != 1} {
+   puts "Error : Box color is NOT RED2."
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/ger61351_4 b/tests/bugs/vis/ger61351_4
new file mode 100755 (executable)
index 0000000..c35f22e
--- /dev/null
@@ -0,0 +1,30 @@
+puts "TODO OCC12345 ALL: An exception was caught"
+puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+
+puts "==============="
+puts "    GER61351   "
+puts "     CASE 4    "
+puts "==============="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+vinit
+
+box b 30 20 10
+GER61351 b 0 0 255
+vfit
+QAUpdateLights
+
+set x_coord 89
+set y_coord 363
+
+checkcolor $x_coord $y_coord 0 1 1
+
+if {$stat != 1} {
+   puts "Error : Box color is NOT 0 0 1"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/ger61351_5 b/tests/bugs/vis/ger61351_5
new file mode 100755 (executable)
index 0000000..8536571
--- /dev/null
@@ -0,0 +1,30 @@
+puts "TODO OCC12345 ALL: An exception was caught"
+puts "TODO OCC12345 ALL: \\*\\* Exception \\*\\*.*"
+puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+
+puts "==============="
+puts "    GER61351   "
+puts "     CASE 5    "
+puts "==============="
+puts ""
+puts "=================================="
+puts "It takes visual check for this BUG"
+puts "=================================="
+
+vinit
+
+box b 20 10 30
+GER61351 b 0 255 255
+vfit
+QAUpdateLights
+
+set x_coord 89
+set y_coord 363
+
+checkcolor $x_coord $y_coord 0 1 1
+
+if {$stat != 1} {
+   puts "Error : Box color is NOT 0 1 1"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/ger61351_6 b/tests/bugs/vis/ger61351_6
new file mode 100755 (executable)
index 0000000..d616613
--- /dev/null
@@ -0,0 +1,22 @@
+puts "==============="
+puts "    GER61351   "
+puts "============================"
+puts "CASE 6 takes visual check   "
+puts "============================"
+
+vinit
+box b 20 10 30
+GER61351 b CYAN3
+vfit
+QAUpdateLights
+
+set x_coord 88
+set y_coord 316
+
+checkcolor $x_coord $y_coord 0 0.8 0.8
+
+if {$stat != 1} {
+   puts "Error : Box color is NOT CYAN3"
+}
+
+set only_screen 1
diff --git a/tests/bugs/vis/pro20342 b/tests/bugs/vis/pro20342
new file mode 100755 (executable)
index 0000000..ebfaeb6
--- /dev/null
@@ -0,0 +1,24 @@
+puts "TODO OCC12345 ALL: Tcl Exception: result_1 is not a topological shape!!!"
+puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+puts "============="
+puts "PRO20342"
+puts "============="
+
+##############################################################################
+## Calling of the function "vsetshading" with argument less than 1.0 calls exception "Segmentation Fault". Command
+## works properly in C30. There is line in the file "C40/Gallery/ViewerTest.cxx" in the function "Vshading": 
+##############################################################################
+
+pload XDE
+
+igesbrep [locate_data_file fra62523a.igs] result *
+
+checkshape result_1 r
+
+vinit
+tclean result_1
+vdisplay result_1
+vsetshading result_1 0.1
+vfit
+
+set only_screen 1
index fb059b8caadea0fcb43aa74170ae58e990262d06..a2b6af9c4250a2175a3609507c15afd28e1d9043 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 restore [locate_data_file OCC125-1.brep] shell1 
 
 fixshape result shell1 1e-7
-puts [checkshape result]
+checkshape result
 
 set square 282.743
 
index 18a03f0e63f5399eedc015f90de9e24380fab482..a9ff9380e3594e9bd58d5ba614c2851b3d7ae83c 100755 (executable)
@@ -9,7 +9,7 @@ puts ""
 restore [locate_data_file OCC125-2.brep] shell2 
 
 fixshape result shell2 1e-7
-puts [checkshape result]
+checkshape result
 
 set square 282.743
 
index 939c096b1a890ab47c7744b139c3e592ee308991..c1da3621009ab173ba7196583e3ee78f314363f8 100755 (executable)
@@ -8,7 +8,7 @@ puts ""
 restore [locate_data_file OCC168.brep] a
 
 fixshape result a 1e-7
-puts [checkshape result]
+checkshape result
 
 set square 992.596
 
index 8c4c6030f8a64233352118349f76c912d2bfde41..285356f4b19dc481be775186accb28afe2535e4a 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 restore [locate_data_file OCC169.brep] a
 
 fixshape result a 1e-7
-puts [checkshape result]
+checkshape result
 
 set square 6.27959
 
index 15e122641527fadc077ff1110443fa7d340a11ad..3c13195f1abc6aa76315c29bac9942fa6ebcba9c 100755 (executable)
@@ -10,7 +10,7 @@ puts "FaceBrep must be identical FaceIGES!!!"
 puts "========"
 
 restore [locate_data_file OCC184.brep] FaceBrep 
-puts [checkshape FaceBrep]
+checkshape FaceBrep
 
 set dum1 [nbshapes FaceBrep]
 regexp {VERTEX +: +([-0-9.+eE]+)} $dum1 full nb_v1
@@ -32,7 +32,7 @@ catch {exec chmod 777 ${imagedir}/OCC184.igs}
 igesbrep ${imagedir}/OCC184.igs FaceIGES *
 
 sewing result FaceIGES
-puts [checkshape result]
+checkshape result
 
 set dum2 [nbshapes result]
 regexp {VERTEX +: +([-0-9.+eE]+)} $dum2 full nb_v2
index 69466466cd0ff1cf50d35fdf1b2298b475db3e30..69a8a730bed4b65c4b758b5b460f0af9023f0712 100755 (executable)
@@ -4,7 +4,7 @@ puts "================"
 puts ""
 
 restore [locate_data_file OCC46.brep] result
-puts [checkshape result]
+checkshape result
 
 set l [lindex [statshape result] 5]
 
old mode 100644 (file)
new mode 100755 (executable)
index 1c2c204c03b5494637a53585892a45573aff9cea..29d99e492d1d88f3a4159ff51c2d097ef4b3b079 100755 (executable)
@@ -12,8 +12,8 @@ puts ''
 stepread [locate_data_file OCC321.stp] a *
 
 tpcompound a
-puts [checkshape a]
-puts [checkshape a r]
+checkshape a
+checkshape a r
 
 ######################################################################
 catch {exec rm ${imagedir}/OCC321.iges}
@@ -24,7 +24,7 @@ dall
 igesbrep ${imagedir}/OCC321.iges b *
 
 tpcompound result
-puts [checkshape result]
+checkshape result
 
 set 2dviewer 0
 
index f7e58f06f49ac70761597bc5d0aaebd33e281342..868205e6d9d75bca1982c2cd70c4306b46cf529c 100755 (executable)
@@ -10,7 +10,7 @@ restore [locate_data_file OCC34.brep] sh
 
 fixshape result sh 1.e-7 1
 
-puts [checkshape result]
+checkshape result
 set square 116.889
 
 set prop "square"
index de1f6a90ac4dcb6d3b0792afe09b9488853af2ec..6f385bf37d462500b8082d867aefc0a5b77b7275 100755 (executable)
@@ -7,7 +7,7 @@ restore [locate_data_file OCC501.brep] a
 
 fixshape result a 1e-7
 
-puts [checkshape result]
+checkshape result
 set volume 477547
 
 set prop "volume"
diff --git a/tests/bugs/xde/bug547_1 b/tests/bugs/xde/bug547_1
new file mode 100755 (executable)
index 0000000..aa0bd7d
--- /dev/null
@@ -0,0 +1,33 @@
+puts "========================"
+puts " OCC547 "
+puts "(case 1)"
+puts "========================"
+puts ""
+####################################
+## Big tolerance after commmand fixshape r a 1.e-7 1
+####################################
+
+cpulimit 3000
+
+restore [locate_data_file OCC547.brep] a
+
+set tol1 [maxtolerance a]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full face1
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full edge1
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full vert1
+
+fixshape result a 1.e-7 1
+
+set tol2 [ maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full face2
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full edge2
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full vert2
+
+if { ${face2} > ${face1} || ${edge2} > ${edge1} || ${vert2} > ${vert1} } {
+    puts "Error : Tolerance invalid. Function FixShape works WRONGLY"
+} else {
+    puts "Tolerance valed. Function FixShape works CORRECTLY"
+}
+
+set 2dviewer 1
+
diff --git a/tests/bugs/xde/bug547_2 b/tests/bugs/xde/bug547_2
new file mode 100755 (executable)
index 0000000..371773a
--- /dev/null
@@ -0,0 +1,32 @@
+puts "TODO OCC12345 ALL: Error : Tolerance invalid. Function FixShape works WRONGLY"
+
+puts "========================"
+puts " OCC547 "
+puts "(case 2)"
+puts "========================"
+puts ""
+##################################
+## Big tolerance after "sewing" with tolearnce 0.5  
+##################################
+
+restore [locate_data_file OCC547.brep] a
+
+set tol1 [maxtolerance a]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full face1
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full edge1
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol1 full vert1
+
+sewing result a 0.5 a
+
+set tol2 [ maxtolerance result]
+regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full face2
+regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full edge2
+regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tol2 full vert2
+
+if { ${face2} > ${face1} || ${edge2} > ${edge1} || ${vert2} > ${vert1} } {
+    puts "Error : Tolerance invalid. Function FixShape works WRONGLY"
+} else {
+    puts "Tolerance valed. Function FixShape works CORRECTLY"
+}
+
+set 2dviewer 1
diff --git a/tests/bugs/xde/bug659 b/tests/bugs/xde/bug659
new file mode 100755 (executable)
index 0000000..453f780
--- /dev/null
@@ -0,0 +1,42 @@
+puts "================"
+puts "OCC659"
+puts "================"
+puts ""
+#############################################
+## Units are not taken into account while translating IGES surfaces
+#############################################
+
+param read.surfacecurve.mode -2
+
+if [catch { igesbrep [locate_data_file D44-11325-6.igs] a 6425 } res] {
+   puts "Faulty OCC659 first: here is reading problem"
+}
+
+renamevar a_1 a1
+
+param read.surfacecurve.mode -3
+
+if [catch { igesbrep . a 6425 } res] {
+   puts "Faulty OCC659 second: here is reading problem"
+}
+
+renamevar a_1 a2
+
+set size1 [ bounding a1 ]
+set size2 [ bounding a2 ]
+
+set x1_a1 [ lindex $size1 0 ]
+set x2_a1 [ lindex $size1 3 ]
+
+set x1_a2 [ lindex $size2 0 ]
+set x2_a2 [ lindex $size2 3 ]
+
+set dim2 [ expr $x2_a2 - $x1_a2 ]
+set dim1 [ expr $x2_a1 - $x1_a1 ]
+
+set siz [expr ${dim1} / ${dim2}]
+if { $siz > 25} {
+   puts "Faulty OCC659"
+} else {
+  puts " OCC659 OK"
+}
diff --git a/tests/bugs/xde/bug660 b/tests/bugs/xde/bug660
new file mode 100755 (executable)
index 0000000..92a396a
--- /dev/null
@@ -0,0 +1,23 @@
+puts "================"
+puts "OCC660"
+puts "================"
+puts ""
+#######################################################
+## Surfaces types changed while reading IGES, causing problems with 2d mapping
+#######################################################
+
+if [catch { igesbrep [locate_data_file D44-11325-6.igs] a 6425 } res] {
+   puts "Faulty OCC660: here is reading problem"
+}
+
+renamevar a_1 a
+
+mksurface result a
+
+set info [dump result]
+
+if { [regexp "SurfaceOfLinearExtrusion" $info] != 1 } {
+   puts "Faulty OCC660"
+}
+
+set 2dviewer 1
diff --git a/tests/bugs/xde/bug810 b/tests/bugs/xde/bug810
new file mode 100755 (executable)
index 0000000..66a68ff
--- /dev/null
@@ -0,0 +1,17 @@
+puts "========================"
+puts " OCC810 "
+puts "========================"
+puts ""
+########################################################################
+## This bug reproducing by doing fixshape for face (In fixshape command invokes segment of bspline curve)
+## The fix for this bug is fix of OCC311 for Geom_BSplineCurve and Geom2d_BSplineCurve.
+########################################################################
+
+restore [locate_data_file OCC810.rle] a
+
+if { [catch { fixshape result a 1.e-7 0.1 } ] > 0 } {
+   puts "Faulty OCC810"
+}
+
+set 2dviewer 1
+
diff --git a/tests/bugs/xde/bug816_1 b/tests/bugs/xde/bug816_1
new file mode 100755 (executable)
index 0000000..26f0ff8
--- /dev/null
@@ -0,0 +1,24 @@
+puts "======="
+puts "OCC816"
+puts "======="
+puts ""
+########################################################
+## Fail occur during reading iges file that stored in brep mode. It is happens on
+## torus-apple and torus-lemon files (standard files in DE xloop nonregression test).
+########################################################
+
+set file ${imagedir}/OCC816.stp
+
+restore [locate_data_file OCC816-apple.rle] result
+
+if [ catch { brepiges result $file } res ] {
+   puts "Faulty OCC816 : brepiges not complite"
+}
+
+if [ catch { igesbrep $file a *} res ] {
+   puts "Faulty OCC816 : igesbrep not complite"
+}
+
+set 2dviewer 1
+
+
diff --git a/tests/bugs/xde/bug816_2 b/tests/bugs/xde/bug816_2
new file mode 100755 (executable)
index 0000000..c15b7ef
--- /dev/null
@@ -0,0 +1,23 @@
+puts "======="
+puts "OCC816"
+puts "======="
+puts ""
+########################################################
+## Fail occur during reading iges file that stored in brep mode. It is happens on
+## torus-apple and torus-lemon files (standard files in DE xloop nonregression test).
+########################################################
+
+set file ${imagedir}/OCC816.stp
+
+restore [locate_data_file OCC816-lemon.rle] result
+
+if [ catch { brepiges result $file } res ] {
+   puts "Faulty OCC816 : brepiges not complite"
+}
+
+if [ catch { igesbrep $file a *} res ] {
+   puts "Faulty OCC816 : igesbrep not complite"
+}
+
+set 2dviewer 1
+
diff --git a/tests/bugs/xde/bug859 b/tests/bugs/xde/bug859
new file mode 100755 (executable)
index 0000000..f327309
--- /dev/null
@@ -0,0 +1,23 @@
+puts "================"
+puts "OCC859"
+puts "SAM1637"
+puts "================"
+puts ""
+#####################
+## Attached shape is not sewed.
+##################### 
+
+restore [locate_data_file OCC859.brep] a
+checkshape a
+
+sewing result a
+
+freebounds result 0.1
+
+set list [statshape result_o]
+
+if {[llength ${list}] > 4} {
+   puts "Faulty OCC859: here is sewing problem"
+}
+
+set 2dviewer 1
diff --git a/tests/bugs/xde/bug861 b/tests/bugs/xde/bug861
new file mode 100755 (executable)
index 0000000..255f2aa
--- /dev/null
@@ -0,0 +1,22 @@
+puts "================"
+puts "OCC861"
+puts "SAM1626"
+puts "================"
+puts ""
+######################################################
+## Invalid free boundary get by command DRAW "freebound" on attached shape.
+######################################################
+
+restore [locate_data_file OCC859.brep] result
+checkshape result
+
+freebounds result 0.1
+
+set list [statshape result_o]
+
+if {[llength ${list}] > 4} {
+   puts "Faulty OCC861"
+}
+
+set 2dviewer 1
+
diff --git a/tests/bugs/xde/bug901 b/tests/bugs/xde/bug901
new file mode 100755 (executable)
index 0000000..fd7b33e
--- /dev/null
@@ -0,0 +1,58 @@
+puts "======="
+puts "OCC901"
+puts "OCC884"
+puts "======="
+puts ""
+
+###########################################
+## ShapeFix_Wire::FixSelfIntersection does not remove all loops
+############################################
+
+pload QAcommands
+
+restore [locate_data_file OCC884.brep] a
+
+OCC884 result a 1.1 1.1
+
+explode result e
+mkplane p result
+pcurve c2d result_1 p
+mkcurve c3d result_1
+
+set list_3 [length $c3d]
+set list_4 [length $c2d]
+
+# len2 is the length of 3d curve
+regexp {The length c3d is +([-0-9.+eE]+)} $list_3 full len2
+
+# len1 is the length of 2d curve
+regexp {The length c2d is +([-0-9.+eE]+)} $list_4 full len1
+
+set percent_max 0.1
+set percent1 [expr abs(${len2} - ${len1}) / double(${len1}) * 100.]
+
+set len3 1.55056
+set percent2 [expr abs(${len2} - ${len3}) / double(${len3}) * 100.]
+
+puts "len1 = ${len1}"
+puts "len2 = ${len2}"
+puts "percent1 = ${percent1}"
+puts "percent2 = ${percent2}"
+
+set status 0
+
+if {${percent1} > ${percent_max}} {
+   puts "OCC901: Error (case 1)"
+   set status 1
+}
+
+if {${percent2} > ${percent_max}} {
+   puts "OCC901: Error (case 2)"
+   set status 1
+}
+
+if {${status} == 0} {
+   puts "OCC901: OK"
+}
+
+set 2dviewer 0
diff --git a/tests/bugs/xde/bug904 b/tests/bugs/xde/bug904
new file mode 100755 (executable)
index 0000000..420d44b
--- /dev/null
@@ -0,0 +1,26 @@
+puts "============"
+puts "OCC904"
+puts "============"
+puts ""
+#####################################################
+## Invalid resut shell after command fixshell in DRAW with non-manifold mode
+#####################################################
+
+pload QAcommands
+
+restore [locate_data_file OCC904.brep] a
+if [ catch { set res [OCC904 result a 1] } ] {
+   puts "Faulty OCC904 (case 1)"
+} else {
+  set info [checkshape result]
+  set index [lsearch $result Faulty]
+  if { [regexp "Faulty" $info] == 1 } {
+     puts "Faulty OCC904 (case 2)"
+  } else {
+     puts "OCC904 OK"
+  }
+}
+
+set 2dviewer 1
+
diff --git a/tests/bugs/xde/bug991 b/tests/bugs/xde/bug991
new file mode 100755 (executable)
index 0000000..2c8a016
--- /dev/null
@@ -0,0 +1,18 @@
+puts "================"
+puts "OCC991"
+puts "================"
+puts ""
+
+puts ""
+puts "TEST COMPLETED" 
+puts ""
+
+exit
+
+set status 0
+
+if { ${status} == 0 } {
+  puts "OCC991: Error"
+} else {
+  puts "OCC991: OK"
+}