From 0794c042bda138cbfba26e45c44e6cfb5f8b150a Mon Sep 17 00:00:00 2001 From: ibs Date: Wed, 27 Nov 2013 17:11:25 +0400 Subject: [PATCH] 0024403: BRepBuilderAPI_Sewing should have get/set Context methods Methods to get/set context introduced --- src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cdl | 7 +++++++ src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) 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; +} + -- 2.20.1