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

ModelingAlgorithms
TKGeomAlgo
GeomAPI


GeomAPI_PointsToBSplineSurface Class Reference

This class is used to approximate or interpolate
a BSplineSurface passing through an Array2 of
points, with a given continuity.
Describes functions for building a BSpline
surface which approximates or interpolates a set of points.
A PointsToBSplineSurface object provides a framework for:
- defining the data of the BSpline surface to be built,
- implementing the approximation algorithm
or the interpolation algorithm, and consulting the results.
.

#include <GeomAPI_PointsToBSplineSurface.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_PointsToBSplineSurface ()
 Constructs an empty algorithm for
approximation or interpolation of a surface.
Use:
- an Init function to define and build the
BSpline surface by approximation, or
- an Interpolate function to define and build
the BSpline surface by interpolation.
.
Standard_EXPORT GeomAPI_PointsToBSplineSurface (const TColgp_Array2OfPnt &Points, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximates a BSpline Surface passing through an
array of Points. 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_PointsToBSplineSurface (const TColStd_Array2OfReal &ZPoints, const Standard_Real X0, const Standard_Real dX, const Standard_Real Y0, const Standard_Real dY, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximates a BSpline Surface passing through an
array of Points.

The points will be constructed as follow:
P(i,j) = gp_Pnt( X0 + (i-1)*dX ,
Y0 + (j-1)*dY ,
ZPoints(i,j) )

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
4- the parametrization of the surface will verify:
S->Value( U, V) = gp_Pnt( U, V, Z(U,V) );
.
Standard_EXPORT void Init (const TColgp_Array2OfPnt &Points, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximates a BSpline Surface 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 Interpolate (const TColgp_Array2OfPnt &Points)
 Interpolates a BSpline Surface passing through an
array of Point. The resulting BSpline will have
the following properties:
1- his degree will be 3.
2- his continuity will be C2.
.
Standard_EXPORT void Init (const TColStd_Array2OfReal &ZPoints, const Standard_Real X0, const Standard_Real dX, const Standard_Real Y0, const Standard_Real dY, const Standard_Integer DegMin=3, const Standard_Integer DegMax=8, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Real Tol3D=1.0e-3)
 Approximates a BSpline Surface passing through an
array of Points.

The points will be constructed as follow:
P(i,j) = gp_Pnt( X0 + (i-1)*dX ,
Y0 + (j-1)*dY ,
ZPoints(i,j) )

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
4- the parametrization of the surface will verify:
S->Value( U, V) = gp_Pnt( U, V, Z(U,V) );
.
Standard_EXPORT void Interpolate (const TColStd_Array2OfReal &ZPoints, const Standard_Real X0, const Standard_Real dX, const Standard_Real Y0, const Standard_Real dY)
 Interpolates a BSpline Surface passing through an
array of Points.

The points will be constructed as follow:
P(i,j) = gp_Pnt( X0 + (i-1)*dX ,
Y0 + (j-1)*dY ,
ZPoints(i,j) )

The resulting BSpline will have the following
properties:
1- his degree will be 3
2- his continuity will be C2.
4- the parametrization of the surface will verify:
S->Value( U, V) = gp_Pnt( U, V, Z(U,V) );
.
Standard_EXPORT const Handle_Geom_BSplineSurface & Surface () const
 Returns the approximate BSpline Surface
.
Standard_EXPORT operator Handle( Geom_BSplineSurface () const )

Private Attributes

Standard_Boolean myIsDone
Handle_Geom_BSplineSurface mySurface


Constructor & Destructor Documentation

Standard_EXPORT GeomAPI_PointsToBSplineSurface::GeomAPI_PointsToBSplineSurface  ) 
 

Standard_EXPORT GeomAPI_PointsToBSplineSurface::GeomAPI_PointsToBSplineSurface const TColgp_Array2OfPnt &  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_PointsToBSplineSurface::GeomAPI_PointsToBSplineSurface const TColStd_Array2OfReal &  ZPoints,
const Standard_Real  X0,
const Standard_Real  dX,
const Standard_Real  Y0,
const Standard_Real  dY,
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 operator Handle( GeomAPI_PointsToBSplineSurface::Geom_BSplineSurface  )  const
 

Standard_EXPORT void GeomAPI_PointsToBSplineSurface::Init const TColStd_Array2OfReal &  ZPoints,
const Standard_Real  X0,
const Standard_Real  dX,
const Standard_Real  Y0,
const Standard_Real  dY,
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_PointsToBSplineSurface::Init const TColgp_Array2OfPnt &  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 void GeomAPI_PointsToBSplineSurface::Interpolate const TColStd_Array2OfReal &  ZPoints,
const Standard_Real  X0,
const Standard_Real  dX,
const Standard_Real  Y0,
const Standard_Real  dY
 

Standard_EXPORT void GeomAPI_PointsToBSplineSurface::Interpolate const TColgp_Array2OfPnt &  Points  ) 
 

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

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

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

Standard_EXPORT const Handle_Geom_BSplineSurface& GeomAPI_PointsToBSplineSurface::Surface  )  const
 


Field Documentation

Standard_Boolean GeomAPI_PointsToBSplineSurface::myIsDone [private]
 

Handle_Geom_BSplineSurface GeomAPI_PointsToBSplineSurface::mySurface [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