OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepLib_MakeFace Class Reference

    Provides methods to build faces. More...

    #include <BRepLib_MakeFace.hxx>

    Inheritance diagram for BRepLib_MakeFace:

    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

    Detailed Description

    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.

    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. Useful 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 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() [9/22]

    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() [10/22]

    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() [11/22]

    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() [12/22]

    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() [13/22]

    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() [14/22]

    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() [15/22]

    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() [16/22]

    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() [17/22]

    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() [18/22]

    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() [19/22]

    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() [20/22]

    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() [21/22]

    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() [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 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.

    ◆ Init() [2/3]

    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.

    ◆ Init() [3/3]

    void BRepLib_MakeFace::Init ( const TopoDS_Face & F)

    Load the face.

    ◆ IsDegenerated()

    bool BRepLib_MakeFace::IsDegenerated ( const occ::handle< Geom_Curve > & theCurve,
    const double theMaxTol,
    double & 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: