Open CASCADE Technology  7.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. 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_PlanePlane () const
 Return the average Plane. More...
 
Handle< Geom_LineLine () 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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GeomPlate_BuildAveragePlane() [1/2]

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() [2/2]

GeomPlate_BuildAveragePlane::GeomPlate_BuildAveragePlane ( const TColgp_SequenceOfVec Normals,
const Handle< TColgp_HArray1OfPnt > &  Pts 
)

Creates the plane from the "best vector".

Member Function Documentation

◆ HalfSpace()

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

◆ IsLine()

Standard_Boolean GeomPlate_BuildAveragePlane::IsLine ( ) const

return OK if is a line.

◆ IsPlane()

Standard_Boolean GeomPlate_BuildAveragePlane::IsPlane ( ) const

return OK if is a plane.

◆ Line()

Handle< Geom_Line > GeomPlate_BuildAveragePlane::Line ( ) const

Return a Line when 2 eigenvalues are null.

◆ MinMaxBox()

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.

◆ Plane()

Handle< Geom_Plane > GeomPlate_BuildAveragePlane::Plane ( ) const

Return the average Plane.


The documentation for this class was generated from the following file: