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

0023625: New functionality building reflect lines on a shape

Adding test case for this fix; Small corrections
This commit is contained in:
jgv
2013-07-12 12:24:21 +04:00
parent 97acf541ac
commit bda8360543
25 changed files with 715 additions and 41 deletions

View File

@@ -528,6 +528,13 @@ is
raises
NullObject from Standard; -- If the edge or the faces are null.
HasContinuity(myclass; E : Edge from TopoDS)
returns Boolean
---Purpose: Returns True if the edge has regularity on some
-- two surfaces
raises
NullObject from Standard; -- If the edge is null.
-----------------------------------------------------------
-----------------------------------------------------------

View File

@@ -1117,6 +1117,25 @@ GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E,
return GeomAbs_C0;
}
//=======================================================================
//function : HasContinuity
//purpose : Returns True if the edge is on some two surfaces.
//=======================================================================
Standard_Boolean BRep_Tool::HasContinuity(const TopoDS_Edge& E)
{
BRep_ListIteratorOfListOfCurveRepresentation itcr
((*((Handle(BRep_TEdge)*)&E.TShape()))->Curves());
for (; itcr.More(); itcr.Next())
{
const Handle(BRep_CurveRepresentation)& CR = itcr.Value();
if (CR->IsRegularity())
return Standard_True;
}
return Standard_False;
}
//=======================================================================
//function : Pnt
//purpose : Returns the 3d point.