Public Member Functions |
DEFINE_STANDARD_ALLOC | gp_Pln () |
| Creates a plane coincident with OXY plane of the
reference coordinate system.
|
| gp_Pln (const gp_Ax3 &A3) |
| The coordinate system of the plane is defined with the axis
placement A3.
The "Direction" of A3 defines the normal to the plane.
The "Location" of A3 defines the location (origin) of the plane.
The "XDirection" and "YDirection" of A3 define the "XAxis" and
the "YAxis" of the plane used to parametrize the plane.
|
| gp_Pln (const gp_Pnt &P, const gp_Dir &V) |
| Creates a plane with the "Location" point.
|
| gp_Pln (const Standard_Real A, const Standard_Real B, const Standard_Real C, const Standard_Real D) |
| Creates a plane from its cartesian equation :
A * X + B * Y + C * Z + D = 0.0
Raises ConstructionError if Sqrt (A*A + B*B + C*C) <= Resolution from gp.
|
void | Coefficients (Standard_Real &A, Standard_Real &B, Standard_Real &C, Standard_Real &D) const |
| Returns the coefficients of the plane's cartesian equation :
A * X + B * Y + C * Z + D = 0.
|
void | SetAxis (const gp_Ax1 &A1) |
| Modifies this plane, by redefining its local coordinate system so that
|
void | SetLocation (const gp_Pnt &Loc) |
| Changes the origin of the plane.
|
void | SetPosition (const gp_Ax3 &A3) |
| Changes the local coordinate system of the plane.
|
void | UReverse () |
| Reverses the U parametrization of the plane
reversing the XAxis.
|
void | VReverse () |
| Reverses the V parametrization of the plane
reversing the YAxis.
|
Standard_Boolean | Direct () const |
| returns true if the Ax3 is right handed.
|
const gp_Ax1 & | Axis () const |
| Returns the plane's normal Axis.
|
const gp_Pnt & | Location () const |
| Returns the plane's location (origin).
|
const gp_Ax3 & | Position () const |
| Returns the local coordinate system of the plane .
|
Standard_Real | Distance (const gp_Pnt &P) const |
| Computes the distance between <me> and the point.
|
Standard_Real | Distance (const gp_Lin &L) const |
| Computes the distance between <me> and the line <L>.
|
Standard_Real | Distance (const gp_Pln &Other) const |
| Computes the distance between two planes.
|
Standard_Real | SquareDistance (const gp_Pnt &P) const |
| Computes the square distance between <me> and the point.
|
Standard_Real | SquareDistance (const gp_Lin &L) const |
| Computes the square distance between <me> and the line <L>.
|
Standard_Real | SquareDistance (const gp_Pln &Other) const |
| Computes the square distance between two planes.
|
gp_Ax1 | XAxis () const |
| Returns the X axis of the plane.
|
gp_Ax1 | YAxis () const |
| Returns the Y axis of the plane.
|
Standard_Boolean | Contains (const gp_Pnt &P, const Standard_Real LinearTolerance) const |
| Returns true if this plane contains the point P. This means that
|
Standard_Boolean | Contains (const gp_Lin &L, const Standard_Real LinearTolerance, const Standard_Real AngularTolerance) const |
| Returns true if this plane contains the line L. This means that
|
void | Mirror (const gp_Pnt &P) |
gp_Pln | Mirrored (const gp_Pnt &P) const |
| Performs the symmetrical transformation of a plane with respect
to the point.
|
void | Mirror (const gp_Ax1 &A1) |
gp_Pln | Mirrored (const gp_Ax1 &A1) const |
| Performs the symmetrical transformation of a
plane with respect to an axis placement which is the axis
of the symmetry. The transformation is performed on the
"Location" point, on the "XAxis" and the "YAxis". The
resulting normal direction is the cross product between
the "XDirection" and the "YDirection" after transformation
if the initial plane was right handed, else it is the
opposite.
|
void | Mirror (const gp_Ax2 &A2) |
gp_Pln | Mirrored (const gp_Ax2 &A2) const |
| Performs the symmetrical transformation of a
plane with respect to an axis placement. The axis
placement <A2> locates the plane of the symmetry. The
transformation is performed on the "Location" point, on
the "XAxis" and the "YAxis". The resulting normal
direction is the cross product between the "XDirection"
and the "YDirection" after transformation if the initial
plane was right handed, else it is the opposite.
|
void | Rotate (const gp_Ax1 &A1, const Standard_Real Ang) |
gp_Pln | Rotated (const gp_Ax1 &A1, const Standard_Real Ang) const |
| rotates a plane. A1 is the axis of the rotation.
Ang is the angular value of the rotation in radians.
|
void | Scale (const gp_Pnt &P, const Standard_Real S) |
gp_Pln | Scaled (const gp_Pnt &P, const Standard_Real S) const |
| Scales a plane. S is the scaling value.
|
void | Transform (const gp_Trsf &T) |
gp_Pln | Transformed (const gp_Trsf &T) const |
| Transforms a plane with the transformation T from class Trsf.
The transformation is performed on the "Location"
point, on the "XAxis" and the "YAxis".
The resulting normal direction is the cross product between
the "XDirection" and the "YDirection" after transformation.
|
void | Translate (const gp_Vec &V) |
gp_Pln | Translated (const gp_Vec &V) const |
| Translates a plane in the direction of the vector V.
The magnitude of the translation is the vector's magnitude.
|
void | Translate (const gp_Pnt &P1, const gp_Pnt &P2) |
gp_Pln | Translated (const gp_Pnt &P1, const gp_Pnt &P2) const |
| Translates a plane from the point P1 to the point P2.
|
const gp_Ax3 & | _CSFDB_Getgp_Plnpos () const |