mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +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:
parent
2f697f2f74
commit
ff0a70a157
@ -366,7 +366,8 @@ is
|
||||
-----------------------------------------------------------
|
||||
|
||||
IsClosed(myclass; E : Edge from TopoDS;
|
||||
T : Triangulation from Poly)
|
||||
T : Triangulation from Poly;
|
||||
L : Location from TopLoc)
|
||||
returns Boolean
|
||||
|
||||
---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;
|
||||
const Handle(Geom_Surface)& S = BRep_Tool::Surface(F,l);
|
||||
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,
|
||||
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
|
||||
BRep_ListIteratorOfListOfCurveRepresentation itcr
|
||||
|
Loading…
x
Reference in New Issue
Block a user