mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +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
This commit is contained in:
parent
577c6f0d0f
commit
7dfac274a6
@ -16,7 +16,7 @@
|
|||||||
#include <Bnd_Box.hxx>
|
#include <Bnd_Box.hxx>
|
||||||
#include <BRep_Builder.hxx>
|
#include <BRep_Builder.hxx>
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
#include <BRepAlgo_Section.hxx>
|
#include <BRepAlgoAPI_Section.hxx>
|
||||||
#include <BRepBndLib.hxx>
|
#include <BRepBndLib.hxx>
|
||||||
#include <BRepFill_Generator.hxx>
|
#include <BRepFill_Generator.hxx>
|
||||||
#include <BRepLib_MakeEdge.hxx>
|
#include <BRepLib_MakeEdge.hxx>
|
||||||
@ -126,8 +126,7 @@ void BRepProj_Projection::BuildSection (const TopoDS_Shape& theShape,
|
|||||||
Standard_ConstructionError::Raise(__FILE__": target shape has no faces");
|
Standard_ConstructionError::Raise(__FILE__": target shape has no faces");
|
||||||
|
|
||||||
// build section computing pcurves on the shape
|
// build section computing pcurves on the shape
|
||||||
// BRepAlgoAPI_Section aSectionTool (aShape, theTool, Standard_False);
|
BRepAlgoAPI_Section aSectionTool (aShape, theTool, Standard_False);
|
||||||
BRepAlgo_Section aSectionTool (aShape, theTool, Standard_False);
|
|
||||||
aSectionTool.Approximation (Standard_True);
|
aSectionTool.Approximation (Standard_True);
|
||||||
aSectionTool.ComputePCurveOn1 (Standard_True);
|
aSectionTool.ComputePCurveOn1 (Standard_True);
|
||||||
aSectionTool.Build();
|
aSectionTool.Build();
|
||||||
|
@ -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]
|
source [locate_data_file 20000_h1-2_et5_401-ta13429.prt.2.gdml.tcl]
|
||||||
|
|
||||||
|
30
tests/bugs/modalg_6/bug26493
Executable file
30
tests/bugs/modalg_6/bug26493
Executable 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"
|
Loading…
x
Reference in New Issue
Block a user