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

ModelingAlgorithms
TKFeat
BRepFeat


BRepFeat_SplitShape Class Reference

One of the most significant aspects of BRepFeat functionality is the use of local
operations as opposed to global ones. In a global operation, you would first construct a
form of the type you wanted in your final feature, and then remove matter so that it could
fit into your initial basis object. In a local operation, however, you specify the domain of
the feature construction with aspects of the shape on which the feature is being created.
These semantics are expressed in terms of a member shape of the basis shape from which -
or up to which - matter will be added or removed. As a result, local operations make
calculations simpler and faster than global operations.
In BRepFeat, the semantics of local operations define features constructed from a contour or a
part of the basis shape referred to as the tool. In a SplitShape object, wires or edges of a
face in the basis shape to be used as a part of the feature are cut out and projected to a plane
outside or inside the basis shape. By rebuilding the initial shape incorporating the edges and
the faces of the tool, protrusion or depression features can be constructed.
.

#include <BRepFeat_SplitShape.hxx>

Inheritance diagram for BRepFeat_SplitShape:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
 BRepFeat_SplitShape ()
 Empty constructor
.
 BRepFeat_SplitShape (const TopoDS_Shape &S)
 Creates the process with the shape <s>.
.
void Init (const TopoDS_Shape &S)
 Initializes the process on the shape <s>.
.
void Add (const TopoDS_Wire &W, const TopoDS_Face &F)
 Adds the wire <w> on the face <f>.
Raises NoSuchObject if <f> does not belong to the original shape.
.
void Add (const TopoDS_Edge &E, const TopoDS_Face &F)
 Adds the edge <e> on the face <f>.
.
void Add (const TopoDS_Edge &E, const TopoDS_Edge &EOn)
 Adds the edge <e> on the existing edge <eon>.
.
Standard_EXPORT const TopTools_ListOfShape & DirectLeft () const
 Returns the faces which are the left of the
projected wires.
.
Standard_EXPORT const TopTools_ListOfShape & Left () const
 Returns the faces of the "left" part on the shape.
(It is build from DirectLeft, with the faces
connected to this set, and so on...).
Raises NotDone if IsDone returns <standard_false>.
.
Standard_EXPORT void Build ()
 Builds the cut and the resulting faces and edges as well.
.
virtual Standard_EXPORT Standard_Boolean IsDeleted (const TopoDS_Shape &S)
 Returns true if the shape has been deleted.
.
Standard_EXPORT const TopTools_ListOfShape & Modified (const TopoDS_Shape &F)
 Returns the list of generated Faces.
.

Private Attributes

LocOpe_Spliter mySShape
Handle_LocOpe_WiresOnShape myWOnShape

Constructor & Destructor Documentation

BRepFeat_SplitShape::BRepFeat_SplitShape  )  [inline]
 

BRepFeat_SplitShape::BRepFeat_SplitShape const TopoDS_Shape &  S  )  [inline]
 


Member Function Documentation

void BRepFeat_SplitShape::Add const TopoDS_Edge &  E,
const TopoDS_Edge &  EOn
[inline]
 

void BRepFeat_SplitShape::Add const TopoDS_Edge &  E,
const TopoDS_Face &  F
[inline]
 

void BRepFeat_SplitShape::Add const TopoDS_Wire &  W,
const TopoDS_Face &  F
[inline]
 

Standard_EXPORT void BRepFeat_SplitShape::Build  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT const TopTools_ListOfShape& BRepFeat_SplitShape::DirectLeft  )  const
 

void BRepFeat_SplitShape::Init const TopoDS_Shape &  S  )  [inline]
 

virtual Standard_EXPORT Standard_Boolean BRepFeat_SplitShape::IsDeleted const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT const TopTools_ListOfShape& BRepFeat_SplitShape::Left  )  const
 

Standard_EXPORT const TopTools_ListOfShape& BRepFeat_SplitShape::Modified const TopoDS_Shape &  F  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

void BRepFeat_SplitShape::operator delete void *  anAddress  )  [inline]
 

Reimplemented from BRepBuilderAPI_MakeShape.

void* BRepFeat_SplitShape::operator new size_t  size  )  [inline]
 

Reimplemented from BRepBuilderAPI_MakeShape.

void* BRepFeat_SplitShape::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from BRepBuilderAPI_MakeShape.


Field Documentation

LocOpe_Spliter BRepFeat_SplitShape::mySShape [private]
 

Handle_LocOpe_WiresOnShape BRepFeat_SplitShape::myWOnShape [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:41:15 2008 for OpenCASCADE by  doxygen 1.4.1