Approximation of curve on surface.
More...
#include <Approx_CurveOnSurface.hxx>
|
| 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.
|
|
| 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.
◆ Approx_CurveOnSurface() [1/2]
| 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.
- Deprecated
- (
◆ Approx_CurveOnSurface() [2/2]
This constructor does not call perform method.
- Parameters
-
| 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. |
◆ buildC3dOnIsoLine()
| bool Approx_CurveOnSurface::buildC3dOnIsoLine |
( |
const occ::handle< Adaptor2d_Curve2d > & | theC2D, |
|
|
const bool | theIsU, |
|
|
const double | theParam, |
|
|
const bool | theIsForward ) |
|
protected |
Builds 3D curve for a isoline. This method takes corresponding isoline from the input surface.
- Parameters
-
| 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. |
- Returns
- true when 3d curve is built and false otherwise.
◆ Curve2d()
◆ Curve3d()
◆ HasResult()
| bool Approx_CurveOnSurface::HasResult |
( |
| ) |
const |
◆ IsDone()
| bool Approx_CurveOnSurface::IsDone |
( |
| ) |
const |
◆ isIsoLine()
| bool Approx_CurveOnSurface::isIsoLine |
( |
const occ::handle< Adaptor2d_Curve2d > & | theC2D, |
|
|
bool & | theIsU, |
|
|
double & | theParam, |
|
|
bool & | theIsForward ) 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.
- Parameters
-
| 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. |
- Returns
- true when 2d curve is a line and false otherwise.
◆ MaxError2dU()
| double Approx_CurveOnSurface::MaxError2dU |
( |
| ) |
const |
◆ MaxError2dV()
| double Approx_CurveOnSurface::MaxError2dV |
( |
| ) |
const |
returns the maximum errors relatively to the U component or the V component of the 2d Curve
◆ MaxError3d()
| double Approx_CurveOnSurface::MaxError3d |
( |
| ) |
const |
◆ Perform()
| 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.
- Parameters
-
| 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. |
The documentation for this class was generated from the following file: