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

ModelingAlgorithms
TKShHealing
ShapeAnalysis


ShapeAnalysis_FreeBounds Class Reference

This class is intended to output free bounds of the shape
(free bounds are the wires consisting of edges referenced by the
only face).
This class works on two distinct types of shapes when analyzing
their free bounds:
1. compound of faces.
Analyzer of sewing algorithm (BRepAlgo_Sewing) is used for
for forecasting free bounds that would be obtained after
performing sewing
2. compound of shells.
Actual free bounds (edges shared by the only face in the shell)
are output in this case. ShapeAnalysis_Shell is used for that.
.

#include <ShapeAnalysis_FreeBounds.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT ShapeAnalysis_FreeBounds ()
 Empty constructor
.
Standard_EXPORT ShapeAnalysis_FreeBounds (const TopoDS_Shape &shape, const Standard_Real toler, const Standard_Boolean splitclosed=Standard_False, const Standard_Boolean splitopen=Standard_True)
 Builds forecasting free bounds of the <shape>.
<shape> should be a compound of faces.
This constructor is to be used for forecasting free edges
with help of sewing analyzer BRepAlgo_Sewing which is called
with tolerance <toler>.
Free edges are connected into wires only when their ends are
at distance less than <toler>.
If <splitclosed> is True extracts closed sub-wires out of
built closed wires.
If <splitopen> is True extracts closed sub-wires out of
built open wires.
.
Standard_EXPORT ShapeAnalysis_FreeBounds (const TopoDS_Shape &shape, const Standard_Boolean splitclosed=Standard_False, const Standard_Boolean splitopen=Standard_True)
 Builds actual free bounds of the <shape>.
<shape> should be a compound of shells.
This constructor is to be used for getting free edges (ones
referenced by the only face) with help of analyzer
ShapeAnalysis_Shell.
Free edges are connected into wires only when they share the
same vertex.
If <splitclosed> is True extracts closed sub-wires out of
built closed wires.
If <splitopen> is True extracts closed sub-wires out of
built open wires.
.
const TopoDS_Compound & GetClosedWires () const
 Returns compound of closed wires out of free edges.
.
const TopoDS_Compound & GetOpenWires () const
 Returns compound of open wires out of free edges.
.

Static Public Member Functions

static Standard_EXPORT void ConnectEdgesToWires (Handle(TopTools_HSequenceOfShape)&edges, const Standard_Real toler, const Standard_Boolean shared, Handle(TopTools_HSequenceOfShape)&wires)
 Builds sequnce of <wires> out of sequence of not sorted
<edges>.
Tries to build wires of maximum length. Building a wire is
stopped when no edges can be connected to it at its head or
at its tail.
.
static Standard_EXPORT void ConnectWiresToWires (Handle(TopTools_HSequenceOfShape)&iwires, const Standard_Real toler, const Standard_Boolean shared, Handle(TopTools_HSequenceOfShape)&owires)
static Standard_EXPORT void ConnectWiresToWires (Handle(TopTools_HSequenceOfShape)&iwires, const Standard_Real toler, const Standard_Boolean shared, Handle(TopTools_HSequenceOfShape)&owires, TopTools_DataMapOfShapeShape &vertices)
 Builds sequnce of <owires> out of sequence of not sorted
<iwires>.
Tries to build wires of maximum length. Building a wire is
stopped when no wires can be connected to it at its head or
at its tail.
.
static Standard_EXPORT void SplitWires (const Handle(TopTools_HSequenceOfShape)&wires, const Standard_Real toler, const Standard_Boolean shared, Handle(TopTools_HSequenceOfShape)&closed, Handle(TopTools_HSequenceOfShape)&open)
 Extracts closed sub-wires out of <wires> and adds them
to <closed>, open wires remained after extraction are put
into <open>.
If <shared> is True extraction is performed only when
edges share the same vertex.
If <shared> is False connection is performed only when
ends of the edges are at distance less than <toler>.
.
static Standard_EXPORT void DispatchWires (const Handle(TopTools_HSequenceOfShape)&wires, TopoDS_Compound &closed, TopoDS_Compound &open)
 Dispatches sequence of <wires> into two compounds
<closed> for closed wires and <open> for open wires.
If a compound is not empty wires are added into it.
.

Private Member Functions

Standard_EXPORT void SplitWires ()

Private Attributes

TopoDS_Compound myWires
TopoDS_Compound myEdges
Standard_Real myTolerance
Standard_Boolean myShared
Standard_Boolean mySplitClosed
Standard_Boolean mySplitOpen


Constructor & Destructor Documentation

Standard_EXPORT ShapeAnalysis_FreeBounds::ShapeAnalysis_FreeBounds  ) 
 

Standard_EXPORT ShapeAnalysis_FreeBounds::ShapeAnalysis_FreeBounds const TopoDS_Shape &  shape,
const Standard_Real  toler,
const Standard_Boolean  splitclosed = Standard_False,
const Standard_Boolean  splitopen = Standard_True
 

Standard_EXPORT ShapeAnalysis_FreeBounds::ShapeAnalysis_FreeBounds const TopoDS_Shape &  shape,
const Standard_Boolean  splitclosed = Standard_False,
const Standard_Boolean  splitopen = Standard_True
 


Member Function Documentation

static Standard_EXPORT void ShapeAnalysis_FreeBounds::ConnectEdgesToWires Handle(TopTools_HSequenceOfShape)&  edges,
const Standard_Real  toler,
const Standard_Boolean  shared,
Handle(TopTools_HSequenceOfShape)&  wires
[static]
 

static Standard_EXPORT void ShapeAnalysis_FreeBounds::ConnectWiresToWires Handle(TopTools_HSequenceOfShape)&  iwires,
const Standard_Real  toler,
const Standard_Boolean  shared,
Handle(TopTools_HSequenceOfShape)&  owires,
TopTools_DataMapOfShapeShape &  vertices
[static]
 

static Standard_EXPORT void ShapeAnalysis_FreeBounds::ConnectWiresToWires Handle(TopTools_HSequenceOfShape)&  iwires,
const Standard_Real  toler,
const Standard_Boolean  shared,
Handle(TopTools_HSequenceOfShape)&  owires
[static]
 

static Standard_EXPORT void ShapeAnalysis_FreeBounds::DispatchWires const Handle(TopTools_HSequenceOfShape)&  wires,
TopoDS_Compound &  closed,
TopoDS_Compound &  open
[static]
 

const TopoDS_Compound & ShapeAnalysis_FreeBounds::GetClosedWires  )  const [inline]
 

const TopoDS_Compound & ShapeAnalysis_FreeBounds::GetOpenWires  )  const [inline]
 

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

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

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

Standard_EXPORT void ShapeAnalysis_FreeBounds::SplitWires  )  [private]
 

static Standard_EXPORT void ShapeAnalysis_FreeBounds::SplitWires const Handle(TopTools_HSequenceOfShape)&  wires,
const Standard_Real  toler,
const Standard_Boolean  shared,
Handle(TopTools_HSequenceOfShape)&  closed,
Handle(TopTools_HSequenceOfShape)&  open
[static]
 


Field Documentation

TopoDS_Compound ShapeAnalysis_FreeBounds::myEdges [private]
 

Standard_Boolean ShapeAnalysis_FreeBounds::myShared [private]
 

Standard_Boolean ShapeAnalysis_FreeBounds::mySplitClosed [private]
 

Standard_Boolean ShapeAnalysis_FreeBounds::mySplitOpen [private]
 

Standard_Real ShapeAnalysis_FreeBounds::myTolerance [private]
 

TopoDS_Compound ShapeAnalysis_FreeBounds::myWires [private]
 


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