mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0022881: Sewing does not sew edge to its copy
This commit is contained in:
parent
ac04d1012c
commit
9781f21539
@ -579,15 +579,21 @@ TopoDS_Edge BRepBuilderAPI_Sewing::SameParameterEdge(const TopoDS_Edge& edgeFirs
|
|||||||
|
|
||||||
//check that edges merged valid way (for edges having length less than specified
|
//check that edges merged valid way (for edges having length less than specified
|
||||||
//tolerance
|
//tolerance
|
||||||
if(secForward)
|
// Check if edges are closed
|
||||||
|
Standard_Boolean isClosed1 = V11.IsSame(V12);
|
||||||
|
Standard_Boolean isClosed2 = V21.IsSame(V22);
|
||||||
|
if(!isClosed1 && !isClosed2)
|
||||||
{
|
{
|
||||||
if( V11.IsSame(V22) || V12.IsSame(V21) )
|
if(secForward )
|
||||||
return TopoDS_Edge();
|
{
|
||||||
}
|
if( V11.IsSame(V22) || V12.IsSame(V21) )
|
||||||
else
|
return TopoDS_Edge();
|
||||||
{
|
}
|
||||||
if( V11.IsSame(V21) || V12.IsSame(V22) )
|
else
|
||||||
return TopoDS_Edge();
|
{
|
||||||
|
if( V11.IsSame(V21) || V12.IsSame(V22) )
|
||||||
|
return TopoDS_Edge();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//szv: do not reshape here!!!
|
//szv: do not reshape here!!!
|
||||||
@ -601,9 +607,7 @@ TopoDS_Edge BRepBuilderAPI_Sewing::SameParameterEdge(const TopoDS_Edge& edgeFirs
|
|||||||
gp_Pnt p21 = BRep_Tool::Pnt(V21);
|
gp_Pnt p21 = BRep_Tool::Pnt(V21);
|
||||||
gp_Pnt p22 = BRep_Tool::Pnt(V22);
|
gp_Pnt p22 = BRep_Tool::Pnt(V22);
|
||||||
|
|
||||||
// Check if edges are closed
|
|
||||||
Standard_Boolean isClosed1 = V11.IsSame(V12);
|
|
||||||
Standard_Boolean isClosed2 = V21.IsSame(V22);
|
|
||||||
|
|
||||||
//Standard_Boolean isRev = Standard_False;
|
//Standard_Boolean isRev = Standard_False;
|
||||||
gp_Pnt pfirst;
|
gp_Pnt pfirst;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user