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

ModelingData
TKBRep
BRep


BRep_Tool Class Reference

Provides class methods to access to the geometry
of BRep shapes.
.

#include <BRep_Tool.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 Standard_Boolean IsClosed (const TopoDS_Shape &S)
 Returns <true> if S if flaged Closed, if S is a
Solid,Shell or Compound returns <true> is S has no free boundaries.
.
static Standard_EXPORT const
Handle_Geom_Surface & 
Surface (const TopoDS_Face &F, TopLoc_Location &L)
 Returns the geometric surface of the face. Returns
in <l> the location for the surface.
.
static Standard_EXPORT Handle_Geom_Surface Surface (const TopoDS_Face &F)
 Returns the geometric surface of the face. It can
be a copy if there is a Location.

.
static Standard_EXPORT const
Handle_Poly_Triangulation & 
Triangulation (const TopoDS_Face &F, TopLoc_Location &L)
 Returns the Triangulation of the face. It is a
null handle if there is no triangulation.

.
static Standard_EXPORT Standard_Real Tolerance (const TopoDS_Face &F)
 Returns the tolerance of the face.
.
static Standard_EXPORT Standard_Boolean NaturalRestriction (const TopoDS_Face &F)
 Returns the NaturalRestriction flag of the face.
.
static Standard_EXPORT Standard_Boolean IsGeometric (const TopoDS_Edge &E)
 Returns True if <e> is a 3d curve or a curve on
surface.
.
static Standard_EXPORT const
Handle_Geom_Curve & 
Curve (const TopoDS_Edge &E, TopLoc_Location &L, Standard_Real &First, Standard_Real &Last)
 Returns the 3D curve of the edge. May be a Null
handle. Returns in <l> the location for the curve.
In <first> and <last> the parameter range.

.
static Standard_EXPORT Handle_Geom_Curve Curve (const TopoDS_Edge &E, Standard_Real &First, Standard_Real &Last)
 Returns the 3D curve of the edge. May be a Null handle.
In <first> and <last> the parameter range.
It can be a copy if there is a Location.
.
static Standard_EXPORT const
Handle_Poly_Polygon3D & 
Polygon3D (const TopoDS_Edge &E, TopLoc_Location &L)
 Returns the 3D polygon of the edge. May be a Null
handle. Returns in <l> the location for the polygon.

.
static Standard_EXPORT Handle_Geom2d_Curve CurveOnSurface (const TopoDS_Edge &E, const TopoDS_Face &F, Standard_Real &First, Standard_Real &Last)
 Returns the curve associated to the edge in the
parametric space of the face. Returns a NULL
handle if this curve does not exist. Returns in
<first> and <last> the parameter range.
.
static Standard_EXPORT Handle_Geom2d_Curve CurveOnSurface (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L, Standard_Real &First, Standard_Real &Last)
 Returns the curve associated to the edge in the
parametric space of the surface. Returns a NULL
handle if this curve does not exist. Returns in
<first> and <last> the parameter range.
.
static Standard_EXPORT void CurveOnSurface (const TopoDS_Edge &E, Handle(Geom2d_Curve)&C, Handle(Geom_Surface)&S, TopLoc_Location &L, Standard_Real &First, Standard_Real &Last)
 Returns in <c>, <s>, <l> a 2d curve, a surface and
a location for the edge <e>. <c> and <s> are null
if the edge has no curve on surface. Returns in
<first> and <last> the parameter range.
.
static Standard_EXPORT void CurveOnSurface (const TopoDS_Edge &E, Handle(Geom2d_Curve)&C, Handle(Geom_Surface)&S, TopLoc_Location &L, Standard_Real &First, Standard_Real &Last, const Standard_Integer Index)
 Returns in <c>, <s>, <l> the 2d curve, the surface
and the location for the edge <e> of rank <index>.
<c> and <s> are null if the index is out of range.
Returns in <first> and <last> the parameter range.
.
static Standard_EXPORT Handle_Poly_Polygon2D PolygonOnSurface (const TopoDS_Edge &E, const TopoDS_Face &F)
 Returns the polygon associated to the edge in the
parametric space of the face. Returns a NULL
handle if this polygon does not exist.
.
static Standard_EXPORT Handle_Poly_Polygon2D PolygonOnSurface (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L)
 Returns the polygon associated to the edge in the
parametric space of the surface. Returns a NULL
handle if this polygon does not exist.
.
static Standard_EXPORT void PolygonOnSurface (const TopoDS_Edge &E, Handle(Poly_Polygon2D)&C, Handle(Geom_Surface)&S, TopLoc_Location &L)
 Returns in <c>, <s>, <l> a 2d curve, a surface and
a location for the edge <e>. <c> and <s> are null
if the edge has no polygon on surface.
.
static Standard_EXPORT void PolygonOnSurface (const TopoDS_Edge &E, Handle(Poly_Polygon2D)&C, Handle(Geom_Surface)&S, TopLoc_Location &L, const Standard_Integer Index)
 Returns in <c>, <s>, <l> the 2d curve, the surface
and the location for the edge <e> of rank <index>.
<c> and <s> are null if the index is out of range.
.
static Standard_EXPORT const
Handle_Poly_PolygonOnTriangulation & 
PolygonOnTriangulation (const TopoDS_Edge &E, const Handle(Poly_Triangulation)&T, const TopLoc_Location &L)
 Returns the polygon associated to the edge in the
parametric space of the face. Returns a NULL
handle if this polygon does not exist.
.
static Standard_EXPORT void PolygonOnTriangulation (const TopoDS_Edge &E, Handle(Poly_PolygonOnTriangulation)&P, Handle(Poly_Triangulation)&T, TopLoc_Location &L)
 Returns in

, <t>, <l> a polygon on triangulation, a
triangulation and a location for the edge <e>.

and <t> are null if the edge has no
polygon on triangulation.
.

static Standard_EXPORT void PolygonOnTriangulation (const TopoDS_Edge &E, Handle(Poly_PolygonOnTriangulation)&P, Handle(Poly_Triangulation)&T, TopLoc_Location &L, const Standard_Integer Index)
 Returns in

, <t>, <l> a polygon on
triangulation, a triangulation and a location for
the edge <e> for the range index. <c> and <s> are
null if the edge has no polygon on triangulation.
.

static Standard_EXPORT Standard_Boolean IsClosed (const TopoDS_Edge &E, const TopoDS_Face &F)
 Returns True if <e> has two PCurves in the
parametric space of <f>. i.e. <f> is on a closed
surface and <e> is on the closing curve.

.
static Standard_EXPORT Standard_Boolean IsClosed (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L)
 Returns True if <e> has two PCurves in the
parametric space of <s>. i.e. <s> is a closed
surface and <e> is on the closing curve.

.
static Standard_EXPORT Standard_Boolean IsClosed (const TopoDS_Edge &E, const Handle(Poly_Triangulation)&T)
 Returns True if <e> has two arrays of indices in
the triangulation <t>.
.
static Standard_EXPORT Standard_Real Tolerance (const TopoDS_Edge &E)
 Returns the tolerance for <e>.
.
static Standard_EXPORT Standard_Boolean SameParameter (const TopoDS_Edge &E)
 Returns the SameParameter flag for the edge.
.
static Standard_EXPORT Standard_Boolean SameRange (const TopoDS_Edge &E)
 Returns the SameRange flag for the edge.
.
static Standard_EXPORT Standard_Boolean Degenerated (const TopoDS_Edge &E)
 Returns True if the edge is degenerated.
.
static Standard_EXPORT void Range (const TopoDS_Edge &E, Standard_Real &First, Standard_Real &Last)
 Gets the range of the 3d curve.
.
static Standard_EXPORT void Range (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L, Standard_Real &First, Standard_Real &Last)
 Gets the range of the edge on the pcurve on the
surface.
.
static Standard_EXPORT void Range (const TopoDS_Edge &E, const TopoDS_Face &F, Standard_Real &First, Standard_Real &Last)
 Gets the range of the edge on the pcurve on the face.
.
static Standard_EXPORT void UVPoints (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L, gp_Pnt2d &PFirst, gp_Pnt2d &PLast)
 Gets the UV locations of the extremities of the edge.
.
static Standard_EXPORT void UVPoints (const TopoDS_Edge &E, const TopoDS_Face &F, gp_Pnt2d &PFirst, gp_Pnt2d &PLast)
 Gets the UV locations of the extremities of the edge.
.
static Standard_EXPORT void SetUVPoints (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L, const gp_Pnt2d &PFirst, const gp_Pnt2d &PLast)
 Sets the UV locations of the extremities of the edge.
.
static Standard_EXPORT void SetUVPoints (const TopoDS_Edge &E, const TopoDS_Face &F, const gp_Pnt2d &PFirst, const gp_Pnt2d &PLast)
 Sets the UV locations of the extremities of the edge.
.
static Standard_EXPORT const
Bnd_Box2d & 
UVBox (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L)
 Gets the UV box of the edge on the surface.

.
static Standard_EXPORT const
Bnd_Box2d & 
UVBox (const TopoDS_Edge &E, const TopoDS_Face &F)
 Gets the UV box of the edge on the face.

.
static Standard_EXPORT Bnd_Box2d & ChangeUVBox (const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L)
 Gets the UV box of the edge on the surface.

.
static Standard_EXPORT Bnd_Box2d & ChangeUVBox (const TopoDS_Edge &E, const TopoDS_Face &F)
 Gets the UV box of the edge on the face.

.
static Standard_EXPORT Standard_Boolean HasContinuity (const TopoDS_Edge &E, const TopoDS_Face &F1, const TopoDS_Face &F2)
 Returns True if the edge is on the surfaces of the
two faces.
.
static Standard_EXPORT GeomAbs_Shape Continuity (const TopoDS_Edge &E, const TopoDS_Face &F1, const TopoDS_Face &F2)
 Returns the continuity.
.
static Standard_EXPORT Standard_Boolean HasContinuity (const TopoDS_Edge &E, const Handle(Geom_Surface)&S1, const Handle(Geom_Surface)&S2, const TopLoc_Location &L1, const TopLoc_Location &L2)
 Returns True if the edge is on the surfaces.
.
static Standard_EXPORT GeomAbs_Shape Continuity (const TopoDS_Edge &E, const Handle(Geom_Surface)&S1, const Handle(Geom_Surface)&S2, const TopLoc_Location &L1, const TopLoc_Location &L2)
 Returns the continuity.
.
static Standard_EXPORT gp_Pnt Pnt (const TopoDS_Vertex &V)
 Returns the 3d point.
.
static Standard_EXPORT Standard_Real Tolerance (const TopoDS_Vertex &V)
 Returns the tolerance.
.
static Standard_EXPORT Standard_Real Parameter (const TopoDS_Vertex &V, const TopoDS_Edge &E)
 Returns the parameter of <v> on <e>.
.
static Standard_EXPORT Standard_Real Parameter (const TopoDS_Vertex &V, const TopoDS_Edge &E, const TopoDS_Face &F)
 Returns the parameters of the vertex on the
pcurve of the edge on the face.
.
static Standard_EXPORT Standard_Real Parameter (const TopoDS_Vertex &V, const TopoDS_Edge &E, const Handle(Geom_Surface)&S, const TopLoc_Location &L)
 Returns the parameters of the vertex on the
pcurve of the edge on the surface.
.
static Standard_EXPORT gp_Pnt2d Parameters (const TopoDS_Vertex &V, const TopoDS_Face &F)
 Returns the parameters of the vertex on the face.
.


Member Function Documentation

static Standard_EXPORT Bnd_Box2d& BRep_Tool::ChangeUVBox const TopoDS_Edge E,
const TopoDS_Face F
[static]
 

static Standard_EXPORT Bnd_Box2d& BRep_Tool::ChangeUVBox const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L
[static]
 

static Standard_EXPORT GeomAbs_Shape BRep_Tool::Continuity const TopoDS_Edge E,
const Handle(Geom_Surface)&  S1,
const Handle(Geom_Surface)&  S2,
const TopLoc_Location &  L1,
const TopLoc_Location &  L2
[static]
 

static Standard_EXPORT GeomAbs_Shape BRep_Tool::Continuity const TopoDS_Edge E,
const TopoDS_Face F1,
const TopoDS_Face F2
[static]
 

static Standard_EXPORT Handle_Geom_Curve BRep_Tool::Curve const TopoDS_Edge E,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT const Handle_Geom_Curve& BRep_Tool::Curve const TopoDS_Edge E,
TopLoc_Location &  L,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT void BRep_Tool::CurveOnSurface const TopoDS_Edge E,
Handle(Geom2d_Curve)&  C,
Handle(Geom_Surface)&  S,
TopLoc_Location &  L,
Standard_Real &  First,
Standard_Real &  Last,
const Standard_Integer  Index
[static]
 

static Standard_EXPORT void BRep_Tool::CurveOnSurface const TopoDS_Edge E,
Handle(Geom2d_Curve)&  C,
Handle(Geom_Surface)&  S,
TopLoc_Location &  L,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT Handle_Geom2d_Curve BRep_Tool::CurveOnSurface const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT Handle_Geom2d_Curve BRep_Tool::CurveOnSurface const TopoDS_Edge E,
const TopoDS_Face F,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::Degenerated const TopoDS_Edge E  )  [static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::HasContinuity const TopoDS_Edge E,
const Handle(Geom_Surface)&  S1,
const Handle(Geom_Surface)&  S2,
const TopLoc_Location &  L1,
const TopLoc_Location &  L2
[static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::HasContinuity const TopoDS_Edge E,
const TopoDS_Face F1,
const TopoDS_Face F2
[static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::IsClosed const TopoDS_Edge E,
const Handle(Poly_Triangulation)&  T
[static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::IsClosed const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L
[static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::IsClosed const TopoDS_Edge E,
const TopoDS_Face F
[static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::IsClosed const TopoDS_Shape S  )  [static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::IsGeometric const TopoDS_Edge E  )  [static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::NaturalRestriction const TopoDS_Face F  )  [static]
 

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

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

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

static Standard_EXPORT Standard_Real BRep_Tool::Parameter const TopoDS_Vertex V,
const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L
[static]
 

static Standard_EXPORT Standard_Real BRep_Tool::Parameter const TopoDS_Vertex V,
const TopoDS_Edge E,
const TopoDS_Face F
[static]
 

static Standard_EXPORT Standard_Real BRep_Tool::Parameter const TopoDS_Vertex V,
const TopoDS_Edge E
[static]
 

static Standard_EXPORT gp_Pnt2d BRep_Tool::Parameters const TopoDS_Vertex V,
const TopoDS_Face F
[static]
 

static Standard_EXPORT gp_Pnt BRep_Tool::Pnt const TopoDS_Vertex V  )  [static]
 

static Standard_EXPORT const Handle_Poly_Polygon3D& BRep_Tool::Polygon3D const TopoDS_Edge E,
TopLoc_Location &  L
[static]
 

static Standard_EXPORT void BRep_Tool::PolygonOnSurface const TopoDS_Edge E,
Handle(Poly_Polygon2D)&  C,
Handle(Geom_Surface)&  S,
TopLoc_Location &  L,
const Standard_Integer  Index
[static]
 

static Standard_EXPORT void BRep_Tool::PolygonOnSurface const TopoDS_Edge E,
Handle(Poly_Polygon2D)&  C,
Handle(Geom_Surface)&  S,
TopLoc_Location &  L
[static]
 

static Standard_EXPORT Handle_Poly_Polygon2D BRep_Tool::PolygonOnSurface const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L
[static]
 

static Standard_EXPORT Handle_Poly_Polygon2D BRep_Tool::PolygonOnSurface const TopoDS_Edge E,
const TopoDS_Face F
[static]
 

static Standard_EXPORT void BRep_Tool::PolygonOnTriangulation const TopoDS_Edge E,
Handle(Poly_PolygonOnTriangulation)&  P,
Handle(Poly_Triangulation)&  T,
TopLoc_Location &  L,
const Standard_Integer  Index
[static]
 

static Standard_EXPORT void BRep_Tool::PolygonOnTriangulation const TopoDS_Edge E,
Handle(Poly_PolygonOnTriangulation)&  P,
Handle(Poly_Triangulation)&  T,
TopLoc_Location &  L
[static]
 

static Standard_EXPORT const Handle_Poly_PolygonOnTriangulation& BRep_Tool::PolygonOnTriangulation const TopoDS_Edge E,
const Handle(Poly_Triangulation)&  T,
const TopLoc_Location &  L
[static]
 

static Standard_EXPORT void BRep_Tool::Range const TopoDS_Edge E,
const TopoDS_Face F,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT void BRep_Tool::Range const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT void BRep_Tool::Range const TopoDS_Edge E,
Standard_Real &  First,
Standard_Real &  Last
[static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::SameParameter const TopoDS_Edge E  )  [static]
 

static Standard_EXPORT Standard_Boolean BRep_Tool::SameRange const TopoDS_Edge E  )  [static]
 

static Standard_EXPORT void BRep_Tool::SetUVPoints const TopoDS_Edge E,
const TopoDS_Face F,
const gp_Pnt2d &  PFirst,
const gp_Pnt2d &  PLast
[static]
 

static Standard_EXPORT void BRep_Tool::SetUVPoints const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L,
const gp_Pnt2d &  PFirst,
const gp_Pnt2d &  PLast
[static]
 

static Standard_EXPORT Handle_Geom_Surface BRep_Tool::Surface const TopoDS_Face F  )  [static]
 

static Standard_EXPORT const Handle_Geom_Surface& BRep_Tool::Surface const TopoDS_Face F,
TopLoc_Location &  L
[static]
 

static Standard_EXPORT Standard_Real BRep_Tool::Tolerance const TopoDS_Vertex V  )  [static]
 

static Standard_EXPORT Standard_Real BRep_Tool::Tolerance const TopoDS_Edge E  )  [static]
 

static Standard_EXPORT Standard_Real BRep_Tool::Tolerance const TopoDS_Face F  )  [static]
 

static Standard_EXPORT const Handle_Poly_Triangulation& BRep_Tool::Triangulation const TopoDS_Face F,
TopLoc_Location &  L
[static]
 

static Standard_EXPORT const Bnd_Box2d& BRep_Tool::UVBox const TopoDS_Edge E,
const TopoDS_Face F
[static]
 

static Standard_EXPORT const Bnd_Box2d& BRep_Tool::UVBox const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L
[static]
 

static Standard_EXPORT void BRep_Tool::UVPoints const TopoDS_Edge E,
const TopoDS_Face F,
gp_Pnt2d &  PFirst,
gp_Pnt2d &  PLast
[static]
 

static Standard_EXPORT void BRep_Tool::UVPoints const TopoDS_Edge E,
const Handle(Geom_Surface)&  S,
const TopLoc_Location &  L,
gp_Pnt2d &  PFirst,
gp_Pnt2d &  PLast
[static]
 


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