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

ModelingAlgorithms
TKOffset
BRepOffsetAPI


BRepOffsetAPI_MakeThickSolid Class Reference

Describes functions to build hollowed solids.
A hollowed solid is built from an initial solid and a set of
faces on this solid, which are to be removed. The
remaining faces of the solid become the walls of the
hollowed solid, their thickness defined at the time of construction.
the solid is built from an initial
solid <s> and a set of faces {Fi} from <s>,
builds a solid composed by two shells closed by
the {Fi}. First shell <ss> is composed by all
the faces of <s> expected {Fi}. Second shell is
the offset shell of <ss>.
A MakeThickSolid object provides a framework for:
- defining the cross-section of a hollowed solid,
- implementing the construction algorithm, and
- consulting the result.
.

#include <BRepOffsetAPI_MakeThickSolid.hxx>

Inheritance diagram for BRepOffsetAPI_MakeThickSolid:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepOffsetAPI_MakeThickSolid ()
Standard_EXPORT BRepOffsetAPI_MakeThickSolid (const TopoDS_Shape &S, const TopTools_ListOfShape &ClosingFaces, const Standard_Real Offset, const Standard_Real Tol, const BRepOffset_Mode Mode=BRepOffset_Skin, const Standard_Boolean Intersection=Standard_False, const Standard_Boolean SelfInter=Standard_False, const GeomAbs_JoinType Join=GeomAbs_Arc)
 Constructs a hollowed solid from
the solid S by removing the set of faces ClosingFaces from S, where:
Offset defines the thickness of the walls. Its sign indicates
which side of the surface of the solid the hollowed shape is built on;
· Tol defines the tolerance criterion for coincidence in generated shapes;
· Mode defines the construction type of parallels applied to free
edges of shape S. Currently, only one construction type is
implemented, namely the one where the free edges do not generate
parallels; this corresponds to the default value BRepOffset_Skin;
Intersection specifies how the algorithm must work in order to
limit the parallels to two adjacent shapes:
· if Intersection is false (default value), the intersection
is calculated with the parallels to the two adjacent shapes,
· if Intersection is true, the intersection is calculated by
taking account of all parallels generated; this computation
method is more general as it avoids self-intersections
generated in the offset shape from features of small dimensions
on shape S, however this method has not been completely
implemented and therefore is not recommended for use;
· SelfInter tells the algorithm whether a computation to
eliminate self-intersections needs to be applied to the
resulting shape. However, as this functionality is not yet
implemented, you should use the default value (false);
· Join defines how to fill the holes that may appear between
parallels to the two adjacent faces. It may take values
GeomAbs_Arc or GeomAbs_Intersection:
- if Join is equal to GeomAbs_Arc, then pipes are generated
between two free edges of two adjacent parallels,
and spheres are generated on "images" of vertices;
it is the default value,
- if Join is equal to GeomAbs_Intersection,
then the parallels to the two adjacent faces are
enlarged and intersected, so that there are no free
edges on parallels to faces.
Warnings
Since the algorithm of MakeThickSolid is based on
MakeOffsetShape algorithm, the warnings are the same as for
MakeOffsetShape.
.
virtual Standard_EXPORT void Build ()
 Builds the resulting shape (redefined from MakeOffsetShape).
.
virtual Standard_EXPORT const
TopTools_ListOfShape & 
Modified (const TopoDS_Shape &S)
 Returns the list of shapes modified from the shape
<s>.
.

Constructor & Destructor Documentation

Standard_EXPORT BRepOffsetAPI_MakeThickSolid::BRepOffsetAPI_MakeThickSolid  ) 
 

Standard_EXPORT BRepOffsetAPI_MakeThickSolid::BRepOffsetAPI_MakeThickSolid const TopoDS_Shape &  S,
const TopTools_ListOfShape &  ClosingFaces,
const Standard_Real  Offset,
const Standard_Real  Tol,
const BRepOffset_Mode  Mode = BRepOffset_Skin,
const Standard_Boolean  Intersection = Standard_False,
const Standard_Boolean  SelfInter = Standard_False,
const GeomAbs_JoinType  Join = GeomAbs_Arc
 


Member Function Documentation

virtual Standard_EXPORT void BRepOffsetAPI_MakeThickSolid::Build  )  [virtual]
 

Reimplemented from BRepOffsetAPI_MakeOffsetShape.

virtual Standard_EXPORT const TopTools_ListOfShape& BRepOffsetAPI_MakeThickSolid::Modified const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

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

Reimplemented from BRepOffsetAPI_MakeOffsetShape.

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

Reimplemented from BRepOffsetAPI_MakeOffsetShape.

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

Reimplemented from BRepOffsetAPI_MakeOffsetShape.


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