1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

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

Conflicts:
	src/BRepProj/BRepProj_Projection.cxx
	tests/boolean/gdml_private/O1
This commit is contained in:
aml
2015-08-06 13:23:45 +03:00
committed by ssv
parent 67961eb8ac
commit af9ac4846b
2 changed files with 32 additions and 3 deletions

View 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();

30
tests/bugs/modalg_6/bug26493 Executable file
View File

@@ -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"