|
Open CASCADE Technology
6.7.1
|
Provides an algorithm to compute a distribution of
points on a 'C2' continuous curve. The algorithm
respects a criterion of maximum deflection between
the curve and the polygon that results from the computed points.
Note: This algorithm is relatively time consuming. A
GCPnts_QuasiUniformDeflection algorithm is
quicker; it can also work with non-'C2' continuous
curves, but it generates more points in the distribution.
More...
#include <GCPnts_UniformDeflection.hxx>
Public Member Functions | |
| GCPnts_UniformDeflection () | |
Constructs an empty algorithm. To define the problem <br> to be solved, use the function Initialize. | |
| GCPnts_UniformDeflection (Adaptor3d_Curve &C, const Standard_Real Deflection, const Standard_Boolean WithControl=Standard_True) | |
Computes a uniform Deflection distribution of points on <br> the Curve | |
| GCPnts_UniformDeflection (Adaptor2d_Curve2d &C, const Standard_Real Deflection, const Standard_Boolean WithControl=Standard_True) | |
Computes a uniform Deflection distribution of points on <br> the Curve | |
| GCPnts_UniformDeflection (Adaptor3d_Curve &C, const Standard_Real Deflection, const Standard_Real U1, const Standard_Real U2, const Standard_Boolean WithControl=Standard_True) | |
Computes a Uniform Deflection distribution of points <br> on a part of the Curve | |
| GCPnts_UniformDeflection (Adaptor2d_Curve2d &C, const Standard_Real Deflection, const Standard_Real U1, const Standard_Real U2, const Standard_Boolean WithControl=Standard_True) | |
Computes a Uniform Deflection distribution of points <br> on a part of the Curve | |
| void | Initialize (Adaptor3d_Curve &C, const Standard_Real Deflection, const Standard_Boolean WithControl=Standard_True) |
Initialize the algoritms with , <Deflection> More... | |
| void | Initialize (Adaptor2d_Curve2d &C, const Standard_Real Deflection, const Standard_Boolean WithControl=Standard_True) |
Initialize the algoritms with , <Deflection> More... | |
| void | Initialize (Adaptor3d_Curve &C, const Standard_Real Deflection, const Standard_Real U1, const Standard_Real U2, const Standard_Boolean WithControl=Standard_True) |
Initialize the algoritms with , <Deflection>, More... | |
| void | Initialize (Adaptor2d_Curve2d &C, const Standard_Real Deflection, const Standard_Real U1, const Standard_Real U2, const Standard_Boolean WithControl=Standard_True) |
Initialize the algoritms with <C>, <Deflection>, <br>
<U1>,<U2> <br>
This and the above methods initialize (or reinitialize) this algorithm and | |
| Standard_Boolean | IsDone () const |
Returns true if the computation was successful. <br> IsDone is a protection against: | |
| Standard_Integer | NbPoints () const |
Returns the number of points of the distribution <br> computed by this algorithm. | |
| Standard_Real | Parameter (const Standard_Integer Index) const |
Returns the parameter of the point of index Index in <br> the distribution computed by this algorithm. | |
| gp_Pnt | Value (const Standard_Integer Index) const |
Returns the point of index Index in the distribution <br> computed by this algorithm. | |
| Standard_Real | Deflection () const |
Returns the deflection between the curve and the <br> polygon resulting from the points of the distribution | |
Provides an algorithm to compute a distribution of
points on a 'C2' continuous curve. The algorithm
respects a criterion of maximum deflection between
the curve and the polygon that results from the computed points.
Note: This algorithm is relatively time consuming. A
GCPnts_QuasiUniformDeflection algorithm is
quicker; it can also work with non-'C2' continuous
curves, but it generates more points in the distribution.
| GCPnts_UniformDeflection::GCPnts_UniformDeflection | ( | ) |
Constructs an empty algorithm. To define the problem <br>
to be solved, use the function Initialize.
| GCPnts_UniformDeflection::GCPnts_UniformDeflection | ( | Adaptor3d_Curve & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Computes a uniform Deflection distribution of points on <br>
the Curve .
if <WithControl> is True,the algorithm controls the estimate
deflection
| GCPnts_UniformDeflection::GCPnts_UniformDeflection | ( | Adaptor2d_Curve2d & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Computes a uniform Deflection distribution of points on <br>
the Curve .
if <WithControl> is True,the algorithm controls the estimate
deflection
| GCPnts_UniformDeflection::GCPnts_UniformDeflection | ( | Adaptor3d_Curve & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Real | U1, | ||
| const Standard_Real | U2, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Computes a Uniform Deflection distribution of points <br>
on a part of the Curve .
if <WithControl> is True,the algorithm controls the estimate
deflection
| GCPnts_UniformDeflection::GCPnts_UniformDeflection | ( | Adaptor2d_Curve2d & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Real | U1, | ||
| const Standard_Real | U2, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Computes a Uniform Deflection distribution of points <br>
on a part of the Curve .
if <WithControl> is True,the algorithm controls the estimate
deflection
| Standard_Real GCPnts_UniformDeflection::Deflection | ( | ) | const |
Returns the deflection between the curve and the <br>
polygon resulting from the points of the distribution
computed by this algorithm.
This value is the one given to the algorithm at the
time of construction (or initialization).
Exceptions
StdFail_NotDone if this algorithm has not been
initialized, or if the computation was not successful.
| void GCPnts_UniformDeflection::Initialize | ( | Adaptor3d_Curve & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Initialize the algoritms with , <Deflection>
| void GCPnts_UniformDeflection::Initialize | ( | Adaptor2d_Curve2d & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Initialize the algoritms with , <Deflection>
| void GCPnts_UniformDeflection::Initialize | ( | Adaptor3d_Curve & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Real | U1, | ||
| const Standard_Real | U2, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Initialize the algoritms with , <Deflection>,
<U1>,<U2>
| void GCPnts_UniformDeflection::Initialize | ( | Adaptor2d_Curve2d & | C, |
| const Standard_Real | Deflection, | ||
| const Standard_Real | U1, | ||
| const Standard_Real | U2, | ||
| const Standard_Boolean | WithControl = Standard_True |
||
| ) |
Initialize the algoritms with <C>, <Deflection>, <br>
<U1>,<U2> <br>
This and the above methods initialize (or reinitialize) this algorithm and
compute a distribution of points:
| Standard_Boolean GCPnts_UniformDeflection::IsDone | ( | ) | const |
Returns true if the computation was successful. <br>
IsDone is a protection against:
| Standard_Integer GCPnts_UniformDeflection::NbPoints | ( | ) | const |
Returns the number of points of the distribution <br>
computed by this algorithm.
Exceptions
StdFail_NotDone if this algorithm has not been
initialized, or if the computation was not successful.
| Standard_Real GCPnts_UniformDeflection::Parameter | ( | const Standard_Integer | Index | ) | const |
Returns the parameter of the point of index Index in <br>
the distribution computed by this algorithm.
Warning
Index must be greater than or equal to 1, and less
than or equal to the number of points of the
distribution. However, pay particular attention as this
condition is not checked by this function.
Exceptions
StdFail_NotDone if this algorithm has not been
initialized, or if the computation was not successful.
| gp_Pnt GCPnts_UniformDeflection::Value | ( | const Standard_Integer | Index | ) | const |
Returns the point of index Index in the distribution <br>
computed by this algorithm.
Warning
Index must be greater than or equal to 1, and less
than or equal to the number of points of the
distribution. However, pay particular attention as this
condition is not checked by this function.
Exceptions
StdFAil_NotDone if this algorithm has not been
initialized, or if the computation was not successful.
1.8.5