OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepBuilderAPI Class Reference

    The BRepBuilderAPI package provides an Application Programming Interface for the BRep topology data structure. More...

    #include <BRepBuilderAPI.hxx>

    Static Public Member Functions

    static void Plane (const occ::handle< Geom_Plane > &P)
     Sets the current plane.
    static const occ::handle< Geom_Plane > & Plane ()
     Returns the current plane.
    static void Precision (const double P)
     Sets the default precision. The current Precision is returned.
    static double Precision ()
     Returns the default precision.

    Detailed Description

    The BRepBuilderAPI package provides an Application Programming Interface for the BRep topology data structure.

    The API is a set of classes aiming to provide:

    • High level and simple calls for the most common operations.
    • Keeping an access on the low-level implementation of high-level calls.
    • Examples of programming of high-level operations from low-level operations.
    • A complete coverage of modelling:
    • Creating vertices ,edges, faces, solids.
    • Sweeping operations.
    • Boolean operations.
    • Global properties computation.

    The API provides classes to build objects:

    • The constructors of the classes provides the different constructions methods.
    • The class keeps as fields the different tools used to build the object.
    • The class provides a casting method to get automatically the result with a function-like call.

    For example to make a vertex <V> from a point

    one can write:

    V = BRepBuilderAPI_MakeVertex(P);

    or

    BRepBuilderAPI_MakeVertex MV(P); V = MV.Vertex();

    For tolerances a default precision is used which can be changed by the packahe method BRepBuilderAPI::Precision.

    For error handling the BRepBuilderAPI commands raise only the NotDone error. When Done is false on a command the error description can be asked to the command.

    In theory the commands can be called with any arguments, argument checking is performed by the command.

    Member Function Documentation

    ◆ Plane() [1/2]

    const occ::handle< Geom_Plane > & BRepBuilderAPI::Plane ( )
    static

    Returns the current plane.

    ◆ Plane() [2/2]

    void BRepBuilderAPI::Plane ( const occ::handle< Geom_Plane > & P)
    static

    Sets the current plane.

    ◆ Precision() [1/2]

    double BRepBuilderAPI::Precision ( )
    static

    Returns the default precision.

    ◆ Precision() [2/2]

    void BRepBuilderAPI::Precision ( const double P)
    static

    Sets the default precision. The current Precision is returned.


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