0026917: 3D Offset algorithm produces incorrect result
[occt.git] / tests / offset / shape_type_i_c / XB5
diff --git a/tests/offset/shape_type_i_c/XB5 b/tests/offset/shape_type_i_c/XB5
new file mode 100644 (file)
index 0000000..849dec2
--- /dev/null
@@ -0,0 +1,19 @@
+restore [locate_data_file bug26917_dom-8092_trim1.brep] s
+
+offsetparameter 1e-7 $calcul $type
+offsetload s 10
+foreach f [explode s f] {
+  mksurface surf $f
+  set found [regexp {Axis   :([-0-9.+eE]*), ([-0-9.+eE]*), ([-0-9.+eE]*)} [dump surf] full x y z]
+  if {$found && abs(abs($z) - 1) < 1.e-7} {
+    offsetonface $f 0
+  }
+}
+offsetperform result
+
+checkprops result -v 9.87183e+006 -s 784012
+
+unifysamedom result_unif result
+checknbshapes result_unif -face 89 -shell 1
+
+checkview -display result_unif -2d -path ${imagedir}/${test_image}.png