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

ModelingAlgorithms
TKOffset
BRepOffsetAPI


BRepOffsetAPI_MakeOffset Class Reference

Describes algorithms for offsetting wires from a set of
wires contained in a planar face.
A MakeOffset object provides a framework for:
- defining the construction of an offset,
- implementing the construction algorithm, and
- consulting the result.
.

#include <BRepOffsetAPI_MakeOffset.hxx>

Inheritance diagram for BRepOffsetAPI_MakeOffset:

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_MakeOffset ()
 Constructs an algorithm for creating an empty offset
.
Standard_EXPORT BRepOffsetAPI_MakeOffset (const TopoDS_Face &Spine, const GeomAbs_JoinType Join=GeomAbs_Arc)
 Constructs an algorithm for creating an algorithm
to build parallels to the spine Spine
.
Standard_EXPORT void Init (const TopoDS_Face &Spine, const GeomAbs_JoinType Join=GeomAbs_Arc)
 Initializes the algorithm to construct parallels to the spine Spine.
Join defines the type of parallel generated by the
salient vertices of the spine. The default type is
GeomAbs_Arc where the vertices generate sections
of a circle. At present, this is the only construction type implemented.
.
Standard_EXPORT BRepOffsetAPI_MakeOffset (const TopoDS_Wire &Spine, const GeomAbs_JoinType Join=GeomAbs_Arc)
Standard_EXPORT void Init (const GeomAbs_JoinType Join=GeomAbs_Arc)
 Initialize the evaluation of Offseting.
.
Standard_EXPORT void AddWire (const TopoDS_Wire &Spine)
 Initializes the algorithm to construct parallels to the wire Spine.
.
Standard_EXPORT void Perform (const Standard_Real Offset, const Standard_Real Alt=0.0)
 Computes a parallel to the spine at distance Offset and
at an altitude Alt from the plane of the spine in relation
to the normal to the spine.
Exceptions: Standard_ConstructionError if the offset is not built.
.
virtual Standard_EXPORT void Build ()
 Builds the resulting shape (redefined from MakeShape).
.
virtual Standard_EXPORT const
TopTools_ListOfShape & 
Generated (const TopoDS_Shape &S)
 returns a list of the created shapes
from the shape <s>.


Private Attributes

Standard_Boolean myIsInitialized
Standard_Boolean myLastIsLeft
GeomAbs_JoinType myJoin
TopoDS_Face myFace
TopTools_ListOfShape myWires
BRepFill_ListOfOffsetWire myLeft
BRepFill_ListOfOffsetWire myRight

Constructor & Destructor Documentation

Standard_EXPORT BRepOffsetAPI_MakeOffset::BRepOffsetAPI_MakeOffset  ) 
 

Standard_EXPORT BRepOffsetAPI_MakeOffset::BRepOffsetAPI_MakeOffset const TopoDS_Face &  Spine,
const GeomAbs_JoinType  Join = GeomAbs_Arc
 

Standard_EXPORT BRepOffsetAPI_MakeOffset::BRepOffsetAPI_MakeOffset const TopoDS_Wire &  Spine,
const GeomAbs_JoinType  Join = GeomAbs_Arc
 


Member Function Documentation

Standard_EXPORT void BRepOffsetAPI_MakeOffset::AddWire const TopoDS_Wire &  Spine  ) 
 

virtual Standard_EXPORT void BRepOffsetAPI_MakeOffset::Build  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

virtual Standard_EXPORT const TopTools_ListOfShape& BRepOffsetAPI_MakeOffset::Generated const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT void BRepOffsetAPI_MakeOffset::Init const GeomAbs_JoinType  Join = GeomAbs_Arc  ) 
 

Standard_EXPORT void BRepOffsetAPI_MakeOffset::Init const TopoDS_Face &  Spine,
const GeomAbs_JoinType  Join = GeomAbs_Arc
 

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

Reimplemented from BRepBuilderAPI_MakeShape.

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

Reimplemented from BRepBuilderAPI_MakeShape.

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

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT void BRepOffsetAPI_MakeOffset::Perform const Standard_Real  Offset,
const Standard_Real  Alt = 0.0
 


Field Documentation

TopoDS_Face BRepOffsetAPI_MakeOffset::myFace [private]
 

Standard_Boolean BRepOffsetAPI_MakeOffset::myIsInitialized [private]
 

GeomAbs_JoinType BRepOffsetAPI_MakeOffset::myJoin [private]
 

Standard_Boolean BRepOffsetAPI_MakeOffset::myLastIsLeft [private]
 

BRepFill_ListOfOffsetWire BRepOffsetAPI_MakeOffset::myLeft [private]
 

BRepFill_ListOfOffsetWire BRepOffsetAPI_MakeOffset::myRight [private]
 

TopTools_ListOfShape BRepOffsetAPI_MakeOffset::myWires [private]
 


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