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

The LineTool class provides class methods to access the methodes of the Line. More...

#include <HLRBRep_LineTool.hxx>

Static Public Member Functions

static double FirstParameter (const gp_Lin &C)
 
static double LastParameter (const gp_Lin &C)
 
static GeomAbs_Shape Continuity (const gp_Lin &C)
 
static int NbIntervals (const gp_Lin &C, const GeomAbs_Shape S)
 If necessary, breaks the line in intervals of continuity . And returns the number of intervals.
 
static void Intervals (const gp_Lin &C, NCollection_Array1< double > &T, const GeomAbs_Shape Sh)
 Sets the current working interval.
 
static double IntervalFirst (const gp_Lin &C)
 Returns the first parameter of the current interval.
 
static double IntervalLast (const gp_Lin &C)
 Returns the last parameter of the current interval.
 
static GeomAbs_Shape IntervalContinuity (const gp_Lin &C)
 
static bool IsClosed (const gp_Lin &C)
 
static bool IsPeriodic (const gp_Lin &C)
 
static double Period (const gp_Lin &C)
 
static gp_Pnt Value (const gp_Lin &C, const double U)
 Computes the point of parameter U on the line.
 
static void D0 (const gp_Lin &C, const double U, gp_Pnt &P)
 Computes the point of parameter U on the line.
 
static void D1 (const gp_Lin &C, const double U, gp_Pnt &P, gp_Vec &V)
 Computes the point of parameter U on the line with its first derivative. Raised if the continuity of the current interval is not C1.
 
static void D2 (const gp_Lin &C, const double U, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2)
 Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
 
static void D3 (const gp_Lin &C, const double U, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2, gp_Vec &V3)
 Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
 
static gp_Vec DN (const gp_Lin &C, const double U, const int N)
 The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
 
static double Resolution (const gp_Lin &C, const double R3d)
 Returns the parametric resolution corresponding to the real space resolution <R3d>.
 
static GeomAbs_CurveType GetType (const gp_Lin &C)
 Returns the type of the line in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
 
static gp_Lin Line (const gp_Lin &C)
 
static gp_Circ Circle (const gp_Lin &C)
 
static gp_Elips Ellipse (const gp_Lin &C)
 
static gp_Hypr Hyperbola (const gp_Lin &C)
 
static gp_Parab Parabola (const gp_Lin &C)
 
static occ::handle< Geom_BezierCurveBezier (const gp_Lin &C)
 
static occ::handle< Geom_BSplineCurveBSpline (const gp_Lin &C)
 
static int Degree (const gp_Lin &C)
 
static int NbPoles (const gp_Lin &C)
 
static void Poles (const gp_Lin &C, NCollection_Array1< gp_Pnt > &TP)
 
static bool IsRational (const gp_Lin &C)
 
static void PolesAndWeights (const gp_Lin &C, NCollection_Array1< gp_Pnt > &TP, NCollection_Array1< double > &TW)
 
static int NbKnots (const gp_Lin &C)
 
static void KnotsAndMultiplicities (const gp_Lin &C, NCollection_Array1< double > &TK, NCollection_Array1< int > &TM)
 
static int NbSamples (const gp_Lin &C, const double U0, const double U1)
 
static occ::handle< NCollection_HArray1< double > > SamplePars (const gp_Lin &C, const double U0, const double U1, const double Defl, const int NbMin)
 Returns sample parameters for the line within [U0, U1] range.
 
static void SamplePars (const gp_Lin &C, const double U0, const double U1, const double Defl, const int NbMin, occ::handle< NCollection_HArray1< double > > &Pars)
 

Detailed Description

The LineTool class provides class methods to access the methodes of the Line.

Member Function Documentation

◆ Bezier()

static occ::handle< Geom_BezierCurve > HLRBRep_LineTool::Bezier ( const gp_Lin & C)
static

◆ BSpline()

static occ::handle< Geom_BSplineCurve > HLRBRep_LineTool::BSpline ( const gp_Lin & C)
static

◆ Circle()

static gp_Circ HLRBRep_LineTool::Circle ( const gp_Lin & C)
static

◆ Continuity()

static GeomAbs_Shape HLRBRep_LineTool::Continuity ( const gp_Lin & C)
static

◆ D0()

static void HLRBRep_LineTool::D0 ( const gp_Lin & C,
const double U,
gp_Pnt & P )
static

Computes the point of parameter U on the line.

◆ D1()

static void HLRBRep_LineTool::D1 ( const gp_Lin & C,
const double U,
gp_Pnt & P,
gp_Vec & V )
static

Computes the point of parameter U on the line with its first derivative. Raised if the continuity of the current interval is not C1.

◆ D2()

static void HLRBRep_LineTool::D2 ( const gp_Lin & C,
const double U,
gp_Pnt & P,
gp_Vec & V1,
gp_Vec & V2 )
static

Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.

◆ D3()

static void HLRBRep_LineTool::D3 ( const gp_Lin & C,
const double U,
gp_Pnt & P,
gp_Vec & V1,
gp_Vec & V2,
gp_Vec & V3 )
static

Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.

◆ Degree()

static int HLRBRep_LineTool::Degree ( const gp_Lin & C)
static

◆ DN()

static gp_Vec HLRBRep_LineTool::DN ( const gp_Lin & C,
const double U,
const int N )
static

The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.

◆ Ellipse()

static gp_Elips HLRBRep_LineTool::Ellipse ( const gp_Lin & C)
static

◆ FirstParameter()

static double HLRBRep_LineTool::FirstParameter ( const gp_Lin & C)
static

◆ GetType()

static GeomAbs_CurveType HLRBRep_LineTool::GetType ( const gp_Lin & C)
static

Returns the type of the line in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.

◆ Hyperbola()

static gp_Hypr HLRBRep_LineTool::Hyperbola ( const gp_Lin & C)
static

◆ IntervalContinuity()

static GeomAbs_Shape HLRBRep_LineTool::IntervalContinuity ( const gp_Lin & C)
static

◆ IntervalFirst()

static double HLRBRep_LineTool::IntervalFirst ( const gp_Lin & C)
static

Returns the first parameter of the current interval.

◆ IntervalLast()

static double HLRBRep_LineTool::IntervalLast ( const gp_Lin & C)
static

Returns the last parameter of the current interval.

◆ Intervals()

static void HLRBRep_LineTool::Intervals ( const gp_Lin & C,
NCollection_Array1< double > & T,
const GeomAbs_Shape Sh )
static

Sets the current working interval.

◆ IsClosed()

static bool HLRBRep_LineTool::IsClosed ( const gp_Lin & C)
static

◆ IsPeriodic()

static bool HLRBRep_LineTool::IsPeriodic ( const gp_Lin & C)
static

◆ IsRational()

static bool HLRBRep_LineTool::IsRational ( const gp_Lin & C)
static

◆ KnotsAndMultiplicities()

static void HLRBRep_LineTool::KnotsAndMultiplicities ( const gp_Lin & C,
NCollection_Array1< double > & TK,
NCollection_Array1< int > & TM )
static

◆ LastParameter()

static double HLRBRep_LineTool::LastParameter ( const gp_Lin & C)
static

◆ Line()

static gp_Lin HLRBRep_LineTool::Line ( const gp_Lin & C)
static

◆ NbIntervals()

static int HLRBRep_LineTool::NbIntervals ( const gp_Lin & C,
const GeomAbs_Shape S )
static

If necessary, breaks the line in intervals of continuity . And returns the number of intervals.

◆ NbKnots()

static int HLRBRep_LineTool::NbKnots ( const gp_Lin & C)
static

◆ NbPoles()

static int HLRBRep_LineTool::NbPoles ( const gp_Lin & C)
static

◆ NbSamples()

static int HLRBRep_LineTool::NbSamples ( const gp_Lin & C,
const double U0,
const double U1 )
static

◆ Parabola()

static gp_Parab HLRBRep_LineTool::Parabola ( const gp_Lin & C)
static

◆ Period()

static double HLRBRep_LineTool::Period ( const gp_Lin & C)
static

◆ Poles()

static void HLRBRep_LineTool::Poles ( const gp_Lin & C,
NCollection_Array1< gp_Pnt > & TP )
static

◆ PolesAndWeights()

static void HLRBRep_LineTool::PolesAndWeights ( const gp_Lin & C,
NCollection_Array1< gp_Pnt > & TP,
NCollection_Array1< double > & TW )
static

◆ Resolution()

static double HLRBRep_LineTool::Resolution ( const gp_Lin & C,
const double R3d )
static

Returns the parametric resolution corresponding to the real space resolution <R3d>.

◆ SamplePars() [1/2]

static occ::handle< NCollection_HArray1< double > > HLRBRep_LineTool::SamplePars ( const gp_Lin & C,
const double U0,
const double U1,
const double Defl,
const int NbMin )
static

Returns sample parameters for the line within [U0, U1] range.

Parameters
[in]Cthe line
[in]U0start parameter
[in]U1end parameter
[in]Defldeflection tolerance (unused for lines)
[in]NbMinminimum number of sample points (unused for lines)
Returns
array of 3 sample parameter values

◆ SamplePars() [2/2]

static void HLRBRep_LineTool::SamplePars ( const gp_Lin & C,
const double U0,
const double U1,
const double Defl,
const int NbMin,
occ::handle< NCollection_HArray1< double > > & Pars )
static
Deprecated

Use SamplePars() returning handle by value instead.

("Use SamplePars() returning handle by value instead")

◆ Value()

static gp_Pnt HLRBRep_LineTool::Value ( const gp_Lin & C,
const double U )
static

Computes the point of parameter U on the line.


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