Open CASCADE Technology 7.8.2.dev
BRepApprox_TheMultiLineOfApprox Class Reference

#include <BRepApprox_TheMultiLineOfApprox.hxx>

Public Member Functions

 BRepApprox_TheMultiLineOfApprox ()
 
 BRepApprox_TheMultiLineOfApprox (const Handle< BRepApprox_ApproxLine > &line, const Standard_Address PtrSvSurfaces, const Standard_Integer NbP3d, const Standard_Integer NbP2d, const Standard_Boolean ApproxU1V1, const Standard_Boolean ApproxU2V2, const Standard_Real xo, const Standard_Real yo, const Standard_Real zo, const Standard_Real u1o, const Standard_Real v1o, const Standard_Real u2o, const Standard_Real v2o, const Standard_Boolean P2DOnFirst, const Standard_Integer IndMin=0, const Standard_Integer IndMax=0)
 The class SvSurfaces is used when the approximation algorithm needs some extra points on the line <line>. A New line is then created which shares the same surfaces and functions. SvSurfaces is a deferred class which allows several implementations of this algorithm with different surfaces (bi-parametric ones, or implicit and biparametric ones)
 
 BRepApprox_TheMultiLineOfApprox (const Handle< BRepApprox_ApproxLine > &line, const Standard_Integer NbP3d, const Standard_Integer NbP2d, const Standard_Boolean ApproxU1V1, const Standard_Boolean ApproxU2V2, const Standard_Real xo, const Standard_Real yo, const Standard_Real zo, const Standard_Real u1o, const Standard_Real v1o, const Standard_Real u2o, const Standard_Real v2o, const Standard_Boolean P2DOnFirst, const Standard_Integer IndMin=0, const Standard_Integer IndMax=0)
 No Extra points will be added on the current line.
 
Standard_Integer FirstPoint () const
 
Standard_Integer LastPoint () const
 
Standard_Integer NbP2d () const
 Returns the number of 2d points of a TheLine.
 
Standard_Integer NbP3d () const
 Returns the number of 3d points of a TheLine.
 
Approx_Status WhatStatus () const
 
void Value (const Standard_Integer MPointIndex, TColgp_Array1OfPnt &tabPt) const
 Returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
 
void Value (const Standard_Integer MPointIndex, TColgp_Array1OfPnt2d &tabPt2d) const
 Returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.
 
void Value (const Standard_Integer MPointIndex, TColgp_Array1OfPnt &tabPt, TColgp_Array1OfPnt2d &tabPt2d) const
 Returns the 3d and 2d points of the multipoint <MPointIndex>.
 
Standard_Boolean Tangency (const Standard_Integer MPointIndex, TColgp_Array1OfVec &tabV) const
 Returns the 3d tangency points of the multipoint <MPointIndex> only when 3d points exist.
 
Standard_Boolean Tangency (const Standard_Integer MPointIndex, TColgp_Array1OfVec2d &tabV2d) const
 Returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.
 
Standard_Boolean Tangency (const Standard_Integer MPointIndex, TColgp_Array1OfVec &tabV, TColgp_Array1OfVec2d &tabV2d) const
 Returns the 3d and 2d points of the multipoint <MPointIndex>.
 
BRepApprox_TheMultiLineOfApprox MakeMLBetween (const Standard_Integer Low, const Standard_Integer High, const Standard_Integer NbPointsToInsert) const
 Tries to make a sub-line between <Low> and <High> points of this line by adding <NbPointsToInsert> new points.
 
Standard_Boolean MakeMLOneMorePoint (const Standard_Integer Low, const Standard_Integer High, const Standard_Integer indbad, BRepApprox_TheMultiLineOfApprox &OtherLine) const
 Tries to make a sub-line between <Low> and <High> points of this line by adding one more point between (indbad-1)-th and indbad-th points.
 
void Dump () const
 Dump of the current multi-line.
 

Constructor & Destructor Documentation

◆ BRepApprox_TheMultiLineOfApprox() [1/3]

BRepApprox_TheMultiLineOfApprox::BRepApprox_TheMultiLineOfApprox ( )

◆ BRepApprox_TheMultiLineOfApprox() [2/3]

BRepApprox_TheMultiLineOfApprox::BRepApprox_TheMultiLineOfApprox ( const Handle< BRepApprox_ApproxLine > & line,
const Standard_Address PtrSvSurfaces,
const Standard_Integer NbP3d,
const Standard_Integer NbP2d,
const Standard_Boolean ApproxU1V1,
const Standard_Boolean ApproxU2V2,
const Standard_Real xo,
const Standard_Real yo,
const Standard_Real zo,
const Standard_Real u1o,
const Standard_Real v1o,
const Standard_Real u2o,
const Standard_Real v2o,
const Standard_Boolean P2DOnFirst,
const Standard_Integer IndMin = 0,
const Standard_Integer IndMax = 0 )

The class SvSurfaces is used when the approximation algorithm needs some extra points on the line <line>. A New line is then created which shares the same surfaces and functions. SvSurfaces is a deferred class which allows several implementations of this algorithm with different surfaces (bi-parametric ones, or implicit and biparametric ones)

◆ BRepApprox_TheMultiLineOfApprox() [3/3]

BRepApprox_TheMultiLineOfApprox::BRepApprox_TheMultiLineOfApprox ( const Handle< BRepApprox_ApproxLine > & line,
const Standard_Integer NbP3d,
const Standard_Integer NbP2d,
const Standard_Boolean ApproxU1V1,
const Standard_Boolean ApproxU2V2,
const Standard_Real xo,
const Standard_Real yo,
const Standard_Real zo,
const Standard_Real u1o,
const Standard_Real v1o,
const Standard_Real u2o,
const Standard_Real v2o,
const Standard_Boolean P2DOnFirst,
const Standard_Integer IndMin = 0,
const Standard_Integer IndMax = 0 )

No Extra points will be added on the current line.

Member Function Documentation

◆ Dump()

void BRepApprox_TheMultiLineOfApprox::Dump ( ) const

Dump of the current multi-line.

◆ FirstPoint()

Standard_Integer BRepApprox_TheMultiLineOfApprox::FirstPoint ( ) const

◆ LastPoint()

Standard_Integer BRepApprox_TheMultiLineOfApprox::LastPoint ( ) const

◆ MakeMLBetween()

BRepApprox_TheMultiLineOfApprox BRepApprox_TheMultiLineOfApprox::MakeMLBetween ( const Standard_Integer Low,
const Standard_Integer High,
const Standard_Integer NbPointsToInsert ) const

Tries to make a sub-line between <Low> and <High> points of this line by adding <NbPointsToInsert> new points.

◆ MakeMLOneMorePoint()

Standard_Boolean BRepApprox_TheMultiLineOfApprox::MakeMLOneMorePoint ( const Standard_Integer Low,
const Standard_Integer High,
const Standard_Integer indbad,
BRepApprox_TheMultiLineOfApprox & OtherLine ) const

Tries to make a sub-line between <Low> and <High> points of this line by adding one more point between (indbad-1)-th and indbad-th points.

◆ NbP2d()

Standard_Integer BRepApprox_TheMultiLineOfApprox::NbP2d ( ) const

Returns the number of 2d points of a TheLine.

◆ NbP3d()

Standard_Integer BRepApprox_TheMultiLineOfApprox::NbP3d ( ) const

Returns the number of 3d points of a TheLine.

◆ Tangency() [1/3]

Standard_Boolean BRepApprox_TheMultiLineOfApprox::Tangency ( const Standard_Integer MPointIndex,
TColgp_Array1OfVec & tabV ) const

Returns the 3d tangency points of the multipoint <MPointIndex> only when 3d points exist.

◆ Tangency() [2/3]

Standard_Boolean BRepApprox_TheMultiLineOfApprox::Tangency ( const Standard_Integer MPointIndex,
TColgp_Array1OfVec & tabV,
TColgp_Array1OfVec2d & tabV2d ) const

Returns the 3d and 2d points of the multipoint <MPointIndex>.

◆ Tangency() [3/3]

Standard_Boolean BRepApprox_TheMultiLineOfApprox::Tangency ( const Standard_Integer MPointIndex,
TColgp_Array1OfVec2d & tabV2d ) const

Returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.

◆ Value() [1/3]

void BRepApprox_TheMultiLineOfApprox::Value ( const Standard_Integer MPointIndex,
TColgp_Array1OfPnt & tabPt ) const

Returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.

◆ Value() [2/3]

void BRepApprox_TheMultiLineOfApprox::Value ( const Standard_Integer MPointIndex,
TColgp_Array1OfPnt & tabPt,
TColgp_Array1OfPnt2d & tabPt2d ) const

Returns the 3d and 2d points of the multipoint <MPointIndex>.

◆ Value() [3/3]

void BRepApprox_TheMultiLineOfApprox::Value ( const Standard_Integer MPointIndex,
TColgp_Array1OfPnt2d & tabPt2d ) const

Returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.

◆ WhatStatus()

Approx_Status BRepApprox_TheMultiLineOfApprox::WhatStatus ( ) const

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