OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepGProp_Face Class Reference

    #include <BRepGProp_Face.hxx>

    Public Member Functions

     BRepGProp_Face (const bool IsUseSpan=false)
     Constructor. Initializes the object with a flag IsUseSpan that says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Spans are returned by the methods GetUKnots and GetTKnots.
     BRepGProp_Face (const TopoDS_Face &F, const bool IsUseSpan=false)
     Constructor. Initializes the object with the face and the flag IsUseSpan that says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Spans are returned by the methods GetUKnots and GetTKnots.
    void Load (const TopoDS_Face &F)
    int VIntegrationOrder () const
    bool NaturalRestriction () const
     Returns true if the face is not trimmed.
    const TopoDS_Face & GetFace () const
     Returns the TopoDS face.
    gp_Pnt2d Value2d (const double U) const
     Returns the value of the boundary curve of the face.
    int SIntOrder (const double Eps) const
    int SVIntSubs () const
    int SUIntSubs () const
    void UKnots (NCollection_Array1< double > &Knots) const
    void VKnots (NCollection_Array1< double > &Knots) const
    int LIntOrder (const double Eps) const
    int LIntSubs () const
    void LKnots (NCollection_Array1< double > &Knots) const
    int UIntegrationOrder () const
     Returns the number of points required to do the integration in the U parametric direction with a good accuracy.
    void Bounds (double &U1, double &U2, double &V1, double &V2) const
     Returns the parametric bounds of the Face.
    void Normal (const double U, const double V, gp_Pnt &P, gp_Vec &VNor) const
     Computes the point of parameter U, V on the Face and the normal to the face at this point.
    bool Load (const TopoDS_Edge &E)
     Loading the boundary arc. Returns FALSE if edge has no P-Curve.
    double FirstParameter () const
     Returns the parametric value of the start point of the current arc of curve.
    double LastParameter () const
     Returns the parametric value of the end point of the current arc of curve.
    int IntegrationOrder () const
     Returns the number of points required to do the integration along the parameter of curve.
    void D12d (const double U, gp_Pnt2d &P, gp_Vec2d &V1) const
     Returns the point of parameter U and the first derivative at this point of a boundary curve.
    void Load (const bool IsFirstParam, const GeomAbs_IsoType theIsoType)
     Loading the boundary arc. This arc is either a top, bottom, left or right bound of a UV rectangle in which the parameters of surface are defined. If IsFirstParam is equal to true, the face is initialized by either left of bottom bound. Otherwise it is initialized by the top or right one. If theIsoType is equal to GeomAbs_IsoU, the face is initialized with either left or right bound. Otherwise - with either top or bottom one.
    occ::handle< NCollection_HArray1< double > > GetUKnots (const double theUMin, const double theUMax) const
     Returns an array of U knots of the face. The first and last elements of the array will be theUMin and theUMax. The middle elements will be the U Knots of the face greater then theUMin and lower then theUMax in increasing order. If the face is not a BSpline, the array initialized with theUMin and theUMax only.
    void GetUKnots (const double theUMin, const double theUMax, occ::handle< NCollection_HArray1< double > > &theUKnots) const
    occ::handle< NCollection_HArray1< double > > GetTKnots (const double theTMin, const double theTMax) const
     Returns an array of combination of T knots of the arc and V knots of the face. The first and last elements of the array will be theTMin and theTMax. The middle elements will be the Knots of the arc and the values of parameters of arc on which the value points have V coordinates close to V knots of face. All the parameter will be greater then theTMin and lower then theTMax in increasing order. If the face is not a BSpline, the array initialized with theTMin and theTMax only.
    void GetTKnots (const double theTMin, const double theTMax, occ::handle< NCollection_HArray1< double > > &theTKnots) const

    Constructor & Destructor Documentation

    ◆ BRepGProp_Face() [1/2]

    BRepGProp_Face::BRepGProp_Face ( const bool IsUseSpan = false)

    Constructor. Initializes the object with a flag IsUseSpan that says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Spans are returned by the methods GetUKnots and GetTKnots.

    ◆ BRepGProp_Face() [2/2]

    BRepGProp_Face::BRepGProp_Face ( const TopoDS_Face & F,
    const bool IsUseSpan = false )

    Constructor. Initializes the object with the face and the flag IsUseSpan that says if it is necessary to define spans on a face. This option has an effect only for BSpline faces. Spans are returned by the methods GetUKnots and GetTKnots.

    Member Function Documentation

    ◆ Bounds()

    void BRepGProp_Face::Bounds ( double & U1,
    double & U2,
    double & V1,
    double & V2 ) const

    Returns the parametric bounds of the Face.

    ◆ D12d()

    void BRepGProp_Face::D12d ( const double U,
    gp_Pnt2d & P,
    gp_Vec2d & V1 ) const

    Returns the point of parameter U and the first derivative at this point of a boundary curve.

    ◆ FirstParameter()

    double BRepGProp_Face::FirstParameter ( ) const

    Returns the parametric value of the start point of the current arc of curve.

    ◆ GetFace()

    const TopoDS_Face & BRepGProp_Face::GetFace ( ) const

    Returns the TopoDS face.

    ◆ GetTKnots() [1/2]

    occ::handle< NCollection_HArray1< double > > BRepGProp_Face::GetTKnots ( const double theTMin,
    const double theTMax ) const
    nodiscard

    Returns an array of combination of T knots of the arc and V knots of the face. The first and last elements of the array will be theTMin and theTMax. The middle elements will be the Knots of the arc and the values of parameters of arc on which the value points have V coordinates close to V knots of face. All the parameter will be greater then theTMin and lower then theTMax in increasing order. If the face is not a BSpline, the array initialized with theTMin and theTMax only.

    Parameters
    [in]theTMinlower T bound
    [in]theTMaxupper T bound
    Returns
    array of T knot values

    ◆ GetTKnots() [2/2]

    void BRepGProp_Face::GetTKnots ( const double theTMin,
    const double theTMax,
    occ::handle< NCollection_HArray1< double > > & theTKnots ) const
    Deprecated

    Use GetTKnots() returning handle by value instead.

    ("Use GetTKnots() returning handle by value instead")

    ◆ GetUKnots() [1/2]

    occ::handle< NCollection_HArray1< double > > BRepGProp_Face::GetUKnots ( const double theUMin,
    const double theUMax ) const
    nodiscard

    Returns an array of U knots of the face. The first and last elements of the array will be theUMin and theUMax. The middle elements will be the U Knots of the face greater then theUMin and lower then theUMax in increasing order. If the face is not a BSpline, the array initialized with theUMin and theUMax only.

    Parameters
    [in]theUMinlower U bound
    [in]theUMaxupper U bound
    Returns
    array of U knot values

    ◆ GetUKnots() [2/2]

    void BRepGProp_Face::GetUKnots ( const double theUMin,
    const double theUMax,
    occ::handle< NCollection_HArray1< double > > & theUKnots ) const
    Deprecated

    Use GetUKnots() returning handle by value instead.

    ("Use GetUKnots() returning handle by value instead")

    ◆ IntegrationOrder()

    int BRepGProp_Face::IntegrationOrder ( ) const

    Returns the number of points required to do the integration along the parameter of curve.

    ◆ LastParameter()

    double BRepGProp_Face::LastParameter ( ) const

    Returns the parametric value of the end point of the current arc of curve.

    ◆ LIntOrder()

    int BRepGProp_Face::LIntOrder ( const double Eps) const

    ◆ LIntSubs()

    int BRepGProp_Face::LIntSubs ( ) const

    ◆ LKnots()

    void BRepGProp_Face::LKnots ( NCollection_Array1< double > & Knots) const

    ◆ Load() [1/3]

    void BRepGProp_Face::Load ( const bool IsFirstParam,
    const GeomAbs_IsoType theIsoType )

    Loading the boundary arc. This arc is either a top, bottom, left or right bound of a UV rectangle in which the parameters of surface are defined. If IsFirstParam is equal to true, the face is initialized by either left of bottom bound. Otherwise it is initialized by the top or right one. If theIsoType is equal to GeomAbs_IsoU, the face is initialized with either left or right bound. Otherwise - with either top or bottom one.

    ◆ Load() [2/3]

    bool BRepGProp_Face::Load ( const TopoDS_Edge & E)

    Loading the boundary arc. Returns FALSE if edge has no P-Curve.

    ◆ Load() [3/3]

    void BRepGProp_Face::Load ( const TopoDS_Face & F)

    ◆ NaturalRestriction()

    bool BRepGProp_Face::NaturalRestriction ( ) const

    Returns true if the face is not trimmed.

    ◆ Normal()

    void BRepGProp_Face::Normal ( const double U,
    const double V,
    gp_Pnt & P,
    gp_Vec & VNor ) const

    Computes the point of parameter U, V on the Face and the normal to the face at this point.

    ◆ SIntOrder()

    int BRepGProp_Face::SIntOrder ( const double Eps) const

    ◆ SUIntSubs()

    int BRepGProp_Face::SUIntSubs ( ) const

    ◆ SVIntSubs()

    int BRepGProp_Face::SVIntSubs ( ) const

    ◆ UIntegrationOrder()

    int BRepGProp_Face::UIntegrationOrder ( ) const

    Returns the number of points required to do the integration in the U parametric direction with a good accuracy.

    ◆ UKnots()

    void BRepGProp_Face::UKnots ( NCollection_Array1< double > & Knots) const

    ◆ Value2d()

    gp_Pnt2d BRepGProp_Face::Value2d ( const double U) const

    Returns the value of the boundary curve of the face.

    ◆ VIntegrationOrder()

    int BRepGProp_Face::VIntegrationOrder ( ) const

    ◆ VKnots()

    void BRepGProp_Face::VKnots ( NCollection_Array1< double > & Knots) const

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