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

ModelingAlgorithms
TKFeat
LocOpe


LocOpe_SplitDrafts Class Reference

This class provides a tool to realize the
following operations on a shape :
- split a face of the shape with a wire,
- put draft angle on both side of the wire.
For each side, the draft angle may be different.
.

#include <LocOpe_SplitDrafts.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
 LocOpe_SplitDrafts ()
 Empty constructor.
.
 LocOpe_SplitDrafts (const TopoDS_Shape &S)
 Creates the algoritm on the shape <s>.
.
Standard_EXPORT void Init (const TopoDS_Shape &S)
 Initializes the algoritm with the shape <s>.
.
Standard_EXPORT void Perform (const TopoDS_Face &F, const TopoDS_Wire &W, const gp_Dir &Extractg, const gp_Pln &NPlg, const Standard_Real Angleg, const gp_Dir &Extractd, const gp_Pln &NPld, const Standard_Real Angled, const Standard_Boolean ModifyLeft=Standard_True, const Standard_Boolean ModifyRight=Standard_True)
 Splits the face <f> of the former given shape with
the wire <w>. The wire is assumed to lie on the
face. Puts a draft angle on both parts of the
wire. <extractg>, <nplg>, <angleg> define the
arguments for the left part of the wire.
<extractd>, <npld>, <angled> define the arguments
for the right part of the wire. The draft angle is
measured with the direction <extract>. <npl>
defines the neutral plane (points belonging to the
neutral plane are not modified). <angle> is the
value of the draft angle. If <modifyleft> is set
to <standard_false>, no draft angle is applied to
the left part of the wire. If <modifyright> is set
to <standard_false>,no draft angle is applied to
the right part of the wire.


.
Standard_EXPORT void Perform (const TopoDS_Face &F, const TopoDS_Wire &W, const gp_Dir &Extract, const gp_Pln &NPl, const Standard_Real Angle)
 Splits the face <f> of the former given shape with
the wire <w>. The wire is assumed to lie on the
face. Puts a draft angle on the left part of the
wire. The draft angle is measured with the
direction <extract>. <npl> defines the neutral
plane (points belonging to the neutral plane are
not modified). <angle> is the value of the draft
angle.
.
Standard_Boolean IsDone () const
 Returns <standard_true> if the modification has
been succesfully performed.
.
const TopoDS_Shape & OriginalShape () const
Standard_EXPORT const TopoDS_Shape & Shape () const
 Returns the modified shape.
.
Standard_EXPORT const TopTools_ListOfShape & ShapesFromShape (const TopoDS_Shape &S) const
 Manages the descendant shapes.
.

Private Attributes

TopoDS_Shape myShape
TopoDS_Shape myResult
TopTools_DataMapOfShapeListOfShape myMap


Constructor & Destructor Documentation

LocOpe_SplitDrafts::LocOpe_SplitDrafts  )  [inline]
 

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


Member Function Documentation

Standard_EXPORT void LocOpe_SplitDrafts::Init const TopoDS_Shape &  S  ) 
 

Standard_Boolean LocOpe_SplitDrafts::IsDone  )  const [inline]
 

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

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

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

const TopoDS_Shape & LocOpe_SplitDrafts::OriginalShape  )  const [inline]
 

Standard_EXPORT void LocOpe_SplitDrafts::Perform const TopoDS_Face &  F,
const TopoDS_Wire &  W,
const gp_Dir &  Extract,
const gp_Pln &  NPl,
const Standard_Real  Angle
 

Standard_EXPORT void LocOpe_SplitDrafts::Perform const TopoDS_Face &  F,
const TopoDS_Wire &  W,
const gp_Dir &  Extractg,
const gp_Pln &  NPlg,
const Standard_Real  Angleg,
const gp_Dir &  Extractd,
const gp_Pln &  NPld,
const Standard_Real  Angled,
const Standard_Boolean  ModifyLeft = Standard_True,
const Standard_Boolean  ModifyRight = Standard_True
 

Standard_EXPORT const TopoDS_Shape& LocOpe_SplitDrafts::Shape  )  const
 

Standard_EXPORT const TopTools_ListOfShape& LocOpe_SplitDrafts::ShapesFromShape const TopoDS_Shape &  S  )  const
 


Field Documentation

TopTools_DataMapOfShapeListOfShape LocOpe_SplitDrafts::myMap [private]
 

TopoDS_Shape LocOpe_SplitDrafts::myResult [private]
 

TopoDS_Shape LocOpe_SplitDrafts::myShape [private]
 


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