Open CASCADE Technology 6.6.0
Public Member Functions | Static Public Member Functions
GeomPlate_BuildAveragePlane Class Reference

This class computes an average inertial plane with an
array of points.

#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.

 GeomPlate_BuildAveragePlane (const TColgp_SequenceOfVec &Normals, const Handle< TColgp_HArray1OfPnt > &Pts)
 Creates the plane from the "best vector"

Handle_Geom_Plane Plane () const
 Return the average Plane.

Handle_Geom_Line Line () const
 Return a Line when 2 eigenvalues are null.

Standard_Boolean IsPlane () const
 return OK if is a plane.

Standard_Boolean IsLine () const
 return OK if is a line.

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.

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)

Constructor & Destructor Documentation

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 
)
GeomPlate_BuildAveragePlane::GeomPlate_BuildAveragePlane ( const TColgp_SequenceOfVec Normals,
const Handle< TColgp_HArray1OfPnt > &  Pts 
)

Member Function Documentation

static Standard_Boolean GeomPlate_BuildAveragePlane::HalfSpace ( const TColgp_SequenceOfVec NewNormals,
TColgp_SequenceOfVec Normals,
GeomPlate_SequenceOfAij Bset,
const Standard_Real  LinTol,
const Standard_Real  AngTol 
) [static]
Standard_Boolean GeomPlate_BuildAveragePlane::IsLine ( ) const
Standard_Boolean GeomPlate_BuildAveragePlane::IsPlane ( ) const
Handle_Geom_Line GeomPlate_BuildAveragePlane::Line ( ) const
void GeomPlate_BuildAveragePlane::MinMaxBox ( Standard_Real Umin,
Standard_Real Umax,
Standard_Real Vmin,
Standard_Real Vmax 
) const
Handle_Geom_Plane GeomPlate_BuildAveragePlane::Plane ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines