Open CASCADE Technology
6.5.4
|
Describes a MultiPointConstraint used in a
Multiline. MultiPointConstraints are composed
of several two or three-dimensional points.
The purpose is to define the corresponding
points that share a common constraint in order
to compute the approximation of several lines in parallel.
Notes:
More...
#include <AppDef_MultiPointConstraint.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | AppDef_MultiPointConstraint () |
creates an undefined MultiPointConstraint. | |
AppDef_MultiPointConstraint (const Standard_Integer NbPoints, const Standard_Integer NbPoints2d) | |
constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP) | |
creates a MultiPoint only composed of 3D points. | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt2d &tabP) | |
creates a MultiPoint only composed of 2D points. | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfPnt2d &tabP2d) | |
constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec &tabVec, const TColgp_Array1OfVec2d &tabVec2d, const TColgp_Array1OfVec &tabCur, const TColgp_Array1OfVec2d &tabCur2d) | |
creates a MultiPointConstraint with a constraint of Curvature. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> ) or from (length of <tabCur> + length of <tabCur2d> ) | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec &tabVec, const TColgp_Array1OfVec2d &tabVec2d) | |
creates a MultiPointConstraint with a constraint of Tangency. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> ) | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfVec &tabVec, const TColgp_Array1OfVec &tabCur) | |
creates a MultiPointConstraint only composed of 3d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec or from tabCur. | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfVec &tabVec) | |
creates a MultiPointConstraint only composed of 3d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec. | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec2d &tabVec2d) | |
creates a MultiPointConstraint only composed of 2d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec2d. | |
AppDef_MultiPointConstraint (const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec2d &tabVec2d, const TColgp_Array1OfVec2d &tabCur2d) | |
creates a MultiPointConstraint only composed of 2d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec2d or from tabCur2d. | |
void | SetTang (const Standard_Integer Index, const gp_Vec &Tang) |
sets the value of the tangency of the point of range Index. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Tang has an incorrect number of dimensions. | |
gp_Vec | Tang (const Standard_Integer Index) const |
returns the tangency value of the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points. | |
void | SetTang2d (const Standard_Integer Index, const gp_Vec2d &Tang2d) |
sets the value of the tangency of the point of range Index. An exception is raised if Index <number of 3d points or if Index > total number of Points An exception is raised if Tang has an incorrect number of dimensions. | |
gp_Vec2d | Tang2d (const Standard_Integer Index) const |
returns the tangency value of the point of range Index. An exception is raised if Index < number of 3d points or if Index > total number of points. | |
void | SetCurv (const Standard_Integer Index, const gp_Vec &Curv) |
Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions. | |
gp_Vec | Curv (const Standard_Integer Index) const |
returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points. | |
void | SetCurv2d (const Standard_Integer Index, const gp_Vec2d &Curv2d) |
Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions. | |
gp_Vec2d | Curv2d (const Standard_Integer Index) const |
returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points. | |
Standard_Boolean | IsTangencyPoint () const |
returns True if the MultiPoint has a tangency value. | |
Standard_Boolean | IsCurvaturePoint () const |
returns True if the MultiPoint has a curvature value. | |
virtual void | Dump (Standard_OStream &o) const |
Prints on the stream o information on the current state of the object. Is used to redefine the operator <<. |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const Standard_Integer | NbPoints, |
const Standard_Integer | NbPoints2d | ||
) |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const TColgp_Array1OfPnt & | tabP, |
const TColgp_Array1OfPnt2d & | tabP2d | ||
) |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const TColgp_Array1OfPnt & | tabP, |
const TColgp_Array1OfPnt2d & | tabP2d, | ||
const TColgp_Array1OfVec & | tabVec, | ||
const TColgp_Array1OfVec2d & | tabVec2d, | ||
const TColgp_Array1OfVec & | tabCur, | ||
const TColgp_Array1OfVec2d & | tabCur2d | ||
) |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const TColgp_Array1OfPnt & | tabP, |
const TColgp_Array1OfPnt2d & | tabP2d, | ||
const TColgp_Array1OfVec & | tabVec, | ||
const TColgp_Array1OfVec2d & | tabVec2d | ||
) |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const TColgp_Array1OfPnt & | tabP, |
const TColgp_Array1OfVec & | tabVec, | ||
const TColgp_Array1OfVec & | tabCur | ||
) |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const TColgp_Array1OfPnt & | tabP, |
const TColgp_Array1OfVec & | tabVec | ||
) |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const TColgp_Array1OfPnt2d & | tabP2d, |
const TColgp_Array1OfVec2d & | tabVec2d | ||
) |
AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const TColgp_Array1OfPnt2d & | tabP2d, |
const TColgp_Array1OfVec2d & | tabVec2d, | ||
const TColgp_Array1OfVec2d & | tabCur2d | ||
) |
gp_Vec AppDef_MultiPointConstraint::Curv | ( | const Standard_Integer | Index | ) | const |
gp_Vec2d AppDef_MultiPointConstraint::Curv2d | ( | const Standard_Integer | Index | ) | const |
virtual void AppDef_MultiPointConstraint::Dump | ( | Standard_OStream & | o | ) | const [virtual] |
Reimplemented from AppParCurves_MultiPoint.
void AppDef_MultiPointConstraint::SetCurv | ( | const Standard_Integer | Index, |
const gp_Vec & | Curv | ||
) |
void AppDef_MultiPointConstraint::SetCurv2d | ( | const Standard_Integer | Index, |
const gp_Vec2d & | Curv2d | ||
) |
void AppDef_MultiPointConstraint::SetTang | ( | const Standard_Integer | Index, |
const gp_Vec & | Tang | ||
) |
void AppDef_MultiPointConstraint::SetTang2d | ( | const Standard_Integer | Index, |
const gp_Vec2d & | Tang2d | ||
) |
gp_Vec AppDef_MultiPointConstraint::Tang | ( | const Standard_Integer | Index | ) | const |
gp_Vec2d AppDef_MultiPointConstraint::Tang2d | ( | const Standard_Integer | Index | ) | const |