1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +03:00

0026148: BRep_Tool::IsClosed failed to judge a closed edge on Poly_Triangulation.

The method signature has been changed by adding an argument TopLoc_Location.
This commit is contained in:
msv 2015-04-30 12:37:07 +03:00 committed by bugmaster
parent 2f697f2f74
commit ff0a70a157
2 changed files with 7 additions and 4 deletions

@ -366,7 +366,8 @@ is
----------------------------------------------------------- -----------------------------------------------------------
IsClosed(myclass; E : Edge from TopoDS; IsClosed(myclass; E : Edge from TopoDS;
T : Triangulation from Poly) T : Triangulation from Poly;
L : Location from TopLoc)
returns Boolean returns Boolean
---Purpose: Returns True if <E> has two arrays of indices in ---Purpose: Returns True if <E> has two arrays of indices in

@ -706,7 +706,8 @@ Standard_Boolean BRep_Tool::IsClosed(const TopoDS_Edge& E,
TopLoc_Location l; TopLoc_Location l;
const Handle(Geom_Surface)& S = BRep_Tool::Surface(F,l); const Handle(Geom_Surface)& S = BRep_Tool::Surface(F,l);
if (IsClosed(E,S,l)) return Standard_True; if (IsClosed(E,S,l)) return Standard_True;
return IsClosed(E, BRep_Tool::Triangulation(F,l)); const Handle(Poly_Triangulation)& T = BRep_Tool::Triangulation(F,l);
return IsClosed(E, T, l);
} }
//======================================================================= //=======================================================================
@ -749,9 +750,10 @@ Standard_Boolean BRep_Tool::IsClosed(const TopoDS_Edge& E,
//======================================================================= //=======================================================================
Standard_Boolean BRep_Tool::IsClosed(const TopoDS_Edge& E, Standard_Boolean BRep_Tool::IsClosed(const TopoDS_Edge& E,
const Handle(Poly_Triangulation)& T) const Handle(Poly_Triangulation)& T,
const TopLoc_Location& L)
{ {
TopLoc_Location l = E.Location(); TopLoc_Location l = L.Predivided(E.Location());
// find the representation // find the representation
BRep_ListIteratorOfListOfCurveRepresentation itcr BRep_ListIteratorOfListOfCurveRepresentation itcr