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

#include <GeomConvert_CurveToAnaCurve.hxx>

Public Member Functions

 GeomConvert_CurveToAnaCurve ()
 
 GeomConvert_CurveToAnaCurve (const occ::handle< Geom_Curve > &C)
 
void Init (const occ::handle< Geom_Curve > &C)
 
bool ConvertToAnalytical (const double theTol, occ::handle< Geom_Curve > &theResultCurve, const double F, const double L, double &newF, double &newL)
 Converts me to analytical if possible with given tolerance. The new first and last parameters are returned to newF, newL.
 
double Gap () const
 Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical.
 
GeomConvert_ConvType GetConvType () const
 Returns conversion type.
 
void SetConvType (const GeomConvert_ConvType theConvType)
 Sets type of conversion.
 
GeomAbs_CurveType GetTarget () const
 Returns target curve type.
 
void SetTarget (const GeomAbs_CurveType theTarget)
 Sets target curve type.
 

Static Public Member Functions

static occ::handle< Geom_CurveComputeCurve (const occ::handle< Geom_Curve > &curve, const double tolerance, const double c1, const double c2, double &cf, double &cl, double &theGap, const GeomConvert_ConvType theCurvType=GeomConvert_MinGap, const GeomAbs_CurveType theTarget=GeomAbs_Line)
 
static occ::handle< Geom_CurveComputeCircle (const occ::handle< Geom_Curve > &curve, const double tolerance, const double c1, const double c2, double &cf, double &cl, double &Deviation)
 Tries to convert the given curve to circle with given tolerance. Returns NULL curve if conversion is not possible.
 
static occ::handle< Geom_CurveComputeEllipse (const occ::handle< Geom_Curve > &curve, const double tolerance, const double c1, const double c2, double &cf, double &cl, double &Deviation)
 Tries to convert the given curve to ellipse with given tolerance. Returns NULL curve if conversion is not possible.
 
static occ::handle< Geom_LineComputeLine (const occ::handle< Geom_Curve > &curve, const double tolerance, const double c1, const double c2, double &cf, double &cl, double &Deviation)
 Tries to convert the given curve to line with given tolerance. Returns NULL curve if conversion is not possible.
 
static bool IsLinear (const NCollection_Array1< gp_Pnt > &aPoints, const double tolerance, double &Deviation)
 Returns true if the set of points is linear with given tolerance.
 
static gp_Lin GetLine (const gp_Pnt &P1, const gp_Pnt &P2, double &cf, double &cl)
 Creates line on two points. Resulting parameters returned.
 
static bool GetCircle (gp_Circ &Circ, const gp_Pnt &P0, const gp_Pnt &P1, const gp_Pnt &P2)
 Creates circle on points. Returns true if OK.
 

Constructor & Destructor Documentation

◆ GeomConvert_CurveToAnaCurve() [1/2]

GeomConvert_CurveToAnaCurve::GeomConvert_CurveToAnaCurve ( )

◆ GeomConvert_CurveToAnaCurve() [2/2]

GeomConvert_CurveToAnaCurve::GeomConvert_CurveToAnaCurve ( const occ::handle< Geom_Curve > & C)

Member Function Documentation

◆ ComputeCircle()

static occ::handle< Geom_Curve > GeomConvert_CurveToAnaCurve::ComputeCircle ( const occ::handle< Geom_Curve > & curve,
const double tolerance,
const double c1,
const double c2,
double & cf,
double & cl,
double & Deviation )
static

Tries to convert the given curve to circle with given tolerance. Returns NULL curve if conversion is not possible.

◆ ComputeCurve()

static occ::handle< Geom_Curve > GeomConvert_CurveToAnaCurve::ComputeCurve ( const occ::handle< Geom_Curve > & curve,
const double tolerance,
const double c1,
const double c2,
double & cf,
double & cl,
double & theGap,
const GeomConvert_ConvType theCurvType = GeomConvert_MinGap,
const GeomAbs_CurveType theTarget = GeomAbs_Line )
static

◆ ComputeEllipse()

static occ::handle< Geom_Curve > GeomConvert_CurveToAnaCurve::ComputeEllipse ( const occ::handle< Geom_Curve > & curve,
const double tolerance,
const double c1,
const double c2,
double & cf,
double & cl,
double & Deviation )
static

Tries to convert the given curve to ellipse with given tolerance. Returns NULL curve if conversion is not possible.

◆ ComputeLine()

static occ::handle< Geom_Line > GeomConvert_CurveToAnaCurve::ComputeLine ( const occ::handle< Geom_Curve > & curve,
const double tolerance,
const double c1,
const double c2,
double & cf,
double & cl,
double & Deviation )
static

Tries to convert the given curve to line with given tolerance. Returns NULL curve if conversion is not possible.

◆ ConvertToAnalytical()

bool GeomConvert_CurveToAnaCurve::ConvertToAnalytical ( const double theTol,
occ::handle< Geom_Curve > & theResultCurve,
const double F,
const double L,
double & newF,
double & newL )

Converts me to analytical if possible with given tolerance. The new first and last parameters are returned to newF, newL.

◆ Gap()

double GeomConvert_CurveToAnaCurve::Gap ( ) const
inline

Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical.

◆ GetCircle()

static bool GeomConvert_CurveToAnaCurve::GetCircle ( gp_Circ & Circ,
const gp_Pnt & P0,
const gp_Pnt & P1,
const gp_Pnt & P2 )
static

Creates circle on points. Returns true if OK.

◆ GetConvType()

GeomConvert_ConvType GeomConvert_CurveToAnaCurve::GetConvType ( ) const
inline

Returns conversion type.

◆ GetLine()

static gp_Lin GeomConvert_CurveToAnaCurve::GetLine ( const gp_Pnt & P1,
const gp_Pnt & P2,
double & cf,
double & cl )
static

Creates line on two points. Resulting parameters returned.

◆ GetTarget()

GeomAbs_CurveType GeomConvert_CurveToAnaCurve::GetTarget ( ) const
inline

Returns target curve type.

◆ Init()

void GeomConvert_CurveToAnaCurve::Init ( const occ::handle< Geom_Curve > & C)

◆ IsLinear()

static bool GeomConvert_CurveToAnaCurve::IsLinear ( const NCollection_Array1< gp_Pnt > & aPoints,
const double tolerance,
double & Deviation )
static

Returns true if the set of points is linear with given tolerance.

◆ SetConvType()

void GeomConvert_CurveToAnaCurve::SetConvType ( const GeomConvert_ConvType theConvType)
inline

Sets type of conversion.

◆ SetTarget()

void GeomConvert_CurveToAnaCurve::SetTarget ( const GeomAbs_CurveType theTarget)
inline

Sets target curve type.


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