|
Open CASCADE Technology 6.5.2
|
This package provides an implementation of algorithmes to do
the conversion between equivalent geometric entities from
package Geom2d.
It gives the possibility :
. to obtain the B-spline representation of bounded curves.
. to split a B-spline curve into several B-spline curves
with some constraints of continuity,
. to convert a B-spline curve into several Bezier curves
or surfaces.
All the geometric entities used in this package are bounded.
References :
. Generating the Bezier Points of B-spline curves and surfaces
(Wolfgang Bohm) CAGD volume 13 number 6 november 1981
. On NURBS: A Survey (Leslie Piegl) IEEE Computer Graphics and
Application January 1991
. Curve and surface construction using rational B-splines
(Leslie Piegl and Wayne Tiller) CAD Volume 19 number 9 november
1987
. A survey of curve and surface methods in CAGD (Wolfgang BOHM)
CAGD 1 1984
#include <Geom2dConvert.hxx>
Public Member Functions | |
| void * | operator new (size_t, void *anAddress) |
| void * | operator new (size_t size) |
| void | operator delete (void *anAddress) |
Static Public Member Functions | |
| static Handle_Geom2d_BSplineCurve | SplitBSplineCurve (const Handle< Geom2d_BSplineCurve > &C, const Standard_Integer FromK1, const Standard_Integer ToK2, const Standard_Boolean SameOrientation=Standard_True) |
| Raised if FromK1 = ToK2 | |
| static Handle_Geom2d_BSplineCurve | SplitBSplineCurve (const Handle< Geom2d_BSplineCurve > &C, const Standard_Real FromU1, const Standard_Real ToU2, const Standard_Real ParametricTolerance, const Standard_Boolean SameOrientation=Standard_True) |
| Raised if FromU1 or ToU2 are out of the parametric bounds of the curve (The tolerance criterion is ParametricTolerance). Raised if Abs (FromU1 - ToU2) <= ParametricTolerance Raised if ParametricTolerance < Resolution from gp. | |
| static Handle_Geom2d_BSplineCurve | CurveToBSplineCurve (const Handle< Geom2d_Curve > &C, const Convert_ParameterisationType Parameterisation=Convert_TgtThetaOver2) |
| static void | ConcatG1 (TColGeom2d_Array1OfBSplineCurve &ArrayOfCurves, const TColStd_Array1OfReal &ArrayOfToler, Handle< TColGeom2d_HArray1OfBSplineCurve > &ArrayOfConcatenated, const Standard_Boolean ClosedFlag, const Standard_Real ClosedTolerance) |
| This Method concatenates G1 the ArrayOfCurves as far as it is possible. ArrayOfCurves[0..N-1] ArrayOfToler contains the biggest tolerance of the two points shared by two consecutives curves. Its dimension: [0..N-2] ClosedTolerance indicates if the ArrayOfCurves is closed. In this case ClosedTolerance contains the biggest tolerance of the two points which are at the closure. Otherwise its value is 0.0 | |
| static void | ConcatC1 (TColGeom2d_Array1OfBSplineCurve &ArrayOfCurves, const TColStd_Array1OfReal &ArrayOfToler, Handle< TColStd_HArray1OfInteger > &ArrayOfIndices, Handle< TColGeom2d_HArray1OfBSplineCurve > &ArrayOfConcatenated, const Standard_Boolean ClosedFlag, const Standard_Real ClosedTolerance) |
| This Method concatenates C1 the ArrayOfCurves as far as it is possible. ArrayOfCurves[0..N-1] ArrayOfToler contains the biggest tolerance of the two points shared by two consecutives curves. Its dimension: [0..N-2] ClosedTolerance indicates if the ArrayOfCurves is closed. In this case ClosedTolerance contains the biggest tolerance of the two points which are at the closure. Otherwise its value is 0.0 | |
| static void | ConcatC1 (TColGeom2d_Array1OfBSplineCurve &ArrayOfCurves, const TColStd_Array1OfReal &ArrayOfToler, Handle< TColStd_HArray1OfInteger > &ArrayOfIndices, Handle< TColGeom2d_HArray1OfBSplineCurve > &ArrayOfConcatenated, const Standard_Boolean ClosedFlag, const Standard_Real ClosedTolerance, const Standard_Real AngularTolerance) |
| This Method concatenates C1 the ArrayOfCurves as far as it is possible. ArrayOfCurves[0..N-1] ArrayOfToler contains the biggest tolerance of the two points shared by two consecutives curves. Its dimension: [0..N-2] ClosedTolerance indicates if the ArrayOfCurves is closed. In this case ClosedTolerance contains the biggest tolerance of the two points which are at the closure. Otherwise its value is 0.0 | |
| static void | C0BSplineToC1BSplineCurve (Handle< Geom2d_BSplineCurve > &BS, const Standard_Real Tolerance) |
| This Method reduces as far as it is possible the multiplicities of the knots of the BSpline BS.(keeping the geometry). It returns a new BSpline which could still be C0. tolerance is a geometrical tolerance | |
| static void | C0BSplineToArrayOfC1BSplineCurve (const Handle< Geom2d_BSplineCurve > &BS, Handle< TColGeom2d_HArray1OfBSplineCurve > &tabBS, const Standard_Real Tolerance) |
| This Method reduces as far as it is possible the multiplicities of the knots of the BSpline BS.(keeping the geometry). It returns an array of BSpline C1. Tolerance is a geometrical tolerance | |
| static void | C0BSplineToArrayOfC1BSplineCurve (const Handle< Geom2d_BSplineCurve > &BS, Handle< TColGeom2d_HArray1OfBSplineCurve > &tabBS, const Standard_Real AngularTolerance, const Standard_Real Tolerance) |
| This Method reduces as far as it is possible the multiplicities of the knots of the BSpline BS.(keeping the geometry). It returns an array of BSpline C1. tolerance is a geometrical tolerance | |
| static void Geom2dConvert::C0BSplineToArrayOfC1BSplineCurve | ( | const Handle< Geom2d_BSplineCurve > & | BS, |
| Handle< TColGeom2d_HArray1OfBSplineCurve > & | tabBS, | ||
| const Standard_Real | Tolerance | ||
| ) | [static] |
| static void Geom2dConvert::C0BSplineToArrayOfC1BSplineCurve | ( | const Handle< Geom2d_BSplineCurve > & | BS, |
| Handle< TColGeom2d_HArray1OfBSplineCurve > & | tabBS, | ||
| const Standard_Real | AngularTolerance, | ||
| const Standard_Real | Tolerance | ||
| ) | [static] |
| static void Geom2dConvert::C0BSplineToC1BSplineCurve | ( | Handle< Geom2d_BSplineCurve > & | BS, |
| const Standard_Real | Tolerance | ||
| ) | [static] |
| static void Geom2dConvert::ConcatC1 | ( | TColGeom2d_Array1OfBSplineCurve & | ArrayOfCurves, |
| const TColStd_Array1OfReal & | ArrayOfToler, | ||
| Handle< TColStd_HArray1OfInteger > & | ArrayOfIndices, | ||
| Handle< TColGeom2d_HArray1OfBSplineCurve > & | ArrayOfConcatenated, | ||
| const Standard_Boolean | ClosedFlag, | ||
| const Standard_Real | ClosedTolerance, | ||
| const Standard_Real | AngularTolerance | ||
| ) | [static] |
| static void Geom2dConvert::ConcatC1 | ( | TColGeom2d_Array1OfBSplineCurve & | ArrayOfCurves, |
| const TColStd_Array1OfReal & | ArrayOfToler, | ||
| Handle< TColStd_HArray1OfInteger > & | ArrayOfIndices, | ||
| Handle< TColGeom2d_HArray1OfBSplineCurve > & | ArrayOfConcatenated, | ||
| const Standard_Boolean | ClosedFlag, | ||
| const Standard_Real | ClosedTolerance | ||
| ) | [static] |
| static void Geom2dConvert::ConcatG1 | ( | TColGeom2d_Array1OfBSplineCurve & | ArrayOfCurves, |
| const TColStd_Array1OfReal & | ArrayOfToler, | ||
| Handle< TColGeom2d_HArray1OfBSplineCurve > & | ArrayOfConcatenated, | ||
| const Standard_Boolean | ClosedFlag, | ||
| const Standard_Real | ClosedTolerance | ||
| ) | [static] |
| static Handle_Geom2d_BSplineCurve Geom2dConvert::CurveToBSplineCurve | ( | const Handle< Geom2d_Curve > & | C, |
| const Convert_ParameterisationType | Parameterisation = Convert_TgtThetaOver2 |
||
| ) | [static] |
| void Geom2dConvert::operator delete | ( | void * | anAddress | ) | [inline] |
| void* Geom2dConvert::operator new | ( | size_t | size | ) | [inline] |
| void* Geom2dConvert::operator new | ( | size_t | , |
| void * | anAddress | ||
| ) | [inline] |
| static Handle_Geom2d_BSplineCurve Geom2dConvert::SplitBSplineCurve | ( | const Handle< Geom2d_BSplineCurve > & | C, |
| const Standard_Integer | FromK1, | ||
| const Standard_Integer | ToK2, | ||
| const Standard_Boolean | SameOrientation = Standard_True |
||
| ) | [static] |
| static Handle_Geom2d_BSplineCurve Geom2dConvert::SplitBSplineCurve | ( | const Handle< Geom2d_BSplineCurve > & | C, |
| const Standard_Real | FromU1, | ||
| const Standard_Real | ToU2, | ||
| const Standard_Real | ParametricTolerance, | ||
| const Standard_Boolean | SameOrientation = Standard_True |
||
| ) | [static] |
1.7.4