OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKShHealing
ShapeUpgrade


ShapeUpgrade_FaceDivide Class Reference

Divides a Face (both edges in the wires, by splitting
curves and pcurves, and the face itself, by splitting
supporting surface) according to splitting criteria.
* The domain of the face to divide is defined by the PCurves
of the wires on the Face.
.

#include <ShapeUpgrade_FaceDivide.hxx>

Inheritance diagram for ShapeUpgrade_FaceDivide:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT ShapeUpgrade_FaceDivide ()
 Creates empty constructor.
.
Standard_EXPORT ShapeUpgrade_FaceDivide (const TopoDS_Face &F)
 Initialize by a Face.
.
Standard_EXPORT void Init (const TopoDS_Face &F)
 Initialize by a Face.
.
Standard_EXPORT void SetSurfaceSegmentMode (const Standard_Boolean Segment)
 Purpose sets mode for trimming (segment) surface by
wire UV bounds.
.
virtual Standard_EXPORT Standard_Boolean Perform ()
 Performs splitting and computes the resulting shell
The context is used to keep track of former splittings
in order to keep sharings. It is updated according to
modifications made.
.
virtual Standard_EXPORT Standard_Boolean SplitSurface ()
 Performs splitting of surface and computes the shell
from source face.
.
virtual Standard_EXPORT Standard_Boolean SplitCurves ()
 Performs splitting of curves of all the edges in the
shape and divides these edges.
.
Standard_EXPORT TopoDS_Shape Result () const
 Gives the resulting Shell, or Face, or Null shape if not done.
.
Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const
 Queries the status of last call to Perform
OK : no splitting was done (or no call to Perform)
DONE1: some edges were splitted
DONE2: surface was splitted
DONE3: surface was modified without splitting
FAIL1: some fails encountered during splitting wires
FAIL2: face cannot be splitted
.
Standard_EXPORT void SetSplitSurfaceTool (const Handle(ShapeUpgrade_SplitSurface)&splitSurfaceTool)
 Sets the tool for splitting surfaces.
.
Standard_EXPORT void SetWireDivideTool (const Handle(ShapeUpgrade_WireDivide)&wireDivideTool)
 Sets the tool for dividing edges on Face.
.
virtual Standard_EXPORT Handle_ShapeUpgrade_WireDivide GetWireDivideTool () const
 Returns the tool for dividing edges on Face.
This tool must be already initialized.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Member Functions

virtual Standard_EXPORT Handle_ShapeUpgrade_SplitSurface GetSplitSurfaceTool () const
 Returns the tool for splitting surfaces.
This tool must be already initialized.
.

Protected Attributes

TopoDS_Face myFace
TopoDS_Shape myResult
Standard_Boolean mySegmentMode
Standard_Integer myStatus

Private Attributes

Handle_ShapeUpgrade_SplitSurface mySplitSurfaceTool
Handle_ShapeUpgrade_WireDivide myWireDivideTool

Constructor & Destructor Documentation

Standard_EXPORT ShapeUpgrade_FaceDivide::ShapeUpgrade_FaceDivide  ) 
 

Standard_EXPORT ShapeUpgrade_FaceDivide::ShapeUpgrade_FaceDivide const TopoDS_Face &  F  ) 
 


Member Function Documentation

virtual Standard_EXPORT Handle_ShapeUpgrade_SplitSurface ShapeUpgrade_FaceDivide::GetSplitSurfaceTool  )  const [protected, virtual]
 

virtual Standard_EXPORT Handle_ShapeUpgrade_WireDivide ShapeUpgrade_FaceDivide::GetWireDivideTool  )  const [virtual]
 

Standard_EXPORT const ShapeUpgrade_FaceDivide::Handle Standard_Type   )  const
 

Reimplemented from ShapeUpgrade_Tool.

Reimplemented in ShapeUpgrade_ClosedFaceDivide, and ShapeUpgrade_FaceDivideArea.

Standard_EXPORT void ShapeUpgrade_FaceDivide::Init const TopoDS_Face &  F  ) 
 

virtual Standard_EXPORT Standard_Boolean ShapeUpgrade_FaceDivide::Perform  )  [virtual]
 

Reimplemented in ShapeUpgrade_FaceDivideArea.

Standard_EXPORT TopoDS_Shape ShapeUpgrade_FaceDivide::Result  )  const
 

Standard_EXPORT void ShapeUpgrade_FaceDivide::SetSplitSurfaceTool const Handle(ShapeUpgrade_SplitSurface)&  splitSurfaceTool  ) 
 

Standard_EXPORT void ShapeUpgrade_FaceDivide::SetSurfaceSegmentMode const Standard_Boolean  Segment  ) 
 

Standard_EXPORT void ShapeUpgrade_FaceDivide::SetWireDivideTool const Handle(ShapeUpgrade_WireDivide)&  wireDivideTool  ) 
 

virtual Standard_EXPORT Standard_Boolean ShapeUpgrade_FaceDivide::SplitCurves  )  [virtual]
 

virtual Standard_EXPORT Standard_Boolean ShapeUpgrade_FaceDivide::SplitSurface  )  [virtual]
 

Reimplemented in ShapeUpgrade_ClosedFaceDivide.

Standard_EXPORT Standard_Boolean ShapeUpgrade_FaceDivide::Status const ShapeExtend_Status  status  )  const
 


Field Documentation

TopoDS_Face ShapeUpgrade_FaceDivide::myFace [protected]
 

TopoDS_Shape ShapeUpgrade_FaceDivide::myResult [protected]
 

Standard_Boolean ShapeUpgrade_FaceDivide::mySegmentMode [protected]
 

Handle_ShapeUpgrade_SplitSurface ShapeUpgrade_FaceDivide::mySplitSurfaceTool [private]
 

Standard_Integer ShapeUpgrade_FaceDivide::myStatus [protected]
 

Handle_ShapeUpgrade_WireDivide ShapeUpgrade_FaceDivide::myWireDivideTool [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:42:45 2008 for OpenCASCADE by  doxygen 1.4.1