Open CASCADE Technology  7.7.0
Public Member Functions | Static Public Member Functions

GeomConvert_CurveToAnaCurve Class Reference

#include <GeomConvert_CurveToAnaCurve.hxx>

Public Member Functions

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

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ GeomConvert_CurveToAnaCurve() [1/2]

GeomConvert_CurveToAnaCurve::GeomConvert_CurveToAnaCurve ( )

◆ GeomConvert_CurveToAnaCurve() [2/2]

GeomConvert_CurveToAnaCurve::GeomConvert_CurveToAnaCurve ( const Handle< Geom_Curve > &  C)

Member Function Documentation

◆ ComputeCircle()

static Handle< Geom_Curve > GeomConvert_CurveToAnaCurve::ComputeCircle ( const Handle< Geom_Curve > &  curve,
const Standard_Real  tolerance,
const Standard_Real  c1,
const Standard_Real  c2,
Standard_Real cf,
Standard_Real cl,
Standard_Real Deviation 
)
static

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

◆ ComputeCurve()

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

◆ ComputeEllipse()

static Handle< Geom_Curve > GeomConvert_CurveToAnaCurve::ComputeEllipse ( const Handle< Geom_Curve > &  curve,
const Standard_Real  tolerance,
const Standard_Real  c1,
const Standard_Real  c2,
Standard_Real cf,
Standard_Real cl,
Standard_Real Deviation 
)
static

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

◆ ComputeLine()

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

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

◆ ConvertToAnalytical()

Standard_Boolean GeomConvert_CurveToAnaCurve::ConvertToAnalytical ( const Standard_Real  theTol,
Handle< Geom_Curve > &  theResultCurve,
const Standard_Real  F,
const Standard_Real  L,
Standard_Real newF,
Standard_Real newL 
)

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

◆ Gap()

Standard_Real GeomConvert_CurveToAnaCurve::Gap ( ) const
inline

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

◆ GetCircle()

static Standard_Boolean 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,
Standard_Real cf,
Standard_Real 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 Handle< Geom_Curve > &  C)

◆ IsLinear()

static Standard_Boolean GeomConvert_CurveToAnaCurve::IsLinear ( const TColgp_Array1OfPnt aPoints,
const Standard_Real  tolerance,
Standard_Real 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 convertion.

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