Modified QAcommands OCC23952sweep and OCC23952intersect to prevent exception in appropriate test cases
OSD_Thread aThread1(convert);
aThread1.Run(&aStorage);
GeomConvertTest(di,aStorage.nbupoles,aStorage.filename);
+ cout << "result of thread: " << aThread1.Wait() << endl;
return 0;
}
OSD_Thread aThread1(convert_inter);
aThread1.Run(&aStorage);
GeomIntSSTest(di,aStorage.nbsol,aStorage.filename1,aStorage.filename2);
+ cout << "result of thread: " << aThread1.Wait() << endl;
return 0;
}
--- /dev/null
+puts "================"
+puts "OCC23952"
+puts "================"
+puts ""
+###########################################################################################
+# Improving thread-safety of intersections, approximations and other modeling algorithms
+###########################################################################################
+
+pload QAcommands
+restore [locate_data_file bug23952_trim-torus.draw] a
+
+set NbUPoles 18
+set info [OCC23952sweep $NbUPoles a]
+
+if { [regexp "theTargetNbUPoles: OK" $info] != 1 } {
+ puts "Error : Number of UPoles is incorrect"
+} else {
+ puts "OK: Number of UPoles is correct"
+}
--- /dev/null
+puts "================"
+puts "OCC23952"
+puts "================"
+puts ""
+###########################################################################################
+# Improving thread-safety of intersections, approximations and other modeling algorithms
+###########################################################################################
+
+pload QAcommands
+restore [locate_data_file bug23952_s1.draw] a
+restore [locate_data_file bug23952_s2.draw] b
+
+set NbLines 5
+set info [OCC23952intersect $NbLines a b]
+
+if { [regexp "theNbSol: OK" $info] != 1 } {
+ puts "Error : Number of intersections is incorrect"
+} else {
+ puts "OK: Number of intersections is correct"
+}
+