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

ModelingAlgorithms
TKTopAlgo
BRepLib


BRepLib_MakeFace Class Reference

Provides methods to build faces.

A face may be built :

* From a surface.

- Elementary surface from gp.

- Surface from Geom.

* From a surface and U,V values.

* From a wire.

- Find the surface automatically if possible.

* From a surface and a wire.

- A flag Inside is given, when this flag is True
the wire is oriented to bound a finite area on
the surface.

* From a face and a wire.

- The new wire is a perforation.

Note : When building a face from a surface the surface
must be C2. When a surface is not C2 a shell may be
built using the class MakeShell from BRepLib.
.

#include <BRepLib_MakeFace.hxx>

Inheritance diagram for BRepLib_MakeFace:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepLib_MakeFace ()
 Not done.
.
Standard_EXPORT BRepLib_MakeFace (const TopoDS_Face &F)
 Load a face. Usefull to add wires.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Pln &P)
 Make a face from a plane.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Cylinder &C)
 Make a face from a cylinder.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Cone &C)
 Make a face from a cone.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Sphere &S)
 Make a face from a sphere.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Torus &C)
 Make a face from a torus.
.
Standard_EXPORT BRepLib_MakeFace (const Handle(Geom_Surface)&S)
 Make a face from a Surface.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Pln &P, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax)
 Make a face from a plane.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Cylinder &C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax)
 Make a face from a cylinder.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Cone &C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax)
 Make a face from a cone.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Sphere &S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax)
 Make a face from a sphere.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Torus &C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax)
 Make a face from a torus.
.
Standard_EXPORT BRepLib_MakeFace (const Handle(Geom_Surface)&S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax)
 Make a face from a Surface.
.
Standard_EXPORT BRepLib_MakeFace (const TopoDS_Wire &W, const Standard_Boolean OnlyPlane=Standard_False)
 Find a surface from the wire and make a face.
if <onlyplane> is true, the computed surface will be
a plane. If it is not possible to find a plane, the
flag NotDone will be set.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Pln &P, const TopoDS_Wire &W, const Standard_Boolean Inside=Standard_True)
 Make a face from a plane and a wire.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Cylinder &C, const TopoDS_Wire &W, const Standard_Boolean Inside=Standard_True)
 Make a face from a cylinder and a wire.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Cone &C, const TopoDS_Wire &W, const Standard_Boolean Inside=Standard_True)
 Make a face from a cone and a wire.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Sphere &S, const TopoDS_Wire &W, const Standard_Boolean Inside=Standard_True)
 Make a face from a sphere and a wire.
.
Standard_EXPORT BRepLib_MakeFace (const gp_Torus &C, const TopoDS_Wire &W, const Standard_Boolean Inside=Standard_True)
 Make a face from a torus and a wire.
.
Standard_EXPORT BRepLib_MakeFace (const Handle(Geom_Surface)&S, const TopoDS_Wire &W, const Standard_Boolean Inside=Standard_True)
 Make a face from a Surface and a wire.
.
Standard_EXPORT BRepLib_MakeFace (const TopoDS_Face &F, const TopoDS_Wire &W)
 Adds the wire <w> in the face <f>
.
Standard_EXPORT void Init (const TopoDS_Face &F)
 Load the face.
.
Standard_EXPORT void Init (const Handle(Geom_Surface)&S, const Standard_Boolean Bound=Standard_True)
 Creates the face from the surface. If Bound is
True a wire is made from the natural bounds.
.
Standard_EXPORT void Init (const Handle(Geom_Surface)&S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax)
 Creates the face from the surface and the min-max
values.
.
Standard_EXPORT void Add (const TopoDS_Wire &W)
 Adds the wire <w> in the current face.
.
Standard_EXPORT BRepLib_FaceError Error () const
Standard_EXPORT const TopoDS_Face & Face () const
 Returns the new face.

.
Standard_EXPORT operator TopoDS_Face () const

Private Member Functions

Standard_EXPORT void CheckInside ()
 Reorient the current face if the boundary is not
finite.
.

Private Attributes

BRepLib_FaceError myError

Constructor & Destructor Documentation

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const TopoDS_Face &  F  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Pln &  P  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Cylinder &  C  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Cone &  C  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Sphere &  S  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Torus &  C  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const Handle(Geom_Surface)&  S  ) 
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Pln &  P,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Cylinder &  C,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Cone &  C,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Sphere &  S,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Torus &  C,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const Handle(Geom_Surface)&  S,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const TopoDS_Wire &  W,
const Standard_Boolean  OnlyPlane = Standard_False
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Pln &  P,
const TopoDS_Wire &  W,
const Standard_Boolean  Inside = Standard_True
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Cylinder &  C,
const TopoDS_Wire &  W,
const Standard_Boolean  Inside = Standard_True
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Cone &  C,
const TopoDS_Wire &  W,
const Standard_Boolean  Inside = Standard_True
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Sphere &  S,
const TopoDS_Wire &  W,
const Standard_Boolean  Inside = Standard_True
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const gp_Torus &  C,
const TopoDS_Wire &  W,
const Standard_Boolean  Inside = Standard_True
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const Handle(Geom_Surface)&  S,
const TopoDS_Wire &  W,
const Standard_Boolean  Inside = Standard_True
 

Standard_EXPORT BRepLib_MakeFace::BRepLib_MakeFace const TopoDS_Face &  F,
const TopoDS_Wire &  W
 


Member Function Documentation

Standard_EXPORT void BRepLib_MakeFace::Add const TopoDS_Wire &  W  ) 
 

Standard_EXPORT void BRepLib_MakeFace::CheckInside  )  [private]
 

Standard_EXPORT BRepLib_FaceError BRepLib_MakeFace::Error  )  const
 

Standard_EXPORT const TopoDS_Face& BRepLib_MakeFace::Face  )  const
 

Standard_EXPORT void BRepLib_MakeFace::Init const Handle(Geom_Surface)&  S,
const Standard_Real  UMin,
const Standard_Real  UMax,
const Standard_Real  VMin,
const Standard_Real  VMax
 

Standard_EXPORT void BRepLib_MakeFace::Init const Handle(Geom_Surface)&  S,
const Standard_Boolean  Bound = Standard_True
 

Standard_EXPORT void BRepLib_MakeFace::Init const TopoDS_Face &  F  ) 
 

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

Reimplemented from BRepLib_MakeShape.

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

Reimplemented from BRepLib_MakeShape.

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

Reimplemented from BRepLib_MakeShape.

Standard_EXPORT BRepLib_MakeFace::operator TopoDS_Face  )  const
 


Field Documentation

BRepLib_FaceError BRepLib_MakeFace::myError [private]
 


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