]> OCCT Git - occt-copy.git/commitdiff
0026493: BRepProj_Projection failed to project a wire on a shell
authoraml <aml@opencascade.com>
Thu, 6 Aug 2015 10:23:45 +0000 (13:23 +0300)
committerssv <ssv@opencascade.com>
Fri, 14 Aug 2015 14:06:45 +0000 (17:06 +0300)
Cylindrical projection moved from old boolean operations to the new BOP.

Test case for issue CR26493

Conflicts:
src/BRepProj/BRepProj_Projection.cxx
tests/boolean/gdml_private/O1

src/BRepProj/BRepProj_Projection.cxx
tests/bugs/modalg_6/bug26493 [new file with mode: 0755]

index c56a0e61f61374cf924795557cabae3502b170d6..8d917c391f05cd7f30c806f3607a66006738b82a 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <BRepProj_Projection.ixx>
 
-#include <BRepAlgo_Section.hxx>
+#include <BRepAlgoAPI_Section.hxx>
 
 #include <Precision.hxx>
 #include <BRepBndLib.hxx>
@@ -129,8 +129,7 @@ void BRepProj_Projection::BuildSection (const TopoDS_Shape& theShape,
     Standard_ConstructionError::Raise(__FILE__": target shape has no faces");
 
   // build section computing pcurves on the shape
-//  BRepAlgoAPI_Section aSectionTool (aShape, theTool, Standard_False);
-  BRepAlgo_Section aSectionTool (aShape, theTool, Standard_False);
+  BRepAlgoAPI_Section aSectionTool (aShape, theTool, Standard_False);
   aSectionTool.Approximation (Standard_True);
   aSectionTool.ComputePCurveOn1 (Standard_True);
   aSectionTool.Build();
diff --git a/tests/bugs/modalg_6/bug26493 b/tests/bugs/modalg_6/bug26493
new file mode 100755 (executable)
index 0000000..5561e4a
--- /dev/null
@@ -0,0 +1,30 @@
+puts "============"
+puts "OCC26493"
+puts "============"
+puts ""
+#######################################################################
+# BRepProj_Projection failed to project a wire on a shell
+#######################################################################
+
+restore [locate_data_file bug26493_plate.brep] plate
+restore [locate_data_file bug26493_wire.brep] wire
+
+prj res wire plate 0 0 -1
+
+renamevar res_1 result
+
+set length 1003.94
+
+set nbshapes_expected "
+Number of shapes in shape
+ VERTEX    : 2
+ EDGE      : 1
+ WIRE      : 1
+ FACE      : 0
+ SHELL     : 0
+ SOLID     : 0
+ COMPSOLID : 0
+ COMPOUND  : 0
+ SHAPE     : 4
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "fuzzy booleans with multiple tools"