0027341: Incorrect exact HLR results
[occt.git] / tests / bugs / modalg_6 / bug27341_307
diff --git a/tests/bugs/modalg_6/bug27341_307 b/tests/bugs/modalg_6/bug27341_307
new file mode 100644 (file)
index 0000000..50e8e2f
--- /dev/null
@@ -0,0 +1,34 @@
+puts "============"
+puts "OCC27341"
+puts "============"
+puts ""
+######################################################
+# Incorrect exact HLR results
+######################################################
+
+pload XDE
+pload QAcommands
+
+testreadstep [locate_data_file bug27341_AIF_Grundhalter_GR1_CAD.stp] a
+
+set viewname "right"
+
+smallview
+top
+clear
+
+OCC27341 result a ${viewname}
+build3d result
+
+fit
+
+# 0027526: Excess micro-edge in HLR visualization of a torus
+if { [regexp {Windows} [dversion]] } {
+   checkprops result -l 2377.14
+   checknbshapes result -vertex 1008 -edge 507
+} else {
+   checkprops result -l 2345.73
+   checknbshapes result -vertex 1007 -edge 506
+}
+
+checkview -screenshot -2d -path ${imagedir}/${test_image}.png