From: ibs Date: Wed, 27 Nov 2013 13:11:25 +0000 (+0400) Subject: 0024403: BRepBuilderAPI_Sewing should have get/set Context methods X-Git-Tag: V6_7_0~17 X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=commitdiff_plain;h=0794c042bda138cbfba26e45c44e6cfb5f8b150a 0024403: BRepBuilderAPI_Sewing should have get/set Context methods Methods to get/set context introduced --- diff --git a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cdl b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cdl index b04686613e..053c87f3fd 100755 --- a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cdl +++ b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cdl @@ -143,6 +143,13 @@ is ---Purpose: Gives the sewed shape -- a null shape if nothing constructed -- may be a face, a shell, a solid or a compound + + SetContext(me : mutable; theContext : ReShape from BRepTools); + ---Purpose: set context + + GetContext(me) returns ReShape from BRepTools; + ---C++: return const & + ---Purpose: return context NbFreeEdges(me) returns Integer; ---Purpose: Gives the number of free edges (edge shared by one face) diff --git a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx index dee8a5ce1b..1a8f1b12c6 100755 --- a/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx +++ b/src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx @@ -4725,3 +4725,22 @@ NCollection_CellFilter_Action BRepBuilderAPI_VertexInspector::Inspect (const Sta myResInd.Append (theTarget); return CellFilter_Keep; } + +//======================================================================= +//function : Context +//purpose : +//======================================================================= +const Handle(BRepTools_ReShape)& BRepBuilderAPI_Sewing::GetContext() const +{ + return myReShape; +} + +//======================================================================= +//function : SetContext +//purpose : +//======================================================================= +void BRepBuilderAPI_Sewing::SetContext(const Handle(BRepTools_ReShape)& theContext) +{ + myReShape = theContext; +} +