mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-20 11:54:07 +03:00
class BOPTools_AlgoTools2D method Standard_Integer BOPTools_AlgoTools2D::AttachExistingPCurve (const TopoDS_Edge& aE2, // old const TopoDS_Edge& aE1, // new const TopoDS_Face& aF, const Handle(IntTools_Context)& aCtx) To prevent huge tolerance increasing check the distances between 2d and 3d curves (through surface) before attaching 2d curve to the edge. Test case for issue CR26718 Correction of test cases for issue CR26718
46 lines
1.1 KiB
Plaintext
Executable File
46 lines
1.1 KiB
Plaintext
Executable File
puts "============"
|
|
puts "OCC26718"
|
|
puts "============"
|
|
puts ""
|
|
#############################################################################################
|
|
## Big tolerance value of the edge in the result of Genral Fuse operation
|
|
#############################################################################################
|
|
|
|
restore [locate_data_file bug26718_w6_b1.brep] b1
|
|
restore [locate_data_file bug26718_w6_b2.brep] b2
|
|
|
|
bclearobjects
|
|
bcleartools
|
|
baddobjects b1
|
|
baddtools b2
|
|
|
|
bfillds
|
|
bbuild result
|
|
|
|
set square 2.3834e+06
|
|
|
|
set nbshapes_expected "
|
|
Number of shapes in shape
|
|
VERTEX : 7
|
|
EDGE : 11
|
|
WIRE : 8
|
|
FACE : 5
|
|
SHELL : 2
|
|
SOLID : 2
|
|
COMPSOLID : 0
|
|
COMPOUND : 1
|
|
SHAPE : 36
|
|
"
|
|
|
|
checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by General Fuse operation"
|
|
|
|
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance result] full MaxTolerance
|
|
puts "MaxTolerance=$MaxTolerance"
|
|
|
|
set expected_MaxTolerance 0.317915740714732
|
|
set tol_abs_MaxTolerance 0.01
|
|
set tol_rel_MaxTolerance 0.01
|
|
checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
|
|
|
|
set 3dviewer 1
|