Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
HelixGeom_Tools Class Reference

Static utility class providing approximation algorithms for helix curves. More...

#include <HelixGeom_Tools.hxx>

Static Public Member Functions

static int ApprHelix (const double aT1, const double aT2, const double aPitch, const double aRStart, const double aTaperAngle, const bool aIsCW, const double aTol, occ::handle< Geom_BSplineCurve > &theBSpl, double &theMaxError)
 Approximates a parametric helix curve using B-spline representation.
 
static int ApprCurve3D (const occ::handle< Adaptor3d_Curve > &theHC, const double theTol, const GeomAbs_Shape theCont, const int theMaxSeg, const int theMaxDeg, occ::handle< Geom_BSplineCurve > &theBSpl, double &theMaxError)
 Approximates a generic 3D curve using B-spline representation.
 

Detailed Description

Static utility class providing approximation algorithms for helix curves.

This class contains static methods for:

The approximation algorithms use advanced techniques to ensure:

Member Function Documentation

◆ ApprCurve3D()

static int HelixGeom_Tools::ApprCurve3D ( const occ::handle< Adaptor3d_Curve > & theHC,
const double theTol,
const GeomAbs_Shape theCont,
const int theMaxSeg,
const int theMaxDeg,
occ::handle< Geom_BSplineCurve > & theBSpl,
double & theMaxError )
static

Approximates a generic 3D curve using B-spline representation.

Parameters
theHC[in] Handle to the curve adaptor to approximate
theTol[in] Approximation tolerance
theCont[in] Required continuity (C0, C1, C2)
theMaxSeg[in] Maximum number of curve segments
theMaxDeg[in] Maximum degree of B-spline curve
theBSpl[out] Resulting B-spline curve
theMaxError[out] Maximum approximation error achieved
Returns
0 on success, error code otherwise

◆ ApprHelix()

static int HelixGeom_Tools::ApprHelix ( const double aT1,
const double aT2,
const double aPitch,
const double aRStart,
const double aTaperAngle,
const bool aIsCW,
const double aTol,
occ::handle< Geom_BSplineCurve > & theBSpl,
double & theMaxError )
static

Approximates a parametric helix curve using B-spline representation.

Parameters
aT1[in] Start parameter (angular position in radians)
aT2[in] End parameter (angular position in radians)
aPitch[in] Helix pitch (vertical distance per 2*PI radians)
aRStart[in] Starting radius at parameter aT1
aTaperAngle[in] Taper angle in radians (0 = cylindrical helix)
aIsCW[in] True for clockwise, false for counter-clockwise
aTol[in] Approximation tolerance
theBSpl[out] Resulting B-spline curve
theMaxError[out] Maximum approximation error achieved
Returns
0 on success, error code otherwise

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