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

ModelingAlgorithms
TKOffset
BRepOffsetAPI


BRepOffsetAPI_ThruSections Class Reference

Describes functions to build a loft. This is a shell or a
solid passing through a set of sections in a given
sequence. Usually sections are wires, but the first and
the last sections may be vertices (punctual sections).
.

#include <BRepOffsetAPI_ThruSections.hxx>

Inheritance diagram for BRepOffsetAPI_ThruSections:

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_ThruSections (const Standard_Boolean isSolid=Standard_False, const Standard_Boolean ruled=Standard_False, const Standard_Real pres3d=1.0e-06)
 Initializes an algorithm for building a shell or a solid
passing through a set of sections, where:
- isSolid is set to true if the construction algorithm is
required to build a solid or to false if it is required to build
a shell (the default value),
- ruled is set to true if the faces generated between
the edges of two consecutive wires are ruled surfaces or to
false (the default value) if they are smoothed out by approximation,
- pres3d defines the precision criterion used by the
approximation algorithm; the default value is 1.0e-6.
Use AddWire and AddVertex to define the
successive sections of the shell or solid to be built.
.
Standard_EXPORT void Init (const Standard_Boolean isSolid=Standard_False, const Standard_Boolean ruled=Standard_False, const Standard_Real pres3d=1.0e-06)
 Initializes this algorithm for building a shell or a solid
passing through a set of sections, where:
- isSolid is set to true if this construction algorithm is
required to build a solid or to false if it is required to
build a shell. false is the default value;
- ruled is set to true if the faces generated between the
edges of two consecutive wires are ruled surfaces or
to false (the default value) if they are smoothed out by approximation,
- pres3d defines the precision criterion used by the
approximation algorithm; the default value is 1.0e-6.
Use AddWire and AddVertex to define the successive
sections of the shell or solid to be built.
.
Standard_EXPORT void AddWire (const TopoDS_Wire &wire)
 Adds the wire wire to the set of
sections through which the shell or solid is built.
Use the Build function to construct the shape.
.
Standard_EXPORT void AddVertex (const TopoDS_Vertex &aVertex)
 Adds the vertex Vertex (punctual section) to the set of sections
through which the shell or solid is built. A vertex may be added to the
set of sections only as first or last section. At least one wire
must be added to the set of sections by the method AddWire.
Use the Build function to construct the shape.
.
Standard_EXPORT void CheckCompatibility (const Standard_Boolean check=Standard_True)
virtual Standard_EXPORT void Build ()
 This is called by Shape(). It does nothing but
may be redefined.
.
Standard_EXPORT const TopoDS_Shape & FirstShape () const
 Returns the TopoDS Shape of the bottom of the loft if solid
.
Standard_EXPORT const TopoDS_Shape & LastShape () const
 Returns the TopoDS Shape of the top of the loft if solid
.
Standard_EXPORT TopoDS_Shape GeneratedFace (const TopoDS_Shape &Edge) const
 if Ruled
Returns the Face generated by each edge
except the last wire
if smoothed
Returns the Face generated by each edge of the first wire


Private Member Functions

Standard_EXPORT void CreateRuled ()
Standard_EXPORT void CreateSmoothed ()

Private Attributes

TopTools_SequenceOfShape myWires
Standard_Boolean myIsSolid
Standard_Boolean myIsRuled
Standard_Boolean myWCheck
Standard_Real myPres3d
TopoDS_Face myFirst
TopoDS_Face myLast
TopTools_DataMapOfShapeShape myGenerated

Constructor & Destructor Documentation

Standard_EXPORT BRepOffsetAPI_ThruSections::BRepOffsetAPI_ThruSections const Standard_Boolean  isSolid = Standard_False,
const Standard_Boolean  ruled = Standard_False,
const Standard_Real  pres3d = 1.0e-06
 


Member Function Documentation

Standard_EXPORT void BRepOffsetAPI_ThruSections::AddVertex const TopoDS_Vertex &  aVertex  ) 
 

Standard_EXPORT void BRepOffsetAPI_ThruSections::AddWire const TopoDS_Wire &  wire  ) 
 

virtual Standard_EXPORT void BRepOffsetAPI_ThruSections::Build  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_EXPORT void BRepOffsetAPI_ThruSections::CheckCompatibility const Standard_Boolean  check = Standard_True  ) 
 

Standard_EXPORT void BRepOffsetAPI_ThruSections::CreateRuled  )  [private]
 

Standard_EXPORT void BRepOffsetAPI_ThruSections::CreateSmoothed  )  [private]
 

Standard_EXPORT const TopoDS_Shape& BRepOffsetAPI_ThruSections::FirstShape  )  const
 

Standard_EXPORT TopoDS_Shape BRepOffsetAPI_ThruSections::GeneratedFace const TopoDS_Shape &  Edge  )  const
 

Standard_EXPORT void BRepOffsetAPI_ThruSections::Init const Standard_Boolean  isSolid = Standard_False,
const Standard_Boolean  ruled = Standard_False,
const Standard_Real  pres3d = 1.0e-06
 

Standard_EXPORT const TopoDS_Shape& BRepOffsetAPI_ThruSections::LastShape  )  const
 

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

Reimplemented from BRepBuilderAPI_MakeShape.

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

Reimplemented from BRepBuilderAPI_MakeShape.

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

Reimplemented from BRepBuilderAPI_MakeShape.


Field Documentation

TopoDS_Face BRepOffsetAPI_ThruSections::myFirst [private]
 

TopTools_DataMapOfShapeShape BRepOffsetAPI_ThruSections::myGenerated [private]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Standard_Boolean BRepOffsetAPI_ThruSections::myIsRuled [private]
 

Standard_Boolean BRepOffsetAPI_ThruSections::myIsSolid [private]
 

TopoDS_Face BRepOffsetAPI_ThruSections::myLast [private]
 

Standard_Real BRepOffsetAPI_ThruSections::myPres3d [private]
 

Standard_Boolean BRepOffsetAPI_ThruSections::myWCheck [private]
 

TopTools_SequenceOfShape BRepOffsetAPI_ThruSections::myWires [private]
 


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