From 7dfac274a6939d62ac2d7b164105ae10a6bc9b97 Mon Sep 17 00:00:00 2001 From: aml Date: Thu, 6 Aug 2015 13:23:45 +0300 Subject: [PATCH] 0026493: BRepProj_Projection failed to project a wire on a shell Cylindrical projection moved from old boolean operations to the new BOP. Test case for issue CR26493 --- src/BRepProj/BRepProj_Projection.cxx | 5 ++--- tests/boolean/gdml_private/O1 | 3 +-- tests/bugs/modalg_6/bug26493 | 30 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 5 deletions(-) create mode 100755 tests/bugs/modalg_6/bug26493 diff --git a/src/BRepProj/BRepProj_Projection.cxx b/src/BRepProj/BRepProj_Projection.cxx index d5ad20b3e8..76a7050c85 100644 --- a/src/BRepProj/BRepProj_Projection.cxx +++ b/src/BRepProj/BRepProj_Projection.cxx @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -126,8 +126,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/boolean/gdml_private/O1 b/tests/boolean/gdml_private/O1 index ffb1617689..ea01dd6488 100644 --- a/tests/boolean/gdml_private/O1 +++ b/tests/boolean/gdml_private/O1 @@ -1,3 +1,2 @@ -puts "TODO OCC26018 ALL: Faulty shapes in variables faulty_1 to faulty_" +puts "TODO OCC26018 Linux: Faulty shapes in variables faulty_1 to faulty_" source [locate_data_file 20000_h1-2_et5_401-ta13429.prt.2.gdml.tcl] - diff --git a/tests/bugs/modalg_6/bug26493 b/tests/bugs/modalg_6/bug26493 new file mode 100755 index 0000000000..5561e4a299 --- /dev/null +++ b/tests/bugs/modalg_6/bug26493 @@ -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"