Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
BRepFeat_Gluer 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.
Glueing uses wires or edges of a face in the basis shape. These are
to become a part of the feature. They are first cut out and then
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 features can be constructed.
More...

#include <BRepFeat_Gluer.hxx>

Inheritance diagram for BRepFeat_Gluer:
Inheritance graph
[legend]

Public Member Functions

 BRepFeat_Gluer ()
 Initializes an empty constructor
More...
 
 BRepFeat_Gluer (const TopoDS_Shape &Snew, const TopoDS_Shape &Sbase)
 
 Initializes the shapes to be glued, the new shape <br>

Snew and the basis shape Sbase.
More...

 
void Init (const TopoDS_Shape &Snew, const TopoDS_Shape &Sbase)
 
 Initializes the new shape Snew and the basis shape <br>

Sbase for the local glueing operation.
More...

 
void Bind (const TopoDS_Face &Fnew, const TopoDS_Face &Fbase)
 
 Defines a contact between Fnew on the new shape <br>

Snew and Fbase on the basis shape Sbase. Informs
other methods that Fnew in the new shape Snew is
connected to the face Fbase in the basis shape Sbase.
The contact faces of the glued shape must not have
parts outside the contact faces of the basis shape.
This indicates that glueing is possible.
More...

 
void Bind (const TopoDS_Edge &Enew, const TopoDS_Edge &Ebase)
 
 nforms other methods that the edge Enew in the new <br>

shape is the same as the edge Ebase in the basis
shape and is therefore attached to the basis shape. This
indicates that glueing is possible.
More...

 
LocOpe_Operation OpeType () const
 Determine which operation type to use glueing or sliding.
More...
 
const TopoDS_ShapeBasisShape () const
 Returns the basis shape of the compound shape.
More...
 
const TopoDS_ShapeGluedShape () const
 Returns the resulting compound shape.
More...
 
virtual void Build ()
 This is called by Shape(). It does nothing but
may be redefined.
More...
 
virtual Standard_Boolean IsDeleted (const TopoDS_Shape &F)
 returns the status of the Face after
the shape creation.
More...
 
virtual const
TopTools_ListOfShape
Modified (const TopoDS_Shape &F)
 returns the list of generated Faces.
More...
 
- Public Member Functions inherited from BRepBuilderAPI_MakeShape
virtual void Delete ()
 
virtual ~BRepBuilderAPI_MakeShape ()
 
const TopoDS_ShapeShape () const
 
 Returns a shape built by the shape construction algorithm. <br>

Raises exception StdFail_NotDone if the shape was not built.
More...

 
 operator TopoDS_Shape () const
 
virtual const
TopTools_ListOfShape
Generated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the
shape <S>.
More...
 
- Public Member Functions inherited from BRepBuilderAPI_Command
virtual ~BRepBuilderAPI_Command ()
 
virtual Standard_Boolean IsDone () const
 
void Check () const
 Raises NotDone if done is false.
More...
 

Additional Inherited Members

- Protected Member Functions inherited from BRepBuilderAPI_MakeShape
 BRepBuilderAPI_MakeShape ()
 
- Protected Member Functions inherited from BRepBuilderAPI_Command
 BRepBuilderAPI_Command ()
 Set done to False.
More...
 
void Done ()
 Set done to true.
More...
 
void NotDone ()
 Set done to false.
More...
 
- Protected Attributes inherited from BRepBuilderAPI_MakeShape
TopoDS_Shape myShape
 
TopTools_ListOfShape myGenerated
 

Detailed Description

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.
Glueing uses wires or edges of a face in the basis shape. These are
to become a part of the feature. They are first cut out and then
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 features can be constructed.

Constructor & Destructor Documentation

BRepFeat_Gluer::BRepFeat_Gluer ( )

Initializes an empty constructor

BRepFeat_Gluer::BRepFeat_Gluer ( const TopoDS_Shape Snew,
const TopoDS_Shape Sbase 
)

 Initializes the shapes to be glued, the new shape <br>

Snew and the basis shape Sbase.

Member Function Documentation

const TopoDS_Shape& BRepFeat_Gluer::BasisShape ( ) const

Returns the basis shape of the compound shape.

void BRepFeat_Gluer::Bind ( const TopoDS_Face Fnew,
const TopoDS_Face Fbase 
)

 Defines a contact between Fnew on the new shape <br>

Snew and Fbase on the basis shape Sbase. Informs
other methods that Fnew in the new shape Snew is
connected to the face Fbase in the basis shape Sbase.
The contact faces of the glued shape must not have
parts outside the contact faces of the basis shape.
This indicates that glueing is possible.

void BRepFeat_Gluer::Bind ( const TopoDS_Edge Enew,
const TopoDS_Edge Ebase 
)

 nforms other methods that the edge Enew in the new <br>

shape is the same as the edge Ebase in the basis
shape and is therefore attached to the basis shape. This
indicates that glueing is possible.

virtual void BRepFeat_Gluer::Build ( )
virtual

This is called by Shape(). It does nothing but
may be redefined.

Reimplemented from BRepBuilderAPI_MakeShape.

const TopoDS_Shape& BRepFeat_Gluer::GluedShape ( ) const

Returns the resulting compound shape.

void BRepFeat_Gluer::Init ( const TopoDS_Shape Snew,
const TopoDS_Shape Sbase 
)

 Initializes the new shape Snew and the basis shape <br>

Sbase for the local glueing operation.

virtual Standard_Boolean BRepFeat_Gluer::IsDeleted ( const TopoDS_Shape F)
virtual

returns the status of the Face after
the shape creation.

Reimplemented from BRepBuilderAPI_MakeShape.

virtual const TopTools_ListOfShape& BRepFeat_Gluer::Modified ( const TopoDS_Shape F)
virtual

returns the list of generated Faces.

Reimplemented from BRepBuilderAPI_MakeShape.

LocOpe_Operation BRepFeat_Gluer::OpeType ( ) const

Determine which operation type to use glueing or sliding.


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