![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Provides methods to build faces. More...
#include <BRepLib_MakeFace.hxx>

Public Member Functions | |
| BRepLib_MakeFace () | |
| Not done. | |
| BRepLib_MakeFace (const TopoDS_Face &F) | |
| Load a face. Useful to add wires. | |
| BRepLib_MakeFace (const gp_Pln &P) | |
| Make a face from a plane. | |
| BRepLib_MakeFace (const gp_Cylinder &C) | |
| Make a face from a cylinder. | |
| BRepLib_MakeFace (const gp_Cone &C) | |
| Make a face from a cone. | |
| BRepLib_MakeFace (const gp_Sphere &S) | |
| Make a face from a sphere. | |
| BRepLib_MakeFace (const gp_Torus &C) | |
| Make a face from a torus. | |
| BRepLib_MakeFace (const occ::handle< Geom_Surface > &S, const double TolDegen) | |
| Make a face from a Surface. Accepts tolerance value (TolDegen) for resolution of degenerated edges. | |
| BRepLib_MakeFace (const gp_Pln &P, const double UMin, const double UMax, const double VMin, const double VMax) | |
| Make a face from a plane. | |
| BRepLib_MakeFace (const gp_Cylinder &C, const double UMin, const double UMax, const double VMin, const double VMax) | |
| Make a face from a cylinder. | |
| BRepLib_MakeFace (const gp_Cone &C, const double UMin, const double UMax, const double VMin, const double VMax) | |
| Make a face from a cone. | |
| BRepLib_MakeFace (const gp_Sphere &S, const double UMin, const double UMax, const double VMin, const double VMax) | |
| Make a face from a sphere. | |
| BRepLib_MakeFace (const gp_Torus &C, const double UMin, const double UMax, const double VMin, const double VMax) | |
| Make a face from a torus. | |
| BRepLib_MakeFace (const occ::handle< Geom_Surface > &S, const double UMin, const double UMax, const double VMin, const double VMax, const double 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 (const TopoDS_Wire &W, const bool OnlyPlane=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 (const gp_Pln &P, const TopoDS_Wire &W, const bool Inside=true) | |
| Make a face from a plane and a wire. | |
| BRepLib_MakeFace (const gp_Cylinder &C, const TopoDS_Wire &W, const bool Inside=true) | |
| Make a face from a cylinder and a wire. | |
| BRepLib_MakeFace (const gp_Cone &C, const TopoDS_Wire &W, const bool Inside=true) | |
| Make a face from a cone and a wire. | |
| BRepLib_MakeFace (const gp_Sphere &S, const TopoDS_Wire &W, const bool Inside=true) | |
| Make a face from a sphere and a wire. | |
| BRepLib_MakeFace (const gp_Torus &C, const TopoDS_Wire &W, const bool Inside=true) | |
| Make a face from a torus and a wire. | |
| BRepLib_MakeFace (const occ::handle< Geom_Surface > &S, const TopoDS_Wire &W, const bool Inside=true) | |
| Make a face from a Surface and a wire. | |
| BRepLib_MakeFace (const TopoDS_Face &F, const TopoDS_Wire &W) | |
| Adds the wire <W> in the face <F> | |
| void | Init (const TopoDS_Face &F) |
| Load the face. | |
| void | Init (const occ::handle< Geom_Surface > &S, const bool Bound, const double 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. | |
| void | Init (const occ::handle< Geom_Surface > &S, const double UMin, const double UMax, const double VMin, const double VMax, const double TolDegen) |
| Creates the face from the surface and the min-max values. Accepts tolerance value (TolDegen) for resolution of degenerated edges. | |
| void | Add (const TopoDS_Wire &W) |
| Adds the wire <W> in the current face. | |
| BRepLib_FaceError | Error () const |
| const TopoDS_Face & | Face () const |
| Returns the new face. | |
| 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. | |
| const TopoDS_Shape & | Shape () |
| operator TopoDS_Shape () | |
| virtual BRepLib_ShapeModification | FaceStatus (const TopoDS_Face &F) const |
| returns the status of the Face after the shape creation. | |
| virtual bool | HasDescendants (const TopoDS_Face &F) const |
| Returns True if the Face generates new topology. | |
| virtual const NCollection_List< TopoDS_Shape > & | DescendantFaces (const TopoDS_Face &F) |
| returns the list of generated Faces. | |
| virtual int | NbSurfaces () const |
| returns the number of surfaces after the shape creation. | |
| virtual const NCollection_List< TopoDS_Shape > & | NewFaces (const int I) |
| Return the faces created for surface I. | |
| virtual const NCollection_List< TopoDS_Shape > & | FacesFromEdges (const TopoDS_Edge &E) |
| returns a list of the created faces from the edge <E>. | |
Public Member Functions inherited from BRepLib_Command | |
| virtual | ~BRepLib_Command () |
| bool | IsDone () const |
| void | Check () const |
| Raises NotDone if done is false. | |
Static Public Member Functions | |
| static bool | IsDegenerated (const occ::handle< Geom_Curve > &theCurve, const double theMaxTol, double &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. | |
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. | |
| void | Done () |
| Set done to true. | |
| void | NotDone () |
| Set done to false. | |
Protected Attributes inherited from BRepLib_MakeShape | |
| TopoDS_Shape | myShape |
| NCollection_List< TopoDS_Shape > | myGenFaces |
| NCollection_List< TopoDS_Shape > | myNewFaces |
| NCollection_List< TopoDS_Shape > | myEdgFaces |
Provides methods to build faces.
A face may be built :
| BRepLib_MakeFace::BRepLib_MakeFace | ( | ) |
Not done.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const TopoDS_Face & | F | ) |
Load a face. Useful to add wires.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Pln & | P | ) |
Make a face from a plane.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Cylinder & | C | ) |
Make a face from a cylinder.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Cone & | C | ) |
Make a face from a cone.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Sphere & | S | ) |
Make a face from a sphere.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Torus & | C | ) |
Make a face from a torus.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const occ::handle< Geom_Surface > & | S, |
| const double | TolDegen ) |
Make a face from a Surface. Accepts tolerance value (TolDegen) for resolution of degenerated edges.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Pln & | P, |
| const double | UMin, | ||
| const double | UMax, | ||
| const double | VMin, | ||
| const double | VMax ) |
Make a face from a plane.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Cylinder & | C, |
| const double | UMin, | ||
| const double | UMax, | ||
| const double | VMin, | ||
| const double | VMax ) |
Make a face from a cylinder.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Cone & | C, |
| const double | UMin, | ||
| const double | UMax, | ||
| const double | VMin, | ||
| const double | VMax ) |
Make a face from a cone.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Sphere & | S, |
| const double | UMin, | ||
| const double | UMax, | ||
| const double | VMin, | ||
| const double | VMax ) |
Make a face from a sphere.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Torus & | C, |
| const double | UMin, | ||
| const double | UMax, | ||
| const double | VMin, | ||
| const double | VMax ) |
Make a face from a torus.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const occ::handle< Geom_Surface > & | S, |
| const double | UMin, | ||
| const double | UMax, | ||
| const double | VMin, | ||
| const double | VMax, | ||
| const double | 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::BRepLib_MakeFace | ( | const TopoDS_Wire & | W, |
| const bool | OnlyPlane = 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::BRepLib_MakeFace | ( | const gp_Pln & | P, |
| const TopoDS_Wire & | W, | ||
| const bool | Inside = true ) |
Make a face from a plane and a wire.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Cylinder & | C, |
| const TopoDS_Wire & | W, | ||
| const bool | Inside = true ) |
Make a face from a cylinder and a wire.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Cone & | C, |
| const TopoDS_Wire & | W, | ||
| const bool | Inside = true ) |
Make a face from a cone and a wire.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Sphere & | S, |
| const TopoDS_Wire & | W, | ||
| const bool | Inside = true ) |
Make a face from a sphere and a wire.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const gp_Torus & | C, |
| const TopoDS_Wire & | W, | ||
| const bool | Inside = true ) |
Make a face from a torus and a wire.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const occ::handle< Geom_Surface > & | S, |
| const TopoDS_Wire & | W, | ||
| const bool | Inside = true ) |
Make a face from a Surface and a wire.
| BRepLib_MakeFace::BRepLib_MakeFace | ( | const TopoDS_Face & | F, |
| const TopoDS_Wire & | W ) |
Adds the wire <W> in the face <F>
| void BRepLib_MakeFace::Add | ( | const TopoDS_Wire & | W | ) |
Adds the wire <W> in the current face.
| BRepLib_FaceError BRepLib_MakeFace::Error | ( | ) | const |
| const TopoDS_Face & BRepLib_MakeFace::Face | ( | ) | const |
Returns the new face.
| void BRepLib_MakeFace::Init | ( | const occ::handle< Geom_Surface > & | S, |
| const bool | Bound, | ||
| const double | 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.
| void BRepLib_MakeFace::Init | ( | const occ::handle< Geom_Surface > & | S, |
| const double | UMin, | ||
| const double | UMax, | ||
| const double | VMin, | ||
| const double | VMax, | ||
| const double | TolDegen ) |
Creates the face from the surface and the min-max values. Accepts tolerance value (TolDegen) for resolution of degenerated edges.
| void BRepLib_MakeFace::Init | ( | const TopoDS_Face & | F | ) |
Load the face.
|
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.
| BRepLib_MakeFace::operator TopoDS_Face | ( | ) | const |