OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepAdaptor_Curve Class Reference

    The Curve from BRepAdaptor allows to use an Edge of the BRep topology like a 3D curve. More...

    #include <BRepAdaptor_Curve.hxx>

    Inheritance diagram for BRepAdaptor_Curve:

    Public Member Functions

     BRepAdaptor_Curve ()
     Creates an undefined Curve with no Edge loaded.
     BRepAdaptor_Curve (const TopoDS_Edge &E)
     Creates a Curve to access the geometry of edge <E>.
     BRepAdaptor_Curve (const TopoDS_Edge &E, const TopoDS_Face &F)
     Creates a Curve to access the geometry of edge <E>. The geometry will be computed using the parametric curve of <E> on the face <F>. An Error is raised if the edge does not have a pcurve on the face.
    occ::handle< Adaptor3d_CurveShallowCopy () const override
     Shallow copy of adaptor.
    void Reset ()
     Reset currently loaded curve (undone Load()).
    void Initialize (const TopoDS_Edge &E)
     Sets the Curve <me> to access the geometry of edge <E>.
    void Initialize (const TopoDS_Edge &E, const TopoDS_Face &F)
     Sets the Curve <me> to access the geometry of edge <E>. The geometry will be computed using the parametric curve of <E> on the face <F>. An Error is raised if the edge does not have a pcurve on the face.
    const TopoDS_EdgeEdge () const
     Returns the edge.
    double Tolerance () const
     Returns the edge tolerance.
    occ::handle< Adaptor3d_CurveTrim (const double First, const double Last, const double Tol) const override
     Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion.
    Public Member Functions inherited from GeomAdaptor_TransformedCurve
     GeomAdaptor_TransformedCurve ()
     Creates an undefined curve with identity transformation.
     GeomAdaptor_TransformedCurve (const occ::handle< Geom_Curve > &theCurve, const gp_Trsf &theTrsf)
     Creates a curve adaptor with transformation.
     GeomAdaptor_TransformedCurve (const occ::handle< Geom_Curve > &theCurve, const double theFirst, const double theLast, const gp_Trsf &theTrsf)
     Creates a curve adaptor with transformation and parameter bounds.
    occ::handle< Adaptor3d_CurveShallowCopy () const override
     Shallow copy of adaptor.
    void Load (const occ::handle< Geom_Curve > &theCurve)
     Loads the curve geometry.
    void Load (const occ::handle< Geom_Curve > &theCurve, const double theFirst, const double theLast)
     Loads the curve geometry with parameter bounds.
    void LoadCurveOnSurface (const occ::handle< Adaptor3d_CurveOnSurface > &theConSurf)
     Sets the curve on surface adaptor.
    void SetTrsf (const gp_Trsf &theTrsf)
     Sets the transformation.
    const gp_TrsfTrsf () const
     Returns the transformation.
    bool Is3DCurve () const
     Returns true if the geometry is a 3D curve (not curve on surface).
    bool IsCurveOnSurface () const
     Returns true if the geometry is a curve on surface.
    const GeomAdaptor_CurveCurve () const
     Returns the underlying GeomAdaptor_Curve.
    GeomAdaptor_CurveChangeCurve ()
     Returns the underlying GeomAdaptor_Curve for modification.
    const Adaptor3d_CurveOnSurfaceCurveOnSurface () const
     Returns the CurveOnSurface adaptor.
    const occ::handle< Geom_Curve > & GeomCurve () const
     Returns the underlying Geom_Curve.
    double FirstParameter () const override
    double LastParameter () const override
    GeomAbs_Shape Continuity () const override
    int NbIntervals (const GeomAbs_Shape theS) const override
     Returns the number of intervals for continuity . May be one if Continuity(me) >= .
    void Intervals (NCollection_Array1< double > &theT, const GeomAbs_Shape theS) const override
     Stores in <T> the parameters bounding the intervals of continuity .
    occ::handle< Adaptor3d_CurveTrim (const double theFirst, const double theLast, const double theTol) const override
     Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.
    bool IsClosed () const override
    bool IsPeriodic () const override
    double Period () const override
    gp_Pnt EvalD0 (const double theU) const final
     Point evaluation. Applies transformation after evaluation.
    Geom_Curve::ResD1 EvalD1 (const double theU) const final
     D1 evaluation. Applies transformation after evaluation.
    Geom_Curve::ResD2 EvalD2 (const double theU) const final
     D2 evaluation. Applies transformation after evaluation.
    Geom_Curve::ResD3 EvalD3 (const double theU) const final
     D3 evaluation. Applies transformation after evaluation.
    gp_Vec EvalDN (const double theU, const int theN) const final
     DN evaluation. Applies transformation after evaluation.
    double Resolution (const double theR3d) const override
     Returns the parametric resolution corresponding to the real space resolution <R3d>.
    GeomAbs_CurveType GetType () const override
     Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
    gp_Lin Line () const override
    gp_Circ Circle () const override
    gp_Elips Ellipse () const override
    gp_Hypr Hyperbola () const override
    gp_Parab Parabola () const override
    int Degree () const override
    bool IsRational () const override
    int NbPoles () const override
    int NbKnots () const override
    occ::handle< Geom_BezierCurveBezier () const override
    occ::handle< Geom_BSplineCurveBSpline () const override
    occ::handle< Geom_OffsetCurveOffsetCurve () const override
    Public Member Functions inherited from Adaptor3d_Curve
    gp_Pnt Value (const double theU) const
     Computes the point of parameter U on the curve.
    void D0 (const double theU, gp_Pnt &theP) const
     Computes the point of parameter U on the curve.
    void D1 (const double theU, gp_Pnt &theP, gp_Vec &theV) const
     Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
    void D2 (const double theU, gp_Pnt &theP, gp_Vec &theV1, gp_Vec &theV2) const
     Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
    void D3 (const double theU, gp_Pnt &theP, gp_Vec &theV1, gp_Vec &theV2, gp_Vec &theV3) const
     Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
    gp_Vec DN (const double theU, const int theN) const
     The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
     ~Adaptor3d_Curve () override
    Public Member Functions inherited from Standard_Transient
     Standard_Transient ()
     Empty constructor.
     Standard_Transient (const Standard_Transient &)
     Copy constructor – does nothing.
    Standard_Transientoperator= (const Standard_Transient &)
     Assignment operator, needed to avoid copying reference counter.
    virtual ~Standard_Transient ()=default
     Destructor must be virtual.
    virtual const opencascade::handle< Standard_Type > & DynamicType () const
     Returns a type descriptor about this object.
    bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
     Returns a true value if this is an instance of Type.
    bool IsInstance (const char *const theTypeName) const
     Returns a true value if this is an instance of TypeName.
    bool IsKind (const opencascade::handle< Standard_Type > &theType) const
     Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    bool IsKind (const char *const theTypeName) const
     Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    Standard_TransientThis () const
     Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
    int GetRefCount () const noexcept
     Get the reference counter of this object.
    void IncrementRefCounter () noexcept
     Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
    int DecrementRefCounter () noexcept
     Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
    virtual void Delete () const
     Memory deallocator for transient classes.

    Additional Inherited Members

    typedef void base_type
     Returns a type descriptor about this object.
    static constexpr const char * get_type_name ()
     Returns a type descriptor about this object.
    static const opencascade::handle< Standard_Type > & get_type_descriptor ()
     Returns type descriptor of Standard_Transient class.
    Protected Attributes inherited from GeomAdaptor_TransformedCurve
    GeomAdaptor_Curve myCurve
    occ::handle< Adaptor3d_CurveOnSurfacemyConSurf
    gp_Trsf myTrsf

    Detailed Description

    The Curve from BRepAdaptor allows to use an Edge of the BRep topology like a 3D curve.

    It has the methods the class Curve from Adaptor3d.

    It is created or Initialized with an Edge. It takes into account local coordinate systems. If the Edge has a 3D curve it is use with priority. If the edge has no 3D curve one of the curves on surface is used. It is possible to enforce using a curve on surface by creating or initialising with an Edge and a Face.

    Constructor & Destructor Documentation

    ◆ BRepAdaptor_Curve() [1/3]

    BRepAdaptor_Curve::BRepAdaptor_Curve ( )

    Creates an undefined Curve with no Edge loaded.

    ◆ BRepAdaptor_Curve() [2/3]

    BRepAdaptor_Curve::BRepAdaptor_Curve ( const TopoDS_Edge & E)

    Creates a Curve to access the geometry of edge <E>.

    ◆ BRepAdaptor_Curve() [3/3]

    BRepAdaptor_Curve::BRepAdaptor_Curve ( const TopoDS_Edge & E,
    const TopoDS_Face & F )

    Creates a Curve to access the geometry of edge <E>. The geometry will be computed using the parametric curve of <E> on the face <F>. An Error is raised if the edge does not have a pcurve on the face.

    Member Function Documentation

    ◆ Edge()

    const TopoDS_Edge & BRepAdaptor_Curve::Edge ( ) const

    Returns the edge.

    ◆ Initialize() [1/2]

    void BRepAdaptor_Curve::Initialize ( const TopoDS_Edge & E)

    Sets the Curve <me> to access the geometry of edge <E>.

    ◆ Initialize() [2/2]

    void BRepAdaptor_Curve::Initialize ( const TopoDS_Edge & E,
    const TopoDS_Face & F )

    Sets the Curve <me> to access the geometry of edge <E>. The geometry will be computed using the parametric curve of <E> on the face <F>. An Error is raised if the edge does not have a pcurve on the face.

    ◆ Reset()

    void BRepAdaptor_Curve::Reset ( )

    Reset currently loaded curve (undone Load()).

    ◆ ShallowCopy()

    occ::handle< Adaptor3d_Curve > BRepAdaptor_Curve::ShallowCopy ( ) const
    overridevirtual

    Shallow copy of adaptor.

    Reimplemented from Adaptor3d_Curve.

    ◆ Tolerance()

    double BRepAdaptor_Curve::Tolerance ( ) const

    Returns the edge tolerance.

    ◆ Trim()

    occ::handle< Adaptor3d_Curve > BRepAdaptor_Curve::Trim ( const double First,
    const double Last,
    const double Tol ) const
    overridevirtual

    Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion.

    Reimplemented from Adaptor3d_Curve.


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