| pload QAcommands | |
| puts "================" | |
| puts "OCC395" | |
| puts "SAM1296" | |
| puts "================" | |
| puts "" | |
| ############################################################## | |
| ## After merge two edges with help GeomConvert_CompCurveToBSplineCurve result is bad. | |
| ############################################################## | |
| restore [locate_data_file OCC395-1.brep] e1 | |
| set che [checkshape e1] | |
| if { [regexp {Faulty} $che ] == 1 } { | |
| puts "Faulty OCC395: Source shape is invalid. It was detected by Checkshape command" | |
| puts "Body of the script was NOT executed" | |
| renamevar e1 result | |
| } else { | |
| puts "OCC395 OK: Source shape is valid" | |
| restore [locate_data_file OCC395-2.brep] e2 | |
| set che [checkshape e2] | |
| if { [regexp {Faulty} $che ] == 1 } { | |
| puts "Faulty OCC395: Source shape is invalid. It was detected by Checkshape command" | |
| puts "Body of the script was NOT executed" | |
| renamevar e2 result | |
| } else { | |
| puts "OCC395 OK: Source shape is valid" | |
| OCC395 result e1 e2 | |
| } | |
| } | |
| checkprops result -l 34.9073 | |
| checkshape result | |
| checksection result | |
| checkview -display result -2d -path ${imagedir}/${test_image}.png | |