Open CASCADE Technology
7.6.0
|
Approximation of curve on surface. More...
#include <Approx_CurveOnSurface.hxx>
Public Member Functions | |
Approx_CurveOnSurface (const Handle< Adaptor2d_Curve2d > &C2D, const Handle< Adaptor3d_Surface > &Surf, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol, const GeomAbs_Shape Continuity, const Standard_Integer MaxDegree, const Standard_Integer MaxSegments, const Standard_Boolean Only3d=Standard_False, const Standard_Boolean Only2d=Standard_False) | |
This constructor calls perform method. This constructor is deprecated. More... | |
Approx_CurveOnSurface (const Handle< Adaptor2d_Curve2d > &theC2D, const Handle< Adaptor3d_Surface > &theSurf, const Standard_Real theFirst, const Standard_Real theLast, const Standard_Real theTol) | |
This constructor does not call perform method. More... | |
Standard_Boolean | IsDone () const |
Standard_Boolean | HasResult () const |
Handle< Geom_BSplineCurve > | Curve3d () const |
Standard_Real | MaxError3d () const |
Handle< Geom2d_BSplineCurve > | Curve2d () const |
Standard_Real | MaxError2dU () const |
Standard_Real | MaxError2dV () const |
returns the maximum errors relatively to the U component or the V component of the 2d Curve More... | |
void | Perform (const Standard_Integer theMaxSegments, const Standard_Integer theMaxDegree, const GeomAbs_Shape theContinuity, const Standard_Boolean theOnly3d=Standard_False, const Standard_Boolean theOnly2d=Standard_False) |
Constructs the 3d curve. Input parameters are ignored when the input curve is U-isoline or V-isoline. More... | |
Protected Member Functions | |
Standard_Boolean | isIsoLine (const Handle< Adaptor2d_Curve2d > theC2D, Standard_Boolean &theIsU, Standard_Real &theParam, Standard_Boolean &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. More... | |
Standard_Boolean | buildC3dOnIsoLine (const Handle< Adaptor2d_Curve2d > theC2D, const Standard_Boolean theIsU, const Standard_Real theParam, const Standard_Boolean theIsForward) |
Builds 3D curve for a isoline. This method takes corresponding isoline from the input surface. More... | |
Approximation of curve on surface.
Approx_CurveOnSurface::Approx_CurveOnSurface | ( | const Handle< Adaptor2d_Curve2d > & | C2D, |
const Handle< Adaptor3d_Surface > & | Surf, | ||
const Standard_Real | First, | ||
const Standard_Real | Last, | ||
const Standard_Real | Tol, | ||
const GeomAbs_Shape | Continuity, | ||
const Standard_Integer | MaxDegree, | ||
const Standard_Integer | MaxSegments, | ||
const Standard_Boolean | Only3d = Standard_False , |
||
const Standard_Boolean | Only2d = Standard_False |
||
) |
This constructor calls perform method. This constructor is deprecated.
Approx_CurveOnSurface::Approx_CurveOnSurface | ( | const Handle< Adaptor2d_Curve2d > & | theC2D, |
const Handle< Adaptor3d_Surface > & | theSurf, | ||
const Standard_Real | theFirst, | ||
const Standard_Real | theLast, | ||
const Standard_Real | 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. |
Handle< Geom2d_BSplineCurve > Approx_CurveOnSurface::Curve2d | ( | ) | const |
Handle< Geom_BSplineCurve > Approx_CurveOnSurface::Curve3d | ( | ) | const |
Standard_Boolean Approx_CurveOnSurface::HasResult | ( | ) | const |
Standard_Boolean 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. |
Standard_Real Approx_CurveOnSurface::MaxError2dU | ( | ) | const |
Standard_Real Approx_CurveOnSurface::MaxError2dV | ( | ) | const |
returns the maximum errors relatively to the U component or the V component of the 2d Curve
Standard_Real Approx_CurveOnSurface::MaxError3d | ( | ) | const |
void Approx_CurveOnSurface::Perform | ( | const Standard_Integer | theMaxSegments, |
const Standard_Integer | theMaxDegree, | ||
const GeomAbs_Shape | theContinuity, | ||
const Standard_Boolean | theOnly3d = Standard_False , |
||
const Standard_Boolean | theOnly2d = Standard_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. |