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

0025600: Wrong result of Boolean FUSE operation

class BOPTools_AlgoTools
1. method Standard_Boolean FindPointInFace(const TopoDS_Face& aF,
                                 const gp_Pnt& aP,
                                 gp_Dir& aDB,
                                 gp_Pnt& aPOut,
                                 Handle(IntTools_Context)& theContext,
                                 GeomAPI_ProjectPointOnSurf& aProjPL,
                                 const Standard_Real aDt,
                                 const Standard_Real aTolE)
Use different method of finding a point in the face if the start and projected points are close to each other.

2. method Standard_Real MinStep3D(const TopoDS_Edge& theE1,
                        const TopoDS_Face& theF1,
                        const BOPTools_ListOfCoupleOfShape& theLCS,
                        const gp_Pnt& aP)
The min 3D step has been increased for the spherical faces.

Test case for issue CR25600

Correction of test case for issue CR25600
This commit is contained in:
emv
2014-12-25 18:08:44 +03:00
committed by bugmaster
parent 7c32c7c41f
commit b9f6147d75
3 changed files with 57 additions and 18 deletions

View File

@@ -12,19 +12,17 @@ restore [locate_data_file bug24154_b.brep] b2
bop b1 b2
bopcut result
#set square 2.68434e+06
set square 5.21269e+06
set volume 7.35468e+07
set square 2.68434e+06
# Analysis of "nbshapes res"
set nb_v_good 18
set nb_e_good 36
set nb_w_good 18
set nb_f_good 18
set nb_e_good 27
set nb_w_good 11
set nb_f_good 11
set nb_sh_good 1
set nb_sol_good 1
set nb_compsol_good 0
set nb_compound_good 1
set nb_shape_good 93
set nb_shape_good 70
set 2dviewer 1

View File

@@ -0,0 +1,31 @@
puts "=========="
puts "OCC25600"
puts "=========="
puts ""
####################################################
# Wrong result of Boolean FUSE operation
####################################################
restore [locate_data_file bug25600_helix_pipe.brep] b1
restore [locate_data_file bug25600_sphere_2.brep] b2
bclearobjects
bcleartools
baddobjects b1
baddtools b2
bfillds -s
bbop result 1
set square 12.2258
set nb_v_good 3
set nb_e_good 6
set nb_w_good 3
set nb_f_good 3
set nb_sh_good 1
set nb_sol_good 1
set nb_compsol_good 0
set nb_compound_good 1
set nb_shape_good 18
set 2dviewer 1