![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
The Curve from BRepAdaptor allows to use an Edge of the BRep topology like a 3D curve. More...
#include <BRepAdaptor_Curve.hxx>

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_Curve > | ShallowCopy () 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_Edge & | Edge () const |
| Returns the edge. | |
| double | Tolerance () const |
| Returns the edge tolerance. | |
| occ::handle< Adaptor3d_Curve > | Trim (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_Curve > | ShallowCopy () 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_Trsf & | Trsf () 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_Curve & | Curve () const |
| Returns the underlying GeomAdaptor_Curve. | |
| GeomAdaptor_Curve & | ChangeCurve () |
| Returns the underlying GeomAdaptor_Curve for modification. | |
| const Adaptor3d_CurveOnSurface & | CurveOnSurface () 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 | |
| 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_Curve > | Trim (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_BezierCurve > | Bezier () const override |
| occ::handle< Geom_BSplineCurve > | BSpline () const override |
| occ::handle< Geom_OffsetCurve > | OffsetCurve () 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_Transient & | operator= (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_Transient * | This () 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 | |
Public Types inherited from Standard_Transient | |
| typedef void | base_type |
| Returns a type descriptor about this object. | |
Static Public Member Functions inherited from Standard_Transient | |
| 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_CurveOnSurface > | myConSurf |
| gp_Trsf | myTrsf |
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.
| BRepAdaptor_Curve::BRepAdaptor_Curve | ( | ) |
Creates an undefined Curve with no Edge loaded.
| BRepAdaptor_Curve::BRepAdaptor_Curve | ( | const TopoDS_Edge & | E | ) |
Creates a Curve to access the geometry of edge <E>.
| 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.
| const TopoDS_Edge & BRepAdaptor_Curve::Edge | ( | ) | const |
Returns the edge.
| void BRepAdaptor_Curve::Initialize | ( | const TopoDS_Edge & | E | ) |
Sets the Curve <me> to access the geometry of edge <E>.
| 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.
|
overridevirtual |
Shallow copy of adaptor.
Reimplemented from Adaptor3d_Curve.
| double BRepAdaptor_Curve::Tolerance | ( | ) | const |
Returns the edge tolerance.
|
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.