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

ModelingData
TKBRep
BRepTools


BRepTools Class Reference

The BRepTools package provides utilities for BRep
data structures.

* WireExplorer : A tool to explore the topology of
a wire in the order of the edges.

* ShapeSet : Tools used for dumping, writing and
reading.

* UVBounds : Methods to compute the limits of the
boundary of a face, a wire or an edge in the
parametric space of a face.

* Update : Methods to call when a topology has
been created to compute all missing data.

* UpdateFaceUVPoints : Method to update the UV
points stored with the edges on a face. This
method ensure that connected edges have the same
UV point on their common extremity.

* Compare : Method to compare two vertices.

* Compare : Method to compare two edges.

* OuterWire : A method to find the outer wire of a
face.

* OuterShell : A method to find the outer shell of
a solid.

* Map3DEdges : A method to map all the 3D Edges of
a Shape.

* Dump : A method to dump a BRep object.

.

#include <BRepTools.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 UVBounds (const TopoDS_Face &F, Standard_Real &UMin, Standard_Real &UMax, Standard_Real &VMin, Standard_Real &VMax)
 Returns in UMin, UMax, VMin, VMax the bounding
values in the parametric space of F.
.
static Standard_EXPORT void UVBounds (const TopoDS_Face &F, const TopoDS_Wire &W, Standard_Real &UMin, Standard_Real &UMax, Standard_Real &VMin, Standard_Real &VMax)
 Returns in UMin, UMax, VMin, VMax the bounding
values of the wire in the parametric space of F.
.
static Standard_EXPORT void UVBounds (const TopoDS_Face &F, const TopoDS_Edge &E, Standard_Real &UMin, Standard_Real &UMax, Standard_Real &VMin, Standard_Real &VMax)
 Returns in UMin, UMax, VMin, VMax the bounding
values of the edge in the parametric space of F.
.
static Standard_EXPORT void AddUVBounds (const TopoDS_Face &F, Bnd_Box2d &B)
 Adds to the box the bounding values in the
parametric space of F.
.

static Standard_EXPORT void AddUVBounds (const TopoDS_Face &F, const TopoDS_Wire &W, Bnd_Box2d &B)
 Adds to the box the bounding values of the
wire in the parametric space of F.
.

static Standard_EXPORT void AddUVBounds (const TopoDS_Face &F, const TopoDS_Edge &E, Bnd_Box2d &B)
 Adds to the box the bounding values of the
edge in the parametric space of F.
.

static Standard_EXPORT void Update (const TopoDS_Vertex &V)
 Update a vertex (nothing is done)
.
static Standard_EXPORT void Update (const TopoDS_Edge &E)
 Update an edge, compute 2d bounding boxes.
.
static Standard_EXPORT void Update (const TopoDS_Wire &W)
 Update a wire (nothing is done)
.
static Standard_EXPORT void Update (const TopoDS_Face &F)
 Update a Face, update UV points.
.
static Standard_EXPORT void Update (const TopoDS_Shell &S)
 Update a shell (nothing is done)
.
static Standard_EXPORT void Update (const TopoDS_Solid &S)
 Update a solid (nothing is done)
.
static Standard_EXPORT void Update (const TopoDS_CompSolid &C)
 Update a composite solid (nothing is done)
.
static Standard_EXPORT void Update (const TopoDS_Compound &C)
 Update a compound (nothing is done)
.
static Standard_EXPORT void Update (const TopoDS_Shape &S)
 Update a shape, call the corect update.
.
static Standard_EXPORT void UpdateFaceUVPoints (const TopoDS_Face &F)
 For all the edges of the face <f> reset the UV
points to ensure that connected faces have the
same point at there common extremity.
.
static Standard_EXPORT void Clean (const TopoDS_Shape &S)
 Removes all the triangulations of the faces of <s>
and removes all polygons on triangulations of the
edges.
.
static Standard_EXPORT Standard_Boolean Triangulation (const TopoDS_Shape &S, const Standard_Real deflec)
 verifies that each face from the shape <s> has got
a triangulation with a deflection <= deflec and
the edges a discretisation on this triangulation.

static Standard_EXPORT Standard_Boolean Compare (const TopoDS_Vertex &V1, const TopoDS_Vertex &V2)
 Returns True if the distance between the two
vertices is lower than their tolerance.
.
static Standard_EXPORT Standard_Boolean Compare (const TopoDS_Edge &E1, const TopoDS_Edge &E2)
 Returns True if the distance between the two
edges is lower than their tolerance.
.
static Standard_EXPORT TopoDS_Wire OuterWire (const TopoDS_Face &F)
 Returns the outer most wire of <f>. Returns a Null
wire if <f> has no wires.
.
static Standard_EXPORT TopoDS_Shell OuterShell (const TopoDS_Solid &S)
 Returns the outer most shell of <s>. Returns a Null
wire if <s> has no shells.
.
static Standard_EXPORT void Map3DEdges (const TopoDS_Shape &S, TopTools_IndexedMapOfShape &M)
 Stores in the map <m> all the 3D topology edges
of <s>.
.
static Standard_EXPORT Standard_Boolean IsReallyClosed (const TopoDS_Edge &E, const TopoDS_Face &F)
static Standard_EXPORT void Dump (const TopoDS_Shape &Sh, Standard_OStream &S)
 Dumps the topological structure and the geometry
of <sh> on the stream <s>.
.
static Standard_EXPORT void Write (const TopoDS_Shape &Sh, Standard_OStream &S, const Handle(Message_ProgressIndicator)&PR=NULL)
 Writes <sh> on <s> in an ASCII format.
.
static Standard_EXPORT void Read (TopoDS_Shape &Sh, Standard_IStream &S, const BRep_Builder &B, const Handle(Message_ProgressIndicator)&PR=NULL)
 Reads a Shape from <s> in returns it in <sh>.
is used to build the shape.
.

static Standard_EXPORT Standard_Boolean Write (const TopoDS_Shape &Sh, const Standard_CString File, const Handle(Message_ProgressIndicator)&PR=NULL)
 Writes <sh> in <file>.
.
static Standard_EXPORT Standard_Boolean Read (TopoDS_Shape &Sh, const Standard_CString File, const BRep_Builder &B, const Handle(Message_ProgressIndicator)&PR=NULL)
 Reads a Shape from <file>, returns it in <sh>.
is used to build the shape.
.


Member Function Documentation

static Standard_EXPORT void BRepTools::AddUVBounds const TopoDS_Face F,
const TopoDS_Edge E,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BRepTools::AddUVBounds const TopoDS_Face F,
const TopoDS_Wire W,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BRepTools::AddUVBounds const TopoDS_Face F,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BRepTools::Clean const TopoDS_Shape S  )  [static]
 

static Standard_EXPORT Standard_Boolean BRepTools::Compare const TopoDS_Edge E1,
const TopoDS_Edge E2
[static]
 

static Standard_EXPORT Standard_Boolean BRepTools::Compare const TopoDS_Vertex V1,
const TopoDS_Vertex V2
[static]
 

static Standard_EXPORT void BRepTools::Dump const TopoDS_Shape Sh,
Standard_OStream &  S
[static]
 

static Standard_EXPORT Standard_Boolean BRepTools::IsReallyClosed const TopoDS_Edge E,
const TopoDS_Face F
[static]
 

static Standard_EXPORT void BRepTools::Map3DEdges const TopoDS_Shape S,
TopTools_IndexedMapOfShape M
[static]
 

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

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

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

static Standard_EXPORT TopoDS_Shell BRepTools::OuterShell const TopoDS_Solid S  )  [static]
 

static Standard_EXPORT TopoDS_Wire BRepTools::OuterWire const TopoDS_Face F  )  [static]
 

static Standard_EXPORT Standard_Boolean BRepTools::Read TopoDS_Shape Sh,
const Standard_CString  File,
const BRep_Builder B,
const Handle(Message_ProgressIndicator)&  PR = NULL
[static]
 

static Standard_EXPORT void BRepTools::Read TopoDS_Shape Sh,
Standard_IStream &  S,
const BRep_Builder B,
const Handle(Message_ProgressIndicator)&  PR = NULL
[static]
 

static Standard_EXPORT Standard_Boolean BRepTools::Triangulation const TopoDS_Shape S,
const Standard_Real  deflec
[static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Shape S  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Compound C  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_CompSolid C  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Solid S  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Shell S  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Face F  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Wire W  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Edge E  )  [static]
 

static Standard_EXPORT void BRepTools::Update const TopoDS_Vertex V  )  [static]
 

static Standard_EXPORT void BRepTools::UpdateFaceUVPoints const TopoDS_Face F  )  [static]
 

static Standard_EXPORT void BRepTools::UVBounds const TopoDS_Face F,
const TopoDS_Edge E,
Standard_Real &  UMin,
Standard_Real &  UMax,
Standard_Real &  VMin,
Standard_Real &  VMax
[static]
 

static Standard_EXPORT void BRepTools::UVBounds const TopoDS_Face F,
const TopoDS_Wire W,
Standard_Real &  UMin,
Standard_Real &  UMax,
Standard_Real &  VMin,
Standard_Real &  VMax
[static]
 

static Standard_EXPORT void BRepTools::UVBounds const TopoDS_Face F,
Standard_Real &  UMin,
Standard_Real &  UMax,
Standard_Real &  VMin,
Standard_Real &  VMax
[static]
 

static Standard_EXPORT Standard_Boolean BRepTools::Write const TopoDS_Shape Sh,
const Standard_CString  File,
const Handle(Message_ProgressIndicator)&  PR = NULL
[static]
 

static Standard_EXPORT void BRepTools::Write const TopoDS_Shape Sh,
Standard_OStream &  S,
const Handle(Message_ProgressIndicator)&  PR = NULL
[static]
 


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