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

ModelingData
TKGeomBase
BndLib


BndLib Class Reference

The BndLib package provides functions to add a geometric primitive to a bounding box.
Note: these functions work with gp objects, optionally
limited by parameter values. If the curves and surfaces
provided by the gp package are not explicitly
parameterized, they still have an implicit parameterization,
similar to that which they infer for the equivalent Geom or Geom2d objects.
Add : Package to compute the bounding boxes for elementary
objects from gp in 2d and 3d .

AddCurve2d : A class to compute the bounding box for a curve
in 2d dimensions ;the curve is defined by a tool

AddCurve : A class to compute the bounding box for a curve
in 3d dimensions ;the curve is defined by a tool

AddSurface : A class to compute the bounding box for a surface.
The surface is defined by a tool for the geometry and another
tool for the topology (only the edges in 2d dimensions)
.

#include <BndLib.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 Add (const gp_Lin &L, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box &B)
 Adds the segment of the line L limited by the two
parameter values P1 and P2, to the bounding box B, and
then enlarges B by the tolerance value Tol.
Tol is the tolerance value to enlarge the minimun and maximum dimension
P1 and P2 may represent infinite values.
Exceptions
Standard_Failure if P1 and P2 are either two negative
infinite real numbers, or two positive infinite real numbers.
.
static Standard_EXPORT void Add (const gp_Lin2d &L, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box2d &B)
static Standard_EXPORT void Add (const gp_Circ &C, const Standard_Real Tol, Bnd_Box &B)
static Standard_EXPORT void Add (const gp_Circ &C, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box &B)
 P2-P1 can be in [0,2*pi]
.
static Standard_EXPORT void Add (const gp_Circ2d &C, const Standard_Real Tol, Bnd_Box2d &B)
static Standard_EXPORT void Add (const gp_Circ2d &C, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box2d &B)
 Adds the circle C, or the arc of the circle C
limited by the two parameter values P1 and P2,
to the bounding box B, and then enlarges B by the tolerance value Tol.
P2-P1 can be in [0,2*pi]
.
static Standard_EXPORT void Add (const gp_Elips &C, const Standard_Real Tol, Bnd_Box &B)
static Standard_EXPORT void Add (const gp_Elips &C, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box &B)
 P2-P1 can be in [0,2*pi]
.
static Standard_EXPORT void Add (const gp_Elips2d &C, const Standard_Real Tol, Bnd_Box2d &B)
static Standard_EXPORT void Add (const gp_Elips2d &C, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box2d &B)
 Adds the ellipse E, or the arc of the ellipse E
limited by the two parameter values P1 and P2,
to the bounding box B, and then enlarges B by the tolerance value Tol.
P2-P1 can be in [0,2*pi]
.
static Standard_EXPORT void Add (const gp_Parab &P, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box &B)
static Standard_EXPORT void Add (const gp_Parab2d &P, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box2d &B)
 Adds the arc of the parabola P limited by the two
parameter values P1 and P2, to the bounding box B, and
then enlarges B by the tolerance value Tol.
P1 and P2 may represent infinite values.
Exceptions
Standard_Failure if P1 and P2 are either two negative
infinite real numbers, or two positive infinite real numbers.
.
static Standard_EXPORT void Add (const gp_Hypr &H, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box &B)
static Standard_EXPORT void Add (const gp_Hypr2d &H, const Standard_Real P1, const Standard_Real P2, const Standard_Real Tol, Bnd_Box2d &B)
 Adds the arc of the branch of hyperbola H limited by the
two parameter values P1 and P2, to the bounding box B,
and then enlarges B by the tolerance value Tol.
P1 and P2 may represent infinite values.
Exceptions
Standard_Failure if P1 and P2 are either two negative
infinite real numbers, or two positive infinite real numbers.
.
static Standard_EXPORT void Add (const gp_Cylinder &S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real Tol, Bnd_Box &B)
 UMax -UMin can be in [0,2*pi]
.
static Standard_EXPORT void Add (const gp_Cylinder &S, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real Tol, Bnd_Box &B)
 Adds to the bounding box B, the patch of the cylinder S limited
- in the v parametric direction, by the two parameter
values VMin and VMax
- and optionally in the u parametric direction, by the two
parameter values UMin and UMax.
B is then enlarged by the tolerance value Tol.
VMin and VMax may represent infinite values.
Exceptions
Standard_Failure if VMin and VMax are either two
negative infinite real numbers, or two positive infinite real numbers.
.
static Standard_EXPORT void Add (const gp_Cone &S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real Tol, Bnd_Box &B)
 UMax-UMin can be in [0,2*pi]
.
static Standard_EXPORT void Add (const gp_Cone &S, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real Tol, Bnd_Box &B)
 Adds to the bounding box B, the patch of the cone S limited
- in the v parametric direction, by the two parameter
values VMin and VMax
- and optionally in the u parametric direction, by the two
parameter values UMin and UMax,
B is then enlarged by the tolerance value Tol.
VMin and VMax may represent infinite values.
Exceptions
Standard_Failure if VMin and VMax are either two
negative infinite real numbers, or two positive infinite real numbers.
.
static Standard_EXPORT void Add (const gp_Sphere &S, const Standard_Real Tol, Bnd_Box &B)
static Standard_EXPORT void Add (const gp_Sphere &S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real Tol, Bnd_Box &B)
 Adds to the bounding box B the sphere S, or
- the patch of the sphere S, limited in the u parametric
direction, by the two parameter values UMin and UMax,
and in the v parametric direction, by the two parameter
values VMin and VMax.
B is then enlarged by the tolerance value Tol.
UMax-UMin can be in [0,2*pi]
VMin,VMax can be [-pi/2,pi/2]
.
static Standard_EXPORT void Add (const gp_Torus &P, const Standard_Real Tol, Bnd_Box &B)
static Standard_EXPORT void Add (const gp_Torus &P, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real Tol, Bnd_Box &B)
 Adds to the bounding box B
- the torus S, or
- the patch of the torus S, limited in the u parametric
direction, by the two parameter values UMin and UMax,
and in the v parametric direction, by the two parameter
values VMin and VMax.
B is then enlarged by the tolerance value Tol.
UMax-UMin can be in [0,2*pi],
VMin,VMax can be [-pi/2,pi/2]
.


Member Function Documentation

static Standard_EXPORT void BndLib::Add const gp_Torus &  P,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Torus &  P,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Sphere &  S,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Sphere &  S,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Cone &  S,
const Standard_Real  VMin,
const Standard_Real  VMax,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Cone &  S,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Cylinder &  S,
const Standard_Real  VMin,
const Standard_Real  VMax,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Cylinder &  S,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Hypr2d &  H,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Hypr &  H,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Parab2d &  P,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Parab &  P,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Elips2d &  C,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Elips2d &  C,
const Standard_Real  Tol,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Elips &  C,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Elips &  C,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Circ2d &  C,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Circ2d &  C,
const Standard_Real  Tol,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Circ &  C,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Circ &  C,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Lin2d &  L,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box2d &  B
[static]
 

static Standard_EXPORT void BndLib::Add const gp_Lin &  L,
const Standard_Real  P1,
const Standard_Real  P2,
const Standard_Real  Tol,
Bnd_Box &  B
[static]
 

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

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

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


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