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

ModelingAlgorithms
TKFeat
BRepFeat


BRepFeat_LocalOperation 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.
.

#include <BRepFeat_LocalOperation.hxx>

Inheritance diagram for BRepFeat_LocalOperation:

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_LocalOperation ()
 Builds the framework to store the topological shape
which is to be created by the local operation.
Initializes the empty constructor.
.
 BRepFeat_LocalOperation (const TopoDS_Shape &S)
 Builds the framework to store the topological shape
which is to be created by the local operation.
Initializes shape S for a local operation.
The exception ConstructionError is raised if <s> is a null shape.
.
 BRepFeat_LocalOperation (const TopoDS_Shape &S1, const TopoDS_Shape &S2)
 Builds the framework to store the topological shape
which is to be created by the local operation.
Initializes S1 and S2 for a local operation.
The exception ConstructionError is raised if <s> is a null shape.
.
void Perform (const TopoDS_Shape &T, const TopTools_ListOfShape &L, const Standard_Boolean Fuse)
 Performs the local operation on the formerly given
shape, with the tool <t>. <l> defines a set of
faces of the shape. The list may not be empty.
The boolean <fuse> gives the type of operation. If
set to Standard_True, the operation is a fusion.
If set to Standard_False, the operation is a
cutting one.

The Perform process stops just before constructing
any result in order to authorize the selection of
parts of the tool. After a call to Perform, it is
possible to call BuilPartsOfTool, then
RemovePart/ActivatePart to select valid parts, and
it is necessary to call PerformResult to get any
result.
.
void Perform (const TopTools_ListOfShape &LShape, const TopTools_ListOfShape &LTool, const Standard_Boolean Fuse)
 Performs the local operation on the formerly given
shape and tool. <lshape> defines a set of faces
of the shape, <ltool> a set of faces of the tool.
The boolean <fuse> gives the type of operation.
If set to Standard_True, the operation is a
fusion. If set to Standard_False, the operation
is a cutting one. If <lshape> (resp. <ltool>) is
empty, the whole shape (resp. tool) is used.

The Perform process stops just before constructing
any result in order to authorize the selection of
parts of the tool. After a call to Perform, it is
possible to call BuilPartsOfTool, then
RemovePart/ActivatePart to select valid parts, and
it is necessary to call PerformResult to get any
result.
.
void BuildPartsOfTool ()
 Constructs the primitive which serves as the tool for the
feature construction. Gives faces concerned by the
construction and builds by performing one of the
Boolean operations on the two intersecting shapes.
Raises NotDone from StdFail if no call to Perform has been done.
.
const TopTools_ListOfShape & PartsOfTool () const
 Returns the list of the parts of tool. Each of
these parts is a TopoDS_Shell.
Raises NotDone if no call to BuildPartsOfTool has been done.
.
void RemovePart (const TopoDS_Shape &S)
 Removes <s> from the list of valid parts of tool.
Raises NotDone if no call to BuildPartsOfTool has
been done.
.
void ActivatePart (const TopoDS_Shape &S)
 By default, all tool parts are valid for the local operation.
This method removes <s> from the list of invalid parts of
tool. By default, all parts of tool are valid for
the local operation.
.
virtual Standard_EXPORT void Build ()
 Builds the resulting shape (redefined from
MakeShape). Invalidates the given parts of tools
if any, and performs the result of the local
operation.
.

Constructor & Destructor Documentation

BRepFeat_LocalOperation::BRepFeat_LocalOperation  )  [inline]
 

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

BRepFeat_LocalOperation::BRepFeat_LocalOperation const TopoDS_Shape &  S1,
const TopoDS_Shape &  S2
[inline]
 


Member Function Documentation

void BRepFeat_LocalOperation::ActivatePart const TopoDS_Shape &  S  )  [inline]
 

virtual Standard_EXPORT void BRepFeat_LocalOperation::Build  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

void BRepFeat_LocalOperation::BuildPartsOfTool  )  [inline]
 

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

Reimplemented from BRepFeat_Builder.

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

Reimplemented from BRepFeat_Builder.

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

Reimplemented from BRepFeat_Builder.

const TopTools_ListOfShape & BRepFeat_LocalOperation::PartsOfTool  )  const [inline]
 

void BRepFeat_LocalOperation::Perform const TopTools_ListOfShape &  LShape,
const TopTools_ListOfShape &  LTool,
const Standard_Boolean  Fuse
[inline]
 

void BRepFeat_LocalOperation::Perform const TopoDS_Shape &  T,
const TopTools_ListOfShape &  L,
const Standard_Boolean  Fuse
[inline]
 

void BRepFeat_LocalOperation::RemovePart const TopoDS_Shape &  S  )  [inline]
 


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