]> OCCT Git - occt.git/commitdiff
0027892: Construction error in offset
authornbv <nbv@opencascade.com>
Tue, 27 Sep 2016 14:46:14 +0000 (17:46 +0300)
committerapn <apn@opencascade.com>
Thu, 6 Oct 2016 09:26:21 +0000 (12:26 +0300)
Provide proper initialization of the field Geom_OffsetSurface::myOscSurf in the case of creating offset of the trimmed bspline surface.

Adjusting test cases according to their new behavior.

src/Geom/Geom_OffsetSurface.cxx
tests/bugs/modalg_4/bug8842_8
tests/offset/with_intersect_20/J9
tests/offset/with_intersect_80/J9
tests/offset/with_intersect_80/K8

index 13f019c9d33f8d5bda0f87e388954cfed5933746..156f2fd63ba8345210263f5195ae95f7855c6aac 100644 (file)
@@ -221,15 +221,15 @@ void Geom_OffsetSurface::SetBasisSurface (const Handle(Geom_Surface)& S,
   
   equivSurf = Surface();
 
-  if (basisSurf->IsKind(STANDARD_TYPE(Geom_BSplineSurface)) ||
-      basisSurf->IsKind(STANDARD_TYPE(Geom_BezierSurface)))
+  if (aCheckingSurf->IsKind(STANDARD_TYPE(Geom_BSplineSurface)) ||
+      aCheckingSurf->IsKind(STANDARD_TYPE(Geom_BezierSurface)))
   {
     // Tolerance en dur pour l'instant ,mais on devrait la proposer dans le constructeur
     // et la mettre en champ, on pourrait utiliser par exemple pour l'extraction d'iso 
     // et aussi pour les singularite. Pour les surfaces osculatrices, on l'utilise pour
     // detecter si une iso est degeneree.
     const Standard_Real Tol = Precision::Confusion(); //0.0001;
-    myOscSurf = new Geom_OsculatingSurface(basisSurf, Tol);
+    myOscSurf = new Geom_OsculatingSurface(aCheckingSurf, Tol);
   }
 
   // Surface value calculator
index eac4f7ae9bb739fade43a76b29a6b93b8ee337c2..1c23a88d6cbb710b4477a138ba961a242d2be5ce 100755 (executable)
@@ -1,3 +1,7 @@
+puts "TODO OCC27929 ALL: Error : The area of result shape is"
+puts "TODO OCC27929 ALL: Error :  is WRONG because number of "
+
+
 puts "============"
 puts "OCC8842"
 puts "============"
index 3be5c693f3705d130d86f18f0707afd85c1ba3bb..55246c9a3b047a2cf8758aee8849bed16becb5c2 100644 (file)
@@ -1,8 +1,5 @@
-#puts "TODO OCC26577 All: Error :  is WRONG because number of EDGE entities in shape"
-#puts "TODO OCC26577 All: Error :  is WRONG because number of SHELL entities in shape"
-puts "TODO 26329 All: Standard_ConstructionError: BRepOffset_MakeOffset::TrimEdge no projection"
-puts "TODO 26329 All: TEST INCOMPLETE"
-
+puts "TODO OCC26577 All: Error :  is WRONG because number of EDGE entities in shape"
+puts "TODO OCC26577 All: Error :  is WRONG because number of SHELL entities in shape"
 restore [locate_data_file bug26663_test_offset_J9.brep] s
 OFFSETSHAPE ${off_param} {} ${calcul} ${type}
 checknbshapes result -ref [lrange [nbshapes s] 8 19]
index 4db409e01eb627cf0d981c96c1e3da9369891311..5c5f4e790464c5f7262e68be072f9447272f10fc 100644 (file)
@@ -1,9 +1,6 @@
-#puts "TODO OCC26578 All:An exception was caught"
-#puts "TODO OCC26578 All:\\*\\* Exception \\*\\*"
-#puts "TODO OCC26578 All:TEST INCOMPLETE"
-puts "TODO OCC26578 All: Error :  is WRONG because number of EDGE"
-puts "TODO OCC26578 All: Error :  is WRONG because number of SHELL"
-#puts "TODO OCC26578 All: Faulty shapes in variables faulty_1"
+puts "TODO OCC26578 All:An exception was caught"
+puts "TODO OCC26578 All:\\*\\* Exception \\*\\*"
+puts "TODO OCC26578 All:TEST INCOMPLETE"
 restore [locate_data_file bug26663_test_offset_J9.brep] s
 OFFSETSHAPE ${off_param} {} ${calcul} ${type}
 checknbshapes result -ref [lrange [nbshapes s] 8 19]
index d3cbc902b33f86c8105f55abb4921a5b1601a9a0..c7b86dc3dd43f70009d8c67b2563f5d823413e9e 100644 (file)
@@ -1,8 +1,6 @@
-#puts "TODO OCC26578 All:An exception was caught"
-#puts "TODO OCC26578 All:\\*\\* Exception \\*\\*"
-puts "TODO OCC26578 All:is WRONG"
-puts "TODO OCC26578 All:Faulty shapes in variables faulty_1 to faulty_"
-#
+puts "TODO OCC26578 All:An exception was caught"
+puts "TODO OCC26578 All:\\*\\* Exception \\*\\*"
+puts "TODO OCC26578 All:TEST INCOMPLETE"
 restore [locate_data_file bug26663_test_offset_K8.brep] s
 OFFSETSHAPE ${off_param} {} ${calcul} ${type}
 checknbshapes result -ref [lrange [nbshapes s] 8 19]