![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Approximation of curve on surface. More...
#include <Approx_CurveOnSurface.hxx>
Public Member Functions | |
| This constructor is deprecated Use other constructor and perform method instead | Approx_CurveOnSurface (const occ::handle< Adaptor2d_Curve2d > &C2D, const occ::handle< Adaptor3d_Surface > &Surf, const double First, const double Last, const double Tol, const GeomAbs_Shape Continuity, const int MaxDegree, const int MaxSegments, const bool Only3d=false, const bool Only2d=false) |
| This constructor calls perform method. This constructor is deprecated. | |
| Approx_CurveOnSurface (const occ::handle< Adaptor2d_Curve2d > &theC2D, const occ::handle< Adaptor3d_Surface > &theSurf, const double theFirst, const double theLast, const double theTol) | |
| This constructor does not call perform method. | |
| bool | IsDone () const |
| bool | HasResult () const |
| occ::handle< Geom_BSplineCurve > | Curve3d () const |
| double | MaxError3d () const |
| occ::handle< Geom2d_BSplineCurve > | Curve2d () const |
| double | MaxError2dU () const |
| double | MaxError2dV () const |
| returns the maximum errors relatively to the U component or the V component of the 2d Curve | |
| void | Perform (const int theMaxSegments, const int theMaxDegree, const GeomAbs_Shape theContinuity, const bool theOnly3d=false, const bool theOnly2d=false) |
| Constructs the 3d curve. Input parameters are ignored when the input curve is U-isoline or V-isoline. | |
Protected Member Functions | |
| bool | isIsoLine (const occ::handle< Adaptor2d_Curve2d > &theC2D, bool &theIsU, double &theParam, bool &theIsForward) const |
| Checks whether the 2d curve is a isoline. It can be represented by b-spline, bezier, or geometric line. This line should have natural parameterization. | |
| bool | buildC3dOnIsoLine (const occ::handle< Adaptor2d_Curve2d > &theC2D, const bool theIsU, const double theParam, const bool theIsForward) |
| Builds 3D curve for a isoline. This method takes corresponding isoline from the input surface. | |
Approximation of curve on surface.
| This constructor is deprecated Use other constructor and perform method instead Approx_CurveOnSurface::Approx_CurveOnSurface | ( | const occ::handle< Adaptor2d_Curve2d > & | C2D, |
| const occ::handle< Adaptor3d_Surface > & | Surf, | ||
| const double | First, | ||
| const double | Last, | ||
| const double | Tol, | ||
| const GeomAbs_Shape | Continuity, | ||
| const int | MaxDegree, | ||
| const int | MaxSegments, | ||
| const bool | Only3d = false, | ||
| const bool | Only2d = false ) |
This constructor calls perform method. This constructor is deprecated.
| Approx_CurveOnSurface::Approx_CurveOnSurface | ( | const occ::handle< Adaptor2d_Curve2d > & | theC2D, |
| const occ::handle< Adaptor3d_Surface > & | theSurf, | ||
| const double | theFirst, | ||
| const double | theLast, | ||
| const double | theTol ) |
This constructor does not call perform method.
| theC2D | 2D Curve to be approximated in 3D. |
| theSurf | Surface where 2D curve is located. |
| theFirst | First parameter of resulting curve. |
| theFirst | Last parameter of resulting curve. |
| theTol | Computation tolerance. |
|
protected |
Builds 3D curve for a isoline. This method takes corresponding isoline from the input surface.
| theC2D | Trimmed curve to be approximated. |
| theIsU | Flag indicating that line is u const. |
| theParam | Line parameter. |
| theIsForward | Flag indicating forward parameterization on a isoline. |
| occ::handle< Geom2d_BSplineCurve > Approx_CurveOnSurface::Curve2d | ( | ) | const |
| occ::handle< Geom_BSplineCurve > Approx_CurveOnSurface::Curve3d | ( | ) | const |
| bool Approx_CurveOnSurface::HasResult | ( | ) | const |
| bool Approx_CurveOnSurface::IsDone | ( | ) | const |
|
protected |
Checks whether the 2d curve is a isoline. It can be represented by b-spline, bezier, or geometric line. This line should have natural parameterization.
| theC2D | Trimmed curve to be checked. |
| theIsU | Flag indicating that line is u const. |
| theParam | Line parameter. |
| theIsForward | Flag indicating forward parameterization on a isoline. |
| double Approx_CurveOnSurface::MaxError2dU | ( | ) | const |
| double Approx_CurveOnSurface::MaxError2dV | ( | ) | const |
returns the maximum errors relatively to the U component or the V component of the 2d Curve
| double Approx_CurveOnSurface::MaxError3d | ( | ) | const |
| void Approx_CurveOnSurface::Perform | ( | const int | theMaxSegments, |
| const int | theMaxDegree, | ||
| const GeomAbs_Shape | theContinuity, | ||
| const bool | theOnly3d = false, | ||
| const bool | theOnly2d = false ) |
Constructs the 3d curve. Input parameters are ignored when the input curve is U-isoline or V-isoline.
| theMaxSegments | Maximal number of segments in the resulting spline. |
| theMaxDegree | Maximal degree of the result. |
| theContinuity | Resulting continuity. |
| theOnly3d | Determines building only 3D curve. |
| theOnly2d | Determines building only 2D curve. |