]> OCCT Git - occt.git/commitdiff
0031601: Modeling Algorithms - BRepOffset_Tool Segmentation Fault
authorastromko <astromko@opencascade.com>
Thu, 8 Feb 2024 17:02:45 +0000 (17:02 +0000)
committerVadim Glukhikh <vadim.glukhikh@opencascade.com>
Sun, 24 Mar 2024 22:25:42 +0000 (22:25 +0000)
Added protection against null pointer dereferencing.
Modified BRepOffset_MakeOffset::MakeThickSolid method.
Fixed the problem with negative volume values.
Fixed several unit tests and added a new one.

41 files changed:
src/BRepOffset/BRepOffset_Inter3d.cxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_Tool.cxx
tests/bugs/modalg_2/bug427_6
tests/bugs/modalg_2/bug5805_18
tests/bugs/modalg_2/bug5805_19
tests/bugs/modalg_2/bug5805_20
tests/bugs/modalg_2/bug5805_42
tests/bugs/modalg_2/bug5805_43
tests/bugs/modalg_2/bug5805_44
tests/bugs/modalg_7/bug25395_1
tests/bugs/modalg_7/bug25939
tests/bugs/modalg_7/bug31845_f
tests/bugs/modalg_7/bug31845_i
tests/bugs/modalg_8/bug31601 [new file with mode: 0644]
tests/offset/compshape/A1
tests/offset/compshape/A4
tests/offset/faces_type_i/A9
tests/offset/faces_type_i/B4
tests/offset/faces_type_i/B5
tests/offset/faces_type_i/B6
tests/offset/faces_type_i/C1
tests/offset/faces_type_i/C2
tests/offset/faces_type_i/C5
tests/offset/faces_type_i/C9
tests/offset/faces_type_i/D1
tests/offset/faces_type_i/E7
tests/offset/faces_type_i/E8
tests/offset/faces_type_i/E9
tests/offset/faces_type_i/F1
tests/offset/faces_type_i/F2
tests/offset/faces_type_i/F3
tests/offset/faces_type_i/F4
tests/offset/faces_type_i/F5
tests/offset/faces_type_i/I5
tests/offset/faces_type_i/J5
tests/offset/faces_type_i/K6
tests/offset/faces_type_i/M6
tests/offset/faces_type_i/M8
tests/offset/faces_type_i/N1
tests/offset/shape/A1

index 00804755ecbdb9c19616edaf068165c85d2c0665..27879e8f2858ac1f2348a194f5ca84f2d37d64f2 100644 (file)
@@ -1292,11 +1292,10 @@ void BRepOffset_Inter3d::ContextIntByArc(const TopTools_IndexedMapOfShape& Conte
             for ( ;exp2.More(); exp2.Next()) {
               LOE.Append(exp2.Current());
             }
-            BRepOffset_Tool::TryProject(CF,OF1,LOE,LInt1,LInt2,mySide,myTol);
             //-------------------------------------------------------
             // If no trace try intersection.
             //-------------------------------------------------------
-            if (LInt1.IsEmpty()) {
+            if (!BRepOffset_Tool::TryProject(CF, OF1, LOE, LInt1, LInt2, mySide, myTol) || LInt1.IsEmpty()) {
               BRepOffset_Tool::Inter3D (CF,OF1,LInt1,LInt2,mySide,NullEdge,NullFace,NullFace);
             }
             Store (CF,OF1,LInt1,LInt2);
index df326ec6557d50b163d2627a22da9aabf5853c6c..da3e404dbd81eee1879863fc46322d007c4dbc9a 100644 (file)
@@ -1175,12 +1175,16 @@ void BRepOffset_MakeOffset::MakeThickSolid(const Message_ProgressRange& theRange
     {
       NbOF++;
     }
-    if (NbOF <= NbF)
+    if (NbOF < NbF)
     {
       myDone = Standard_False;
       myError = BRepOffset_UnknownError;
       return;
     }
+    if (NbOF == NbF)
+    {
+      myOffset = 0;
+    }
   }
 
   if (myOffset > 0 ) myOffsetShape.Reverse();
index 45ce024999da537adce73fa253f1a6aa123d1ede..6c08941e180bb914f471361161295b381b2dd7fa 100644 (file)
@@ -1881,6 +1881,10 @@ Standard_Boolean BRepOffset_Tool::TryProject
     if (C.IsNull()) {
       BRepLib::BuildCurve3d(CurE,BRep_Tool::Tolerance(CurE));
       C  = BRep_Tool::Curve(CurE,L,f,l);
+      if (C.IsNull())
+      {
+        return Standard_False;
+      }
     }
     C = new Geom_TrimmedCurve(C,f,l);
     if ( !L.IsIdentity()) C->Transform(L);
@@ -3519,9 +3523,8 @@ void BRepOffset_Tool::ExtentFace (const TopoDS_Face&            F,
       if (ToBuild.IsBound(E)) {
        TopTools_ListOfShape LOE;
        LOE.Append(E);
-       BRepOffset_Tool::TryProject (TopoDS::Face(ToBuild(E)),
-                                    EF,LOE,LInt2,LInt1,Side,TolConf);
-       if (!LInt1.IsEmpty()) 
+       if (BRepOffset_Tool::TryProject(TopoDS::Face(ToBuild(E)), EF, LOE, LInt2, LInt1, Side, TolConf)
+        && !LInt1.IsEmpty())
          ToBuild.UnBind(E);
       }
     }
index 8c01765b1f57f9069af3094f268719572c256860..e56406dc0b133627387dc20eeee0cabe0ca9bff4 100755 (executable)
@@ -1,8 +1,3 @@
-puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23068 ALL: result is not a topological shape!!!"
-puts "TODO OCC23068 ALL: Error: The command cannot be built"
-puts "TODO OCC23068 ALL: TEST INCOMPLETE"
-
 puts "========================"
 puts " OCC427 "
 puts "(case 6)"
index d6663828e9af564f46498c692a0f5b458efcd7dd..a9b3d8da978506f409e50fee417d76a40b0e1848 100755 (executable)
@@ -1,8 +1,4 @@
-puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC25925 ALL: Error: The command cannot be built"
-puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
-puts "TODO OCC25925 ALL: TEST INCOMPLETE"
-puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
+puts "TODO OCC25925 ALL: Error : The area of result shape is"
 
 puts "============"
 puts "OCC5805"
@@ -52,6 +48,6 @@ if {$index == -1} {
   
 }
 
-checknbshapes result -t -wire 5 -face 5 -shell 2 -solid 1
+checknbshapes result -t -wire 3 -face 3 -shell 1 -solid 1
 
 checkview -display result -2d -path ${imagedir}/${test_image}.png
index 5326ae6bd5c011ab7ae7b05a7f05247f64fccb9b..b2a91e220fef5043fd35a6f2896fa376f90b2bff 100755 (executable)
@@ -1,8 +1,4 @@
-puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
-puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
-puts "TODO OCC25925 ALL: Error: The command cannot be built"
-puts "TODO OCC25925 ALL: TEST INCOMPLETE"
+puts "TODO OCC25925 ALL: Error : The area of result shape is"
 
 puts "============"
 puts "OCC5805"
@@ -53,6 +49,6 @@ if {$index == -1} {
   
 }
 
-checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
+checknbshapes result -vertex 1 -edge 2 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 11
 
 checkview -display result -2d -path ${imagedir}/${test_image}.png
index 6179d7973bb07c8db61c58e19c4519ca8ddbeb05..1c1023b83a505be3e0d4a659ac57248e43fddc6d 100755 (executable)
@@ -1,8 +1,4 @@
-puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
-puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
-puts "TODO OCC25925 ALL: Error: The command cannot be built"
-puts "TODO OCC25925 ALL: TEST INCOMPLETE"
+puts "TODO OCC25925 ALL: Error : The area of result shape is"
 
 puts "============"
 puts "OCC5805"
@@ -53,6 +49,6 @@ if {$index == -1} {
   
 }
 
-checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13
+checknbshapes result -vertex 1 -edge 2 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 11
 
 checkview -display result -2d -path ${imagedir}/${test_image}.png
index c79971d3fe778d33cbe0351979852a36fb900ca7..f4f8c436e28792cf28886baefdd6874e6fba8f8c 100755 (executable)
@@ -1,6 +1,4 @@
-puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
-puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC25925 ALL: Error: The command cannot be built"
+puts "TODO OCC25925 ALL: Error : The area of result shape is"
 
 puts "============"
 puts "OCC5805"
index 521bc02d0328bd269dcb5fe63318db38e06aa5c1..5960b434ac118ea32bd9c0671a69270901fb9c52 100755 (executable)
@@ -1,7 +1,4 @@
-puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC25925 ALL: Error: The command cannot be built"
-puts "TODO OCC25925 ALL: Tcl Exception: result is not a topological shape"
-puts "TODO OCC25925 ALL: TEST INCOMPLETE"
+puts "TODO OCC25925 ALL: Error : The area of result shape is"
 
 puts "============"
 puts "OCC5805"
index aefc2dc4bbb2543e3d8cae41a8dc7cd2308ff2bd..6fa5700dc62b0d48241fb282f40805fe31599e76 100755 (executable)
@@ -1,8 +1,4 @@
-puts "TODO OCC25925 ALL: Faulty OCC5805 : result is not Closed shape"
-puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC25925 ALL: Tcl Exception: Error : command \\\"nbshapes result\\\" gives an empty result"
-puts "TODO OCC25925 ALL: Error: The command cannot be built"
-puts "TODO OCC25925 ALL: TEST INCOMPLETE"
+puts "TODO OCC25925 ALL: Error : The area of result shape is"
 
 puts "============"
 puts "OCC5805"
index 7e3ccccf02d64f634fe00b87fe2ce1e37175458a..3b010ec0184c4996c5eb5b6dc3b68f7fd24ebf7b 100644 (file)
@@ -1,5 +1,3 @@
-puts "TODO OCC25395 ALL: ERROR. offsetperform operation not done."
-
 puts "========"
 puts "OCC25395"
 puts "========"
index e32651d9ceaf383377d0a64d55c853d06b450e6d..a85948c4daf51a47edb3276dd17b31fb76097340 100755 (executable)
@@ -1,5 +1,3 @@
-puts "TODO OCC25939 ALL: An exception was caught"
-
 puts "============"
 puts "0025939: S I G S E G V in MakeThickSolid"
 puts "============"
index 078287b95f166c9fb370cc8f823a5feebab39f46..bda568ea45dc9359fa375dd0eeb14a7085421f37 100644 (file)
@@ -1,5 +1,3 @@
-puts "TODO OCC31845 All: ERROR. offsetperform operation not done."
-
 puts "============================================"
 puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
 puts "============================================"
index b8ccb753007e30abbc251573ea93a11a003cdacd..f115ba6a4771cc6b1b91c527ed106427b028a357 100644 (file)
@@ -1,5 +1,3 @@
-puts "TODO OCC31845 All: ERROR. offsetperform operation not done."
-
 puts "============================================"
 puts "OCC31845: BRepOffsetAPI_MakeThickSolid fails"
 puts "============================================"
diff --git a/tests/bugs/modalg_8/bug31601 b/tests/bugs/modalg_8/bug31601
new file mode 100644 (file)
index 0000000..b44f7c7
--- /dev/null
@@ -0,0 +1,15 @@
+puts "================================================================="
+puts "0031601: Modeling Algorithms - BRepOffset_Tool Segmentation Fault"
+puts "================================================================="
+puts ""
+
+pload MODELING
+box b 50 50 10
+explode b E
+compound b_1 b_2 b_3 b_4 b_5 b_6 b_7 b_8 b_9 b_10 b_11 b_12 c
+fillet s b 4 c
+explode s F
+offsetparameter 1.e-7 c a
+offsetload s 1 s_11
+offsetperform r
+checkview -display r -2d -path ${imagedir}/${test_image}.png
index 50e789cc3c1403c64ee433f15f048bbd6c2a5697..16e57ebc066741206000a03d5dff7ea0c9f53acb 100644 (file)
@@ -1,6 +1,3 @@
-puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23068 ALL: Error : The volume of result shape "
-
 ## ======================================
 ## Grid    : CCV002
 ## Test    : A1
@@ -12,4 +9,4 @@ explode s F
 offsetcompshape result s -10 s_1
 
 #real volume of result shape is unknown yet
-checkprops result -v 0
+checkprops result -v 1.01e+06
index 6811c03cbd21f6be941941e0949e82a2773667a8..5e360f307af078a1a3f4f7f77964520532992752 100755 (executable)
@@ -4,7 +4,6 @@
 ## Comment : From CV tests serie page 60
 ## ======================================
 
-puts "TODO OCC26556 ALL: ERROR. offsetperform operation not done."
 restore [locate_data_file CCV_2_d1_gsw.rle] s
 explode s F
 catch {offsetcompshape result s -2 s_17}
index 47052f242ff936d1831feda30f265974c5694615..d67a474eeb00f1076cff873913f0dcb35cff855f 100644 (file)
@@ -1,9 +1,9 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
+puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO OCC23068 ALL: Error : The area of face "
+
 pcone s 5 0 12 90
 trotate s 0 0 0 0 0 1 90
 
 OFFSETSHAPE 1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 78.53988 
index b4b88a4775f6002ad18de70b1149eae3a4a4d9ea..17086e8e62659d30d7838079500120c095f16f42 100644 (file)
@@ -1,9 +1,5 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 pcone s 5 0 12 270
 
 OFFSETSHAPE -1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 235.619
index f8a222a15ce4096b137c788d33489d1fe911ce73..1d2f7982ed987ca1877a83fea450a778f81aeb3a 100644 (file)
@@ -1,9 +1,5 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 pcone s 5 0 12 270
 
 OFFSETSHAPE 1 {s_3 s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 235.619
index e11d3e9845655f47ee00302d9f737236bade8c96..642047eb2b34550c556d70dac1f414af65c6499f 100644 (file)
@@ -1,10 +1,9 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
+puts "TODO OCC23068 ALL: Error : The area of face "
+puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
 
 psphere s 15 -90 60 90
 trotate s 0 0 0 0 0 1 90
 
 OFFSETSHAPE 1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 3488.84
index b1bd5fb38e73767603d8db2cb55bbc9671673d65..fd791a1c5afb1a5bb42fbd196d2e39faf7aee7d5 100644 (file)
@@ -1,9 +1,8 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
+puts "TODO OCC23068 ALL: Error : The area of face "
+puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
 
 psphere s 15 -90 60 270
 
 OFFSETSHAPE 1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 10466.5
index f4ec64f17dae496913676b0ed162fcf3b0f5c7fa..04bb3bab5717138617032be2106d3871f850ceda 100644 (file)
@@ -1,9 +1,5 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 psphere s 15 -90 60 270
 
 OFFSETSHAPE -1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 10466.5
index 957568b2462488a81d3d107e544eabd0c40a9576..740907eab5fb56a57bdd6473596283860ee15ec4 100644 (file)
@@ -1,10 +1,8 @@
-puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23068 ALL: Error : The offset cannot be built."
-puts "TODO OCC23068 ALL: Error: The command cannot be built"
+puts "TODO OCC23068 ALL: Error : The area of face "
 
 psphere s 15 90
 trotate s 0 0 0 0 0 1 90
 
 OFFSETSHAPE 1 {s_3} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 3534.29
index 6a79959219ffff32238bd9fcd339f5fa71862354..6c3ad81700a5e81112740722071ba556b86ae8da 100644 (file)
@@ -1,5 +1,4 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error : The offset cannot be built."
+puts "TODO OCC23068 ALL: Error : The area of face "
 
 psphere s 15 270
 
index 1445bfb77667ecb436492d898f0fab992aeefd4a..91dc1907386ac70f965382e0b99e341c9b73bd1b 100644 (file)
@@ -1,9 +1,5 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 psphere s 15 270
 
 OFFSETSHAPE -1 {s_2} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 10602.9
index 0be2810d3ad204725035f52290af5f2992537f63..d169a86744fef884d5bc017d28e170a013d7d574 100755 (executable)
@@ -1,8 +1,5 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
+puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO OCC23068 ALL: Error : The area of face "
 
 ellipse w1 0 0 0 15 10
 mkedge w1 w1 0 pi/2
@@ -14,4 +11,4 @@ revol s w 0 0 0 0 0 1 90
 
 OFFSETSHAPE 1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 4385.14
index a11a388ca7b00f75f4fa29d20a5be8bbc1b780e2..4479cc830d51dac4fb835f58fb720753de06f53d 100644 (file)
@@ -1,9 +1,3 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 ellipse w1 0 0 0 15 10
 mkedge w1 w1 0 pi/2
 trotate w1 0 0 0 1 0 0 90
@@ -14,4 +8,4 @@ revol s w 0 0 0 0 0 1 90
 
 OFFSETSHAPE -1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 4385.14
index ec5307350fcd8e646a5b723413d8ae05c85c4721..03318b6f26fd2155fe52eb6f5feb9eecacf7a9a8 100644 (file)
@@ -1,9 +1,3 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 ellipse w1 0 0 0 15 10
 mkedge w1 w1 0 pi/2
 trotate w1 0 0 0 1 0 0 90
@@ -14,4 +8,4 @@ revol s w 0 0 0 0 0 1 90
 
 OFFSETSHAPE 1 {s_4 s_5} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 4385.14
index da8b77081af4bee5ca596b646a88bd284be0520d..5d9163ded1947c6208e24fff3f2f01bf9967ef81 100644 (file)
@@ -1,7 +1,3 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 ellipse w1 0 0 0 15 10
 mkedge w1 w1 0 pi/2
 trotate w1 0 0 0 1 0 0 90
@@ -12,4 +8,4 @@ revol s w 0 0 0 0 0 1 90
 
 OFFSETSHAPE -1 {s_4 s_5} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 4385.14
index 0d23b75d5f10935de63aea121f13c737534bbb11..22c7abe87c7d894c189e84b943ebb62a71dc0099 100755 (executable)
@@ -1,8 +1,5 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
+puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO OCC23068 ALL: Error : The area of face "
 
 ellipse w1 0 0 0 15 10
 mkedge w1 w1 0 pi/2
@@ -14,4 +11,4 @@ revol s w 0 0 0 0 0 1 270
 
 OFFSETSHAPE 1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 13155.2
index 6243913d5b3c0a1ec15fb1b0be80bd48cd210e45..fdc37e343f341a085d3c593116805a59e695857d 100644 (file)
@@ -1,9 +1,3 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 cpulimit 400
 
 ellipse w1 0 0 0 15 10
@@ -16,4 +10,4 @@ revol s w 0 0 0 0 0 1 270
 
 OFFSETSHAPE -1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 13155.2
index 8fcbf2bd3642234c3ef8aac9a9203b4f5fe9e5a4..40400eccaf2d6a1736201dcbfd069c18ceec2195 100644 (file)
@@ -1,9 +1,3 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 ellipse w1 0 0 0 15 10
 mkedge w1 w1 0 pi/2
 trotate w1 0 0 0 1 0 0 90
@@ -14,4 +8,4 @@ revol s w 0 0 0 0 0 1 270
 
 OFFSETSHAPE 1 {s_4 s_5} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 13155.2
index 8441586e46e69c2c7ead8b29e234e6c256881fa8..9a14c5cf545e62d5e04866a8e76ab798fe249ac4 100644 (file)
@@ -1,9 +1,3 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 # 17.01.2010
 cpulimit 600
 # 17.01.2010
@@ -18,4 +12,4 @@ revol s w 0 0 0 0 0 1 270
 
 OFFSETSHAPE -1 {s_4 s_5} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 13155.2
index 80b53c4b42ef5afecfaca483f28a99e946cc9c49..e44979e7da8d7a24274ab7dd583224a4583ef28a 100644 (file)
@@ -1,9 +1,5 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 pcylinder s 5 10 270
 
 OFFSETSHAPE -1 {s_5} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 589.049
index caf11e01299875652b9c923b154aaddc4ef53085..84d09651d6417886a9ba3fececd4f5fc0edd2d19 100644 (file)
@@ -1,9 +1,5 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 pcone s 9 4 15 270
 
 OFFSETSHAPE -1 {s_5} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 1566.87
index 9b9b4dc9049abbd2281fde2dce46ff1a402b9e41..b99329eb084a3fd1061f060cf4a72f302b2fd9e5 100644 (file)
@@ -1,9 +1,5 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 ptorus s 10 10 0 45 270
 
 OFFSETSHAPE -1 {s_4} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 6083.13
index 2c80d4ef6ba13f6fb3f4cb4615c3c077f88a2238..201b7948dd4e31f99ff78814531861dc7cdb77aa 100644 (file)
@@ -1,7 +1,3 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 circle w -20 0 0 20
 mkedge w w 0 pi*2/5
 wire w w
@@ -11,4 +7,4 @@ pipe s w profile
 
 OFFSETSHAPE 1 {s_2 s_3} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 785.398
index d3d09151af25df6c01d1ed5897a2a76037bdd131..0bb6b8738ee0c24dbf8775d17973d5dfdf8fe2bb 100644 (file)
@@ -1,7 +1,3 @@
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
-
 circle w -20 0 0 20
 mkedge w w 0 pi*2/5
 wire w w
@@ -11,4 +7,4 @@ pipe s w profile
 
 OFFSETSHAPE 1 {s_4 s_5} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 785.398
index da57c569ca58901dc94329f364103f47f13a6f10..c7220e119164a4d2d2bb0cb133a1e92598695ba9 100644 (file)
@@ -1,8 +1,5 @@
-puts "TODO OCC24156 MacOS: An exception was caught"
-puts "TODO OCC24156 MacOS: TEST INCOMPLETE"
-puts "TODO OCC23748 ALL: ERROR. offsetperform operation not done."
-puts "TODO OCC23748 ALL: Error: The command cannot be built"
-puts "TODO OCC26556 ALL: Error : The offset cannot be built."
+puts "TODO CR23530 ALL: Faulty shapes in variables faulty_1 to faulty_"
+puts "TODO OCC23068 ALL: Error : The area of face "
 
 beziersurf c 3 2 \
 0 0 0 0 5 5 2 14 3 \
@@ -12,4 +9,4 @@ prism s c 0 0 20
 
 OFFSETSHAPE 1 {s_5 s_6} $calcul $type
 
-checkprops result -v 0
+checkprops result -v 3340
index 61adf130be017295c64f672d5d573570d602341b..41f76e6be88f1fb70ca265f100f746057cdc1167 100644 (file)
@@ -1,5 +1,3 @@
-puts "TODO OCC23068 All: ERROR. offsetperform operation not done."
-puts "TODO OCC23068 All: Error : The volume of result shape is"
 # Original bug : hkg60144
 # Date : 17Juillet98
 
@@ -9,5 +7,5 @@ explode s f
 offsetshape result s -5 s_1
 
 
-checkprops result -v 2.12817e+006
+checkprops result -v 2.80312e+07