Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
Approx_CurveOnSurface Class Reference

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_BSplineCurveCurve3d () const
 
double MaxError3d () const
 
occ::handle< Geom2d_BSplineCurveCurve2d () 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.
 

Detailed Description

Approximation of curve on surface.

Constructor & Destructor Documentation

◆ 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]

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.

Parameters
theC2D2D Curve to be approximated in 3D.
theSurfSurface where 2D curve is located.
theFirstFirst parameter of resulting curve.
theFirstLast parameter of resulting curve.
theTolComputation tolerance.

Member Function Documentation

◆ 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
theC2DTrimmed curve to be approximated.
theIsUFlag indicating that line is u const.
theParamLine parameter.
theIsForwardFlag indicating forward parameterization on a isoline.
Returns
true when 3d curve is built and false otherwise.

◆ Curve2d()

occ::handle< Geom2d_BSplineCurve > Approx_CurveOnSurface::Curve2d ( ) const

◆ Curve3d()

occ::handle< Geom_BSplineCurve > Approx_CurveOnSurface::Curve3d ( ) const

◆ 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
theC2DTrimmed curve to be checked.
theIsUFlag indicating that line is u const.
theParamLine parameter.
theIsForwardFlag 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
theMaxSegmentsMaximal number of segments in the resulting spline.
theMaxDegreeMaximal degree of the result.
theContinuityResulting continuity.
theOnly3dDetermines building only 3D curve.
theOnly2dDetermines building only 2D curve.

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