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

ModelingAlgorithms
TKFeat
BRepFeat


BRepFeat Class Reference

BRepFeat is necessary for the
creation and manipulation of both form and mechanical features in a
Boundary Representation framework. Form features can be depressions or
protrusions and include the following types:
- Cylinder
- Draft Prism
- Prism
- Revolved feature
- Pipe
Depending on whether you wish to make a depression or a protrusion,
you can choose your operation type between the following:
- removing matter (a Boolean cut: Fuse setting 0)
- adding matter (Boolean fusion: Fuse setting 1)
The semantics of form feature creation is based on the
construction of shapes:
- for a certain length in a certain direction
- up to a limiting face
- from a limiting face at a height
- above and/or below a plane
The shape defining the construction of a feature can be either a
supporting edge or a concerned area of a face.
In case of supporting edge, this contour can be attached to a face
of the basis shape by binding. When the contour is bound to this face,
the information that the contour will slide on the face becomes
available to the relevant class methods. In case of the concerned
area of a face, you could, for example, cut it out and move it at
a different height, which will define the limiting face of a
protrusion or depression. Topological definition with local
operations of this sort makes calculations simpler and faster
than a global operation. The latter would entail a second phase of
removing unwanted matter to get the same result.
Mechanical features include ribs - protrusions - and grooves (or
slots) - depressions along planar (linear) surfaces or revolution surfaces.
The semantics of mechanical features is based on giving
thickness to a contour. This thickness can either be unilateral
- on one side of the contour - or bilateral - on both sides. As in
the semantics of form features, the thickness is defined by
construction of shapes in specific contexts.
However, in case of mechanical features, development contexts
differ. Here they include extrusion:
- to a limiting face of the basis shape
- to or from a limiting plane
- to a height.
.

#include <BRepFeat.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)

Static Public Member Functions

static Standard_EXPORT void SampleEdges (const TopoDS_Shape &S, TColgp_SequenceOfPnt &Pt)
static Standard_EXPORT void Barycenter (const TopoDS_Shape &S, gp_Pnt &Pt)
static Standard_EXPORT Standard_Real ParametricBarycenter (const TopoDS_Shape &S, const Handle(Geom_Curve)&C)
static Standard_EXPORT void ParametricMinMax (const TopoDS_Shape &S, const Handle(Geom_Curve)&C, Standard_Real &prmin, Standard_Real &prmax, Standard_Real &prbmin, Standard_Real &prbmax, Standard_Boolean &flag, const Standard_Boolean Ori=Standard_False)
 Ori = True taking account the orientation
.
static Standard_EXPORT Standard_Boolean IsInside (const TopoDS_Face &F1, const TopoDS_Face &F2)
static Standard_EXPORT Standard_Boolean IsInOut (const BRepTopAdaptor_FClass2d &FC, const Geom2dAdaptor_Curve &AC)
static Standard_EXPORT void FaceUntil (const TopoDS_Shape &S, TopoDS_Face &F)
static Standard_EXPORT TopoDS_Solid Tool (const TopoDS_Shape &SRef, const TopoDS_Face &Fac, const TopAbs_Orientation Orf)
static Standard_EXPORT Standard_OStream & Print (const BRepFeat_StatusError SE, Standard_OStream &S)
 Prints the Error description of the State <st> as a String on
the Stream <s> and returns <s>.

.


Member Function Documentation

static Standard_EXPORT void BRepFeat::Barycenter const TopoDS_Shape &  S,
gp_Pnt &  Pt
[static]
 

static Standard_EXPORT void BRepFeat::FaceUntil const TopoDS_Shape &  S,
TopoDS_Face &  F
[static]
 

static Standard_EXPORT Standard_Boolean BRepFeat::IsInOut const BRepTopAdaptor_FClass2d FC,
const Geom2dAdaptor_Curve &  AC
[static]
 

static Standard_EXPORT Standard_Boolean BRepFeat::IsInside const TopoDS_Face &  F1,
const TopoDS_Face &  F2
[static]
 

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

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

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

static Standard_EXPORT Standard_Real BRepFeat::ParametricBarycenter const TopoDS_Shape &  S,
const Handle(Geom_Curve)&  C
[static]
 

static Standard_EXPORT void BRepFeat::ParametricMinMax const TopoDS_Shape &  S,
const Handle(Geom_Curve)&  C,
Standard_Real &  prmin,
Standard_Real &  prmax,
Standard_Real &  prbmin,
Standard_Real &  prbmax,
Standard_Boolean flag,
const Standard_Boolean  Ori = Standard_False
[static]
 

static Standard_EXPORT Standard_OStream& BRepFeat::Print const BRepFeat_StatusError  SE,
Standard_OStream &  S
[static]
 

static Standard_EXPORT void BRepFeat::SampleEdges const TopoDS_Shape &  S,
TColgp_SequenceOfPnt &  Pt
[static]
 

static Standard_EXPORT TopoDS_Solid BRepFeat::Tool const TopoDS_Shape &  SRef,
const TopoDS_Face &  Fac,
const TopAbs_Orientation  Orf
[static]
 


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