Open CASCADE Technology  7.4.0
Public Member Functions | Static Public Member Functions
BRepLib_MakeFace Class Reference

Provides methods to build faces. More...

#include <BRepLib_MakeFace.hxx>

Inheritance diagram for BRepLib_MakeFace:
Inheritance graph
[legend]

Public Member Functions

 BRepLib_MakeFace ()
 Not done. More...
 
 BRepLib_MakeFace (const TopoDS_Face &F)
 Load a face. Usefull to add wires. More...
 
 BRepLib_MakeFace (const gp_Pln &P)
 Make a face from a plane. More...
 
 BRepLib_MakeFace (const gp_Cylinder &C)
 Make a face from a cylinder. More...
 
 BRepLib_MakeFace (const gp_Cone &C)
 Make a face from a cone. More...
 
 BRepLib_MakeFace (const gp_Sphere &S)
 Make a face from a sphere. More...
 
 BRepLib_MakeFace (const gp_Torus &C)
 Make a face from a torus. More...
 
 BRepLib_MakeFace (const Handle< Geom_Surface > &S, const Standard_Real TolDegen)
 Make a face from a Surface. Accepts tolerance value (TolDegen) for resolution of degenerated edges. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 BRepLib_MakeFace (const Handle< Geom_Surface > &S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real TolDegen)
 Make a face from a Surface. Accepts min & max parameters to construct the face's bounds. Also accepts tolerance value (TolDegen) for resolution of degenerated edges. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 BRepLib_MakeFace (const TopoDS_Face &F, const TopoDS_Wire &W)
 Adds the wire <W> in the face <F> More...
 
void Init (const TopoDS_Face &F)
 Load the face. More...
 
void Init (const Handle< Geom_Surface > &S, const Standard_Boolean Bound, const Standard_Real TolDegen)
 Creates the face from the surface. If Bound is True a wire is made from the natural bounds. Accepts tolerance value (TolDegen) for resolution of degenerated edges. More...
 
void Init (const Handle< Geom_Surface > &S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real TolDegen)
 Creates the face from the surface and the min-max values. Accepts tolerance value (TolDegen) for resolution of degenerated edges. More...
 
void Add (const TopoDS_Wire &W)
 Adds the wire <W> in the current face. More...
 
BRepLib_FaceError Error () const
 
const TopoDS_FaceFace () const
 Returns the new face. More...
 
 operator TopoDS_Face () const
 
- Public Member Functions inherited from BRepLib_MakeShape
void Build ()
 This is called by Shape(). It does nothing but may be redefined. More...
 
const TopoDS_ShapeShape ()
 
 operator TopoDS_Shape ()
 
virtual BRepLib_ShapeModification FaceStatus (const TopoDS_Face &F) const
 returns the status of the Face after the shape creation. More...
 
virtual Standard_Boolean HasDescendants (const TopoDS_Face &F) const
 Returns True if the Face generates new topology. More...
 
virtual const TopTools_ListOfShapeDescendantFaces (const TopoDS_Face &F)
 returns the list of generated Faces. More...
 
virtual Standard_Integer NbSurfaces () const
 returns the number of surfaces after the shape creation. More...
 
virtual const TopTools_ListOfShapeNewFaces (const Standard_Integer I)
 Return the faces created for surface I. More...
 
virtual const TopTools_ListOfShapeFacesFromEdges (const TopoDS_Edge &E)
 returns a list of the created faces from the edge <E>. More...
 
- Public Member Functions inherited from BRepLib_Command
virtual ~BRepLib_Command ()
 
Standard_Boolean IsDone () const
 
void Check () const
 Raises NotDone if done is false. More...
 

Static Public Member Functions

static Standard_Boolean IsDegenerated (const Handle< Geom_Curve > &theCurve, const Standard_Real theMaxTol, Standard_Real &theActTol)
 Checks the specified curve is degenerated according to specified tolerance. Returns <theActTol> less than <theMaxTol>, which shows actual tolerance to decide the curve is degenerated. Warning: For internal use of BRepLib_MakeFace and BRepLib_MakeShell. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BRepLib_MakeShape
 BRepLib_MakeShape ()
 
- Protected Member Functions inherited from BRepLib_Command
 BRepLib_Command ()
 Set done to False. More...
 
void Done ()
 Set done to true. More...
 
void NotDone ()
 Set done to false. More...
 
- Protected Attributes inherited from BRepLib_MakeShape
TopoDS_Shape myShape
 
TopTools_ListOfShape myGenFaces
 
TopTools_ListOfShape myNewFaces
 
TopTools_ListOfShape myEdgFaces
 

Detailed Description

Provides methods to build faces.

A face may be built :

Constructor & Destructor Documentation

◆ BRepLib_MakeFace() [1/22]

BRepLib_MakeFace::BRepLib_MakeFace ( )

Not done.

◆ BRepLib_MakeFace() [2/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const TopoDS_Face F)

Load a face. Usefull to add wires.

◆ BRepLib_MakeFace() [3/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const gp_Pln P)

Make a face from a plane.

◆ BRepLib_MakeFace() [4/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const gp_Cylinder C)

Make a face from a cylinder.

◆ BRepLib_MakeFace() [5/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const gp_Cone C)

Make a face from a cone.

◆ BRepLib_MakeFace() [6/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const gp_Sphere S)

Make a face from a sphere.

◆ BRepLib_MakeFace() [7/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const gp_Torus C)

Make a face from a torus.

◆ BRepLib_MakeFace() [8/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const Handle< Geom_Surface > &  S,
const Standard_Real  TolDegen 
)

Make a face from a Surface. Accepts tolerance value (TolDegen) for resolution of degenerated edges.

◆ BRepLib_MakeFace() [9/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [10/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [11/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [12/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [13/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [14/22]

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,
const Standard_Real  TolDegen 
)

Make a face from a Surface. Accepts min & max parameters to construct the face's bounds. Also accepts tolerance value (TolDegen) for resolution of degenerated edges.

◆ BRepLib_MakeFace() [15/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [16/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [17/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [18/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [19/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [20/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [21/22]

BRepLib_MakeFace::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.

◆ BRepLib_MakeFace() [22/22]

BRepLib_MakeFace::BRepLib_MakeFace ( const TopoDS_Face F,
const TopoDS_Wire W 
)

Adds the wire <W> in the face <F>

Member Function Documentation

◆ Add()

void BRepLib_MakeFace::Add ( const TopoDS_Wire W)

Adds the wire <W> in the current face.

◆ Error()

BRepLib_FaceError BRepLib_MakeFace::Error ( ) const

◆ Face()

const TopoDS_Face& BRepLib_MakeFace::Face ( ) const

Returns the new face.

◆ Init() [1/3]

void BRepLib_MakeFace::Init ( const TopoDS_Face F)

Load the face.

◆ Init() [2/3]

void BRepLib_MakeFace::Init ( const Handle< Geom_Surface > &  S,
const Standard_Boolean  Bound,
const Standard_Real  TolDegen 
)

Creates the face from the surface. If Bound is True a wire is made from the natural bounds. Accepts tolerance value (TolDegen) for resolution of degenerated edges.

◆ Init() [3/3]

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,
const Standard_Real  TolDegen 
)

Creates the face from the surface and the min-max values. Accepts tolerance value (TolDegen) for resolution of degenerated edges.

◆ IsDegenerated()

static Standard_Boolean BRepLib_MakeFace::IsDegenerated ( const Handle< Geom_Curve > &  theCurve,
const Standard_Real  theMaxTol,
Standard_Real theActTol 
)
static

Checks the specified curve is degenerated according to specified tolerance. Returns <theActTol> less than <theMaxTol>, which shows actual tolerance to decide the curve is degenerated. Warning: For internal use of BRepLib_MakeFace and BRepLib_MakeShell.

◆ operator TopoDS_Face()

BRepLib_MakeFace::operator TopoDS_Face ( ) const

The documentation for this class was generated from the following file: