mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030940: BRepFilletAPI_MakeFillet algorithm fails on closed shell
1. Add check of configuration of corner in the end of spine. 2. Correct treatment of "smooth corners".
This commit is contained in:
@@ -1068,4 +1068,21 @@ Standard_Real BRepTools::EvalAndUpdateTol(const TopoDS_Edge& theE,
|
||||
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : OriEdgeInFace
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
TopAbs_Orientation BRepTools::OriEdgeInFace (const TopoDS_Edge& E,
|
||||
const TopoDS_Face& F )
|
||||
|
||||
{
|
||||
TopExp_Explorer Exp(F.Oriented(TopAbs_FORWARD),TopAbs_EDGE);
|
||||
|
||||
for (; Exp.More() ;Exp.Next()) {
|
||||
if (Exp.Current().IsSame(E)) {
|
||||
return Exp.Current().Orientation();
|
||||
}
|
||||
}
|
||||
throw Standard_ConstructionError("BRepTools::OriEdgeInFace");
|
||||
}
|
||||
|
@@ -223,6 +223,10 @@ public:
|
||||
const Standard_Real theF,
|
||||
const Standard_Real theL);
|
||||
|
||||
//! returns the cumul of the orientation of <Edge>
|
||||
//! and thc containing wire in <Face>
|
||||
Standard_EXPORT static TopAbs_Orientation OriEdgeInFace(const TopoDS_Edge& theEdge,
|
||||
const TopoDS_Face& theFace);
|
||||
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user