Open CASCADE Technology
7.5.0
|
This class computes an average inertial plane with an array of points. Computes the initial surface (average plane) in the cases when the initial surface is not given. More...
#include <GeomPlate_BuildAveragePlane.hxx>
Public Member Functions | |
GeomPlate_BuildAveragePlane (const Handle< TColgp_HArray1OfPnt > &Pts, const Standard_Integer NbBoundPoints, const Standard_Real Tol, const Standard_Integer POption, const Standard_Integer NOption) | |
Tol is a Tolerance to make the difference between the result plane and the result line. if POption = 1 : automatical parametrisation if POption = 2 : parametrisation by eigen vectors if NOption = 1 : the average plane is the inertial plane. if NOption = 2 : the average plane is the plane of max. flux. More... | |
GeomPlate_BuildAveragePlane (const TColgp_SequenceOfVec &Normals, const Handle< TColgp_HArray1OfPnt > &Pts) | |
Creates the plane from the "best vector". More... | |
Handle< Geom_Plane > | Plane () const |
Return the average Plane. More... | |
Handle< Geom_Line > | Line () const |
Return a Line when 2 eigenvalues are null. More... | |
Standard_Boolean | IsPlane () const |
return OK if is a plane. More... | |
Standard_Boolean | IsLine () const |
return OK if is a line. More... | |
void | MinMaxBox (Standard_Real &Umin, Standard_Real &Umax, Standard_Real &Vmin, Standard_Real &Vmax) const |
computes the minimal box to include all normal projection points of the initial array on the plane. More... | |
Static Public Member Functions | |
static Standard_Boolean | HalfSpace (const TColgp_SequenceOfVec &NewNormals, TColgp_SequenceOfVec &Normals, GeomPlate_SequenceOfAij &Bset, const Standard_Real LinTol, const Standard_Real AngTol) |
This class computes an average inertial plane with an array of points. Computes the initial surface (average plane) in the cases when the initial surface is not given.
GeomPlate_BuildAveragePlane::GeomPlate_BuildAveragePlane | ( | const Handle< TColgp_HArray1OfPnt > & | Pts, |
const Standard_Integer | NbBoundPoints, | ||
const Standard_Real | Tol, | ||
const Standard_Integer | POption, | ||
const Standard_Integer | NOption | ||
) |
Tol is a Tolerance to make the difference between the result plane and the result line. if POption = 1 : automatical parametrisation if POption = 2 : parametrisation by eigen vectors if NOption = 1 : the average plane is the inertial plane. if NOption = 2 : the average plane is the plane of max. flux.
GeomPlate_BuildAveragePlane::GeomPlate_BuildAveragePlane | ( | const TColgp_SequenceOfVec & | Normals, |
const Handle< TColgp_HArray1OfPnt > & | Pts | ||
) |
Creates the plane from the "best vector".
|
static |
Standard_Boolean GeomPlate_BuildAveragePlane::IsLine | ( | ) | const |
return OK if is a line.
Standard_Boolean GeomPlate_BuildAveragePlane::IsPlane | ( | ) | const |
return OK if is a plane.
Return a Line when 2 eigenvalues are null.
void GeomPlate_BuildAveragePlane::MinMaxBox | ( | Standard_Real & | Umin, |
Standard_Real & | Umax, | ||
Standard_Real & | Vmin, | ||
Standard_Real & | Vmax | ||
) | const |
computes the minimal box to include all normal projection points of the initial array on the plane.
Handle< Geom_Plane > GeomPlate_BuildAveragePlane::Plane | ( | ) | const |
Return the average Plane.