mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0026224: Wrong result obtained by Common operator.
I. New features: No new features. II. Changes: II.1. class BOPTools_AlgoTools2D - method: Standard_Integer BOPTools_AlgoTools2D::AttachExistingPCurve (const TopoDS_Edge& aE2, const TopoDS_Edge& aE1, const TopoDS_Face& aF, const Handle(IntTools_Context)& aCtx) has been changed. The treatment of the curves that need to be reversed has been modified taking into account reversed parameter III. Modified entities: packages: BOPTools
This commit is contained in:
parent
a5416a8c8c
commit
1ed0e5502e
@ -85,13 +85,14 @@ Standard_Integer BOPTools_AlgoTools2D::AttachExistingPCurve
|
|||||||
//
|
//
|
||||||
bIsToReverse=IsToReverse(aE2, aE1, aCtx);
|
bIsToReverse=IsToReverse(aE2, aE1, aCtx);
|
||||||
if (bIsToReverse) {
|
if (bIsToReverse) {
|
||||||
|
Standard_Real aT21r, aT22r;
|
||||||
|
//
|
||||||
aC2DoldC->Reverse();
|
aC2DoldC->Reverse();
|
||||||
//
|
//
|
||||||
gp_Pnt2d aP1, aP2;
|
aT21r=aC2DoldC->ReversedParameter(aT21);
|
||||||
//
|
aT22r=aC2DoldC->ReversedParameter(aT22);
|
||||||
aC2Dold->D0(aT22, aP2);
|
aT21=aT22r;
|
||||||
aC2DoldC->D0(aT21, aP1);
|
aT22=aT21r;
|
||||||
aC2DoldC->Translate(aP1, aP2);
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
aC2DT=new Geom2d_TrimmedCurve(aC2DoldC, aT21, aT22);
|
aC2DT=new Geom2d_TrimmedCurve(aC2DoldC, aT21, aT22);
|
||||||
|
37
tests/bugs/modalg_6/bug26224
Executable file
37
tests/bugs/modalg_6/bug26224
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC26224"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
###############################
|
||||||
|
## Wrong result obtained by Common operator.
|
||||||
|
###############################
|
||||||
|
|
||||||
|
restore [locate_data_file bug26224_b1.brep] b1
|
||||||
|
restore [locate_data_file bug26224_b2.brep] b2
|
||||||
|
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects b1
|
||||||
|
baddtools b2
|
||||||
|
|
||||||
|
bfillds
|
||||||
|
bbop result 0
|
||||||
|
|
||||||
|
set square 35006.6
|
||||||
|
|
||||||
|
set nbshapes_expected "
|
||||||
|
Number of shapes in shape
|
||||||
|
VERTEX : 9
|
||||||
|
EDGE : 9
|
||||||
|
WIRE : 1
|
||||||
|
FACE : 1
|
||||||
|
SHELL : 1
|
||||||
|
SOLID : 0
|
||||||
|
COMPSOLID : 0
|
||||||
|
COMPOUND : 1
|
||||||
|
SHAPE : 22
|
||||||
|
|
||||||
|
"
|
||||||
|
checknbshapes result -ref ${nbshapes_expected} -t -m "result obtained by Common operator"
|
||||||
|
|
||||||
|
set 3dviewer 1
|
Loading…
x
Reference in New Issue
Block a user