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

ModelingAlgorithms
TKTopAlgo
BRepLib


BRepLib Class Reference

The BRepLib package provides general utilities for
BRep.

* FindSurface : Class to compute a surface through
a set of edges.

* Compute missing 3d curve on an edge.
.

#include <BRepLib.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 Precision (const Standard_Real P)
 Sets the default precision. The current Precision
is returned.
.
static Standard_EXPORT Standard_Real Precision ()
 Returns the default precision.
.
static Standard_EXPORT void Plane (const Handle(Geom_Plane)&P)
 Sets the current plane to P.
.
static Standard_EXPORT const
Handle_Geom_Plane & 
Plane ()
 Returns the current plane.

.
static Standard_EXPORT Standard_Boolean CheckSameRange (const TopoDS_Edge &E, const Standard_Real Confusion=1.0e-12)
 checks if the Edge is same range IGNORING
the same range flag of the edge
Confusion argument is to compare real numbers
idenpendently of any model space tolerance


static Standard_EXPORT void SameRange (const TopoDS_Edge &E, const Standard_Real Tolerance=1.0e-5)
 will make all the curve representation have
the same range domain for the parameters.
This will IGNORE the same range flag value
to proceed.
If there is a 3D curve there it will the
range of that curve. If not the first curve representation
encountered in the list will give its range to
the all the other curves.

static Standard_EXPORT Standard_Boolean BuildCurve3d (const TopoDS_Edge &E, const Standard_Real Tolerance=1.0e-5, const GeomAbs_Shape Continuity=GeomAbs_C1, const Standard_Integer MaxDegree=14, const Standard_Integer MaxSegment=0)
 Computes the 3d curve for the edge <e> if it does
not exist. Returns True if the curve was computed
or existed. Returns False if there is no planar
pcurve.
<maxsegment> >= 30 in approximation
.
static Standard_EXPORT Standard_Boolean BuildCurves3d (const TopoDS_Shape &S, const Standard_Real Tolerance, const GeomAbs_Shape Continuity=GeomAbs_C1, const Standard_Integer MaxDegree=14, const Standard_Integer MaxSegment=0)
 Computes the 3d curves for all the edges of <s>
return False if one of the computation failed.
<maxsegment> >= 30 in approximation
.
static Standard_EXPORT Standard_Boolean BuildCurves3d (const TopoDS_Shape &S)
 Computes the 3d curves for all the edges of <s>
return False if one of the computation failed.
.
static Standard_EXPORT Standard_Boolean UpdateEdgeTol (const TopoDS_Edge &E, const Standard_Real MinToleranceRequest, const Standard_Real MaxToleranceToCheck)
static Standard_EXPORT Standard_Boolean UpdateEdgeTolerance (const TopoDS_Shape &S, const Standard_Real MinToleranceRequest, const Standard_Real MaxToleranceToCheck)
static Standard_EXPORT void SameParameter (const TopoDS_Edge &E, const Standard_Real Tolerance=1.0e-5)
 Computes new 2d curve(s) for the edge <e> to have
the same parameter as the 3d curve.
The algorithm is not done if the flag SameParameter
was True on the Edge.
.
static Standard_EXPORT void SameParameter (const TopoDS_Shape &S, const Standard_Real Tolerance=1.0e-5, const Standard_Boolean forced=Standard_False)
 Computes new 2d curve(s) for all the edges of <s>
to have the same parameter as the 3d curve.
The algorithm is not done if the flag SameParameter
was True on an Edge.
.
static Standard_EXPORT void UpdateTolerances (const TopoDS_Shape &S, const Standard_Boolean verifyFaceTolerance=Standard_False)
 Replaces tolerance of FACE EDGE VERTEX by the
tolerance Max of their connected handling shapes.
It is not necessary to use this call after
SameParameter. (called in)
.
static Standard_EXPORT Standard_Boolean OrientClosedSolid (TopoDS_Solid &solid)
static Standard_EXPORT void EncodeRegularity (const TopoDS_Shape &S, const Standard_Real TolAng=1.0e-10)
 Encodes the Regularity of edges on a Shape.
Warning: <tolang> is an angular tolerance, expressed in Rad.
Warning: If the edges's regularity are coded before, nothing
is done.
.
static Standard_EXPORT void EncodeRegularity (TopoDS_Edge &S, const TopoDS_Face &F1, const TopoDS_Face &F2, const Standard_Real TolAng=1.0e-10)
 Encodes the Regularity beetween <f1> and <f2> by <e>
Warning: <tolang> is an angular tolerance, expressed in Rad.
Warning: If the edge's regularity is coded before, nothing
is done.
.
static Standard_EXPORT void SortFaces (const TopoDS_Shape &S, TopTools_ListOfShape &LF)
 Sorts in LF the Faces of S on the complexity of
their surfaces
(Plane,Cylinder,Cone,Sphere,Torus,other)
.
static Standard_EXPORT void ReverseSortFaces (const TopoDS_Shape &S, TopTools_ListOfShape &LF)
 Sorts in LF the Faces of S on the reverse
complexity of their surfaces
(other,Torus,Sphere,Cone,Cylinder,Plane)
.


Member Function Documentation

static Standard_EXPORT Standard_Boolean BRepLib::BuildCurve3d const TopoDS_Edge &  E,
const Standard_Real  Tolerance = 1.0e-5,
const GeomAbs_Shape  Continuity = GeomAbs_C1,
const Standard_Integer  MaxDegree = 14,
const Standard_Integer  MaxSegment = 0
[static]
 

static Standard_EXPORT Standard_Boolean BRepLib::BuildCurves3d const TopoDS_Shape &  S  )  [static]
 

static Standard_EXPORT Standard_Boolean BRepLib::BuildCurves3d const TopoDS_Shape &  S,
const Standard_Real  Tolerance,
const GeomAbs_Shape  Continuity = GeomAbs_C1,
const Standard_Integer  MaxDegree = 14,
const Standard_Integer  MaxSegment = 0
[static]
 

static Standard_EXPORT Standard_Boolean BRepLib::CheckSameRange const TopoDS_Edge &  E,
const Standard_Real  Confusion = 1.0e-12
[static]
 

static Standard_EXPORT void BRepLib::EncodeRegularity TopoDS_Edge &  S,
const TopoDS_Face &  F1,
const TopoDS_Face &  F2,
const Standard_Real  TolAng = 1.0e-10
[static]
 

static Standard_EXPORT void BRepLib::EncodeRegularity const TopoDS_Shape &  S,
const Standard_Real  TolAng = 1.0e-10
[static]
 

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

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

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

static Standard_EXPORT Standard_Boolean BRepLib::OrientClosedSolid TopoDS_Solid &  solid  )  [static]
 

static Standard_EXPORT const Handle_Geom_Plane& BRepLib::Plane  )  [static]
 

static Standard_EXPORT void BRepLib::Plane const Handle(Geom_Plane)&  P  )  [static]
 

static Standard_EXPORT Standard_Real BRepLib::Precision  )  [static]
 

static Standard_EXPORT void BRepLib::Precision const Standard_Real  P  )  [static]
 

static Standard_EXPORT void BRepLib::ReverseSortFaces const TopoDS_Shape &  S,
TopTools_ListOfShape &  LF
[static]
 

static Standard_EXPORT void BRepLib::SameParameter const TopoDS_Shape &  S,
const Standard_Real  Tolerance = 1.0e-5,
const Standard_Boolean  forced = Standard_False
[static]
 

static Standard_EXPORT void BRepLib::SameParameter const TopoDS_Edge &  E,
const Standard_Real  Tolerance = 1.0e-5
[static]
 

static Standard_EXPORT void BRepLib::SameRange const TopoDS_Edge &  E,
const Standard_Real  Tolerance = 1.0e-5
[static]
 

static Standard_EXPORT void BRepLib::SortFaces const TopoDS_Shape &  S,
TopTools_ListOfShape &  LF
[static]
 

static Standard_EXPORT Standard_Boolean BRepLib::UpdateEdgeTol const TopoDS_Edge &  E,
const Standard_Real  MinToleranceRequest,
const Standard_Real  MaxToleranceToCheck
[static]
 

static Standard_EXPORT Standard_Boolean BRepLib::UpdateEdgeTolerance const TopoDS_Shape &  S,
const Standard_Real  MinToleranceRequest,
const Standard_Real  MaxToleranceToCheck
[static]
 

static Standard_EXPORT void BRepLib::UpdateTolerances const TopoDS_Shape &  S,
const Standard_Boolean  verifyFaceTolerance = Standard_False
[static]
 


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