OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKGeomAlgo
GeomAPI


GeomAPI_PointsToBSpline Class Reference

This class is used to approximate a BsplineCurve
passing through an array of points, with a given Continuity.
Describes functions for building a 3D BSpline
curve which approximates a set of points.
A PointsToBSpline object provides a framework for:
- defining the data of the BSpline curve to be built,
- implementing the approximation algorithm, and consulting the results.
.

#include <GeomAPI_PointsToBSpline.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT GeomAPI_PointsToBSpline ()
 Constructs an empty approximation algorithm.
Use an Init function to define and build the BSpline curve.
.
Standard_EXPORT GeomAPI_PointsToBSpline (const TColgp_Array1OfPnt &Points, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximate a BSpline Curve passing through an
array of Point. The resulting BSpline will have
the following properties:
1- his degree will be in the range [Degmin,Degmax]
2- his continuity will be at least <continuity>
3- the distance from the point <points> to the
BSpline will be lower to Tol3D
.
Standard_EXPORT GeomAPI_PointsToBSpline (const TColgp_Array1OfPnt &Points, const TColStd_Array1OfReal &Parameters, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximate a BSpline Curve passing through an
array of Point, which parameters are given by the
array <parameters>.
The resulting BSpline will have the following
properties:
1- his degree will be in the range [Degmin,Degmax]
2- his continuity will be at least <continuity>
3- the distance from the point <points> to the
BSpline will be lower to Tol3D
.
Standard_EXPORT void Init (const TColgp_Array1OfPnt &Points, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximate a BSpline Curve passing through an
array of Point. The resulting BSpline will have
the following properties:
1- his degree will be in the range [Degmin,Degmax]
2- his continuity will be at least <continuity>
3- the distance from the point <points> to the
BSpline will be lower to Tol3D
.
Standard_EXPORT void Init (const TColgp_Array1OfPnt &Points, const TColStd_Array1OfReal &Parameters, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximate a BSpline Curve passing through an
array of Point, which parameters are given by the
array <parameters>.
The resulting BSpline will have the following
properties:
1- his degree will be in the range [Degmin,Degmax]
2- his continuity will be at least <continuity>
3- the distance from the point <points> to the
BSpline will be lower to Tol3D
.
Standard_EXPORT const Handle_Geom_BSplineCurve & Curve () const
 Returns the computed BSpline curve.
Raises StdFail_NotDone if the curve is not built.
.
Standard_EXPORT operator Handle( Geom_BSplineCurve () const )

Private Attributes

Standard_Boolean myIsDone
Handle_Geom_BSplineCurve myCurve


Constructor & Destructor Documentation

Standard_EXPORT GeomAPI_PointsToBSpline::GeomAPI_PointsToBSpline  ) 
 

Standard_EXPORT GeomAPI_PointsToBSpline::GeomAPI_PointsToBSpline const TColgp_Array1OfPnt &  Points,
const Standard_Integer  DegMin = 3,
const Standard_Integer  DegMax = 8,
const GeomAbs_Shape  Continuity = GeomAbs_C2,
const Standard_Real  Tol3D = 1.0e-3
 

Standard_EXPORT GeomAPI_PointsToBSpline::GeomAPI_PointsToBSpline const TColgp_Array1OfPnt &  Points,
const TColStd_Array1OfReal &  Parameters,
const Standard_Integer  DegMin = 3,
const Standard_Integer  DegMax = 8,
const GeomAbs_Shape  Continuity = GeomAbs_C2,
const Standard_Real  Tol3D = 1.0e-3
 


Member Function Documentation

Standard_EXPORT const Handle_Geom_BSplineCurve& GeomAPI_PointsToBSpline::Curve  )  const
 

Standard_EXPORT operator Handle( GeomAPI_PointsToBSpline::Geom_BSplineCurve  )  const
 

Standard_EXPORT void GeomAPI_PointsToBSpline::Init const TColgp_Array1OfPnt &  Points,
const TColStd_Array1OfReal &  Parameters,
const Standard_Integer  DegMin = 3,
const Standard_Integer  DegMax = 8,
const GeomAbs_Shape  Continuity = GeomAbs_C2,
const Standard_Real  Tol3D = 1.0e-3
 

Standard_EXPORT void GeomAPI_PointsToBSpline::Init const TColgp_Array1OfPnt &  Points,
const Standard_Integer  DegMin = 3,
const Standard_Integer  DegMax = 8,
const GeomAbs_Shape  Continuity = GeomAbs_C2,
const Standard_Real  Tol3D = 1.0e-3
 

void GeomAPI_PointsToBSpline::operator delete void *  anAddress  )  [inline]
 

void* GeomAPI_PointsToBSpline::operator new size_t  size  )  [inline]
 

void* GeomAPI_PointsToBSpline::operator new size_t  ,
void *  anAddress
[inline]
 


Field Documentation

Handle_Geom_BSplineCurve GeomAPI_PointsToBSpline::myCurve [private]
 

Standard_Boolean GeomAPI_PointsToBSpline::myIsDone [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:41:49 2008 for OpenCASCADE by  doxygen 1.4.1