Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
ShapeUpgrade_ShapeDivide Class Reference

Divides a all faces in shell with given criteria Shell.

#include <ShapeUpgrade_ShapeDivide.hxx>

Inheritance diagram for ShapeUpgrade_ShapeDivide:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC ShapeUpgrade_ShapeDivide ()
 ShapeUpgrade_ShapeDivide (const TopoDS_Shape &S)
 Initialize by a Shape.

void Init (const TopoDS_Shape &S)
 Initialize by a Shape.

virtual void Delete ()
virtual ~ShapeUpgrade_ShapeDivide ()
void SetPrecision (const Standard_Real Prec)
 Defines the spatial precision used for splitting

void SetMaxTolerance (const Standard_Real maxtol)
 Sets maximal allowed tolerance

void SetMinTolerance (const Standard_Real mintol)
 Sets minimal allowed tolerance

void SetSurfaceSegmentMode (const Standard_Boolean Segment)
 Purpose sets mode for trimming (segment) surface by
wire UV bounds.

virtual Standard_Boolean Perform (const Standard_Boolean newContext=Standard_True)
 Performs splitting and computes the resulting shape
If newContext is True (default), the internal context
will be cleared at start, else previous substitutions
will be acting.

TopoDS_Shape Result () const
 Gives the resulting Shape, or Null shape if not done.

Handle_ShapeBuild_ReShape GetContext () const
 Returns context with all the modifications made during
last call(s) to Perform() recorded

void SetContext (const Handle< ShapeBuild_ReShape > &context)
 Sets context with recorded modifications to be applied
during next call(s) to Perform(shape,Standard_False)

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
FAIL1: some errors occured

void SetSplitFaceTool (const Handle< ShapeUpgrade_FaceDivide > &splitFaceTool)
 Sets the tool for splitting faces.

void SetEdgeMode (const Standard_Integer aEdgeMode)
 Sets mode for splitting 3d curves from edges.
0 - only curve 3d from free edges.
1 - only curve 3d from shared edges.
2 - all curve 3d.

Protected Member Functions

virtual
Handle_ShapeUpgrade_FaceDivide 
GetSplitFaceTool () const
 Returns the tool for splitting faces.

Protected Attributes

Handle_ShapeBuild_ReShape myContext
TopoDS_Shape myShape
TopoDS_Shape myResult
Standard_Real myPrecision
Standard_Real myMinTol
Standard_Real myMaxTol
Standard_Boolean mySegmentMode
Standard_Integer myStatus
Standard_Integer myEdgeMode

Constructor & Destructor Documentation


Member Function Documentation

virtual void ShapeUpgrade_ShapeDivide::Delete ( ) [virtual]
Handle_ShapeBuild_ReShape ShapeUpgrade_ShapeDivide::GetContext ( ) const
virtual Handle_ShapeUpgrade_FaceDivide ShapeUpgrade_ShapeDivide::GetSplitFaceTool ( ) const [protected, virtual]

Field Documentation

Handle_ShapeBuild_ReShape ShapeUpgrade_ShapeDivide::myContext [protected]

The documentation for this class was generated from the following file: