mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025656: Specification of semantic of Closed flag of an edge
1. Using of the "Closed" flag was unified: a) this flag is applicable for TopoDS_Wire and TopoDS_Shell only, because these entities may hedge an area in 2D space or a volume in 3D space correspondingly; b) other types of TopoDS shapes are passing over this flag; c) changing of this flag should be controlled by high-level algorithms (not BRep_Builder). 2. Implemented verification of the closedness of edges. An edge is closed if and only if its first and last vertices are the same. 3. Test cases were changed according to new behavior.
This commit is contained in:
@@ -620,8 +620,8 @@ void BRepFill_Generator::Perform()
|
||||
Edge2 = TopoDS::Edge(ex2.Current());
|
||||
}
|
||||
|
||||
Standard_Boolean Periodic
|
||||
= (Edge1.Closed() || degen1) && (Edge2.Closed() || degen2);
|
||||
Standard_Boolean Periodic = (BRep_Tool::IsClosed(Edge1) || degen1) &&
|
||||
(BRep_Tool::IsClosed(Edge2) || degen2);
|
||||
// ATTENTION : a non-punctual wire should not
|
||||
// contain a punctual edge
|
||||
if (!wPoint1) ex1.Next();
|
||||
@@ -648,13 +648,7 @@ void BRepFill_Generator::Perform()
|
||||
Vf_toMap = V1f;
|
||||
Vl_toMap = V1l;
|
||||
}
|
||||
|
||||
if(Periodic) {
|
||||
Standard_Boolean E1IsReallyClosed = BRepTools::Compare(V1f,V1l);
|
||||
Standard_Boolean E2IsReallyClosed = BRepTools::Compare(V2f,V2l);
|
||||
Periodic
|
||||
= (E1IsReallyClosed || degen1) && (E2IsReallyClosed || degen2);
|
||||
}
|
||||
|
||||
// processing of KPart
|
||||
Standard_Integer IType = DetectKPart(Edge1,Edge2);
|
||||
if (IType==0) {
|
||||
|
Reference in New Issue
Block a user