]> OCCT Git - occt-copy.git/commitdiff
0020040: Difference in treatment of closed curves in BRep_Builder::UpdateEdge
authorazv <azv@opencascade.com>
Thu, 22 Jan 2015 14:42:06 +0000 (17:42 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 22 Jan 2015 14:44:39 +0000 (17:44 +0300)
Test case was added

Modified test cases to extract the shell from the solid and check it for closeness.

tests/bugs/modalg_2/bug5805_49
tests/bugs/modalg_3/bug5805_50
tests/bugs/modalg_3/bug5805_51
tests/bugs/modalg_3/bug5805_52
tests/bugs/modalg_5/bug20040 [new file with mode: 0644]

index a9287d3391740e4be0730e763aedb1fc635b1530..6f1718d8edbf7a734160f5cf7d823b36453ea4ab 100755 (executable)
@@ -11,6 +11,9 @@ set BugNumber OCC5805
 # pcone
 pcone s 30 5 20
 
+explode s sh
+renamevar s_1 s
+
 set distance -0.5
 catch { OFFSETSHAPE $distance {} $calcul $type }
 
index 53dbd0e1e383e667531d11cb0a4721db95e2bebb..5d02a676c682fc3db775a4a79fcfa4589287ff29 100755 (executable)
@@ -10,6 +10,8 @@ set BugNumber OCC5805
 
 # pcone
 pcone s 30 5 20
+explode s sh
+renamevar s_1 s
 
 set distance -0.5
 catch { OFFSETSHAPE $distance {s_2} $calcul $type }
index 10e2c0bd31b83070b71d59032a039ca2d59613d1..336ba56c12df8161de6d6cf8da8067a85cbeaffe 100755 (executable)
@@ -10,6 +10,8 @@ set BugNumber OCC5805
 
 # pcone
 pcone s 30 5 20
+explode s sh
+renamevar s_1 s
 
 set distance -0.5
 catch { OFFSETSHAPE $distance {s_3} $calcul $type }
index b18bfd9a63c676082c4f70182f22a41f897398cd..a3d83376d830b9b1359445f744109ae28dfdf656 100755 (executable)
@@ -10,6 +10,8 @@ set BugNumber OCC5805
 
 # pcone
 pcone s 30 5 20
+explode s sh
+renamevar s_1 s
 
 set distance -0.5
 catch { OFFSETSHAPE $distance {s_2 s_3} $calcul $type }
diff --git a/tests/bugs/modalg_5/bug20040 b/tests/bugs/modalg_5/bug20040
new file mode 100644 (file)
index 0000000..26514cf
--- /dev/null
@@ -0,0 +1,18 @@
+puts "=========="
+puts "OCC20040"
+puts "=========="
+puts ""
+###############################################
+# Incorrect result of thrusections operation
+###############################################
+
+restore [locate_data_file bug20040_profile.brep] w1
+checkshape w1
+
+copy w1 w2
+ttranslate w2 0 0 1
+
+thrusections -N result 0 0 w1 w2
+checkshape result
+
+set 2dviewer 1