Open CASCADE Technology  6.9.0
Public Member Functions

BRepGProp_Vinert Class Reference

Computes the global properties of a geometric solid (3D closed region of space) delimited with : . a surface . a point and a surface . a plane and a surface. More...

#include <BRepGProp_Vinert.hxx>

Inheritance diagram for BRepGProp_Vinert:
Inheritance graph
[legend]

Public Member Functions

 BRepGProp_Vinert ()
 
 BRepGProp_Vinert (const BRepGProp_Face &S, const gp_Pnt &VLocation)
 Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Errror of the computation is not calculated. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, const gp_Pnt &VLocation, const Standard_Real Eps)
 Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. More...
 
 BRepGProp_Vinert (const BRepGProp_Face &S, const gp_Pnt &O, const gp_Pnt &VLocation)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, const gp_Pnt &O, const gp_Pnt &VLocation, const Standard_Real Eps)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration. More...
 
 BRepGProp_Vinert (const BRepGProp_Face &S, const gp_Pln &Pl, const gp_Pnt &VLocation)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, const gp_Pln &Pl, const gp_Pnt &VLocation, const Standard_Real Eps)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pnt &VLocation)
 Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Errror of the computation is not calculated. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pnt &VLocation, const Standard_Real Eps)
 Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pnt &O, const gp_Pnt &VLocation)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pnt &O, const gp_Pnt &VLocation, const Standard_Real Eps)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pln &Pl, const gp_Pnt &VLocation)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated. More...
 
 BRepGProp_Vinert (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pln &Pl, const gp_Pnt &VLocation, const Standard_Real Eps)
 Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration. More...
 
void SetLocation (const gp_Pnt &VLocation)
 
void Perform (const BRepGProp_Face &S)
 
Standard_Real Perform (BRepGProp_Face &S, const Standard_Real Eps)
 
void Perform (const BRepGProp_Face &S, const gp_Pnt &O)
 
Standard_Real Perform (BRepGProp_Face &S, const gp_Pnt &O, const Standard_Real Eps)
 
void Perform (const BRepGProp_Face &S, const gp_Pln &Pl)
 
Standard_Real Perform (BRepGProp_Face &S, const gp_Pln &Pl, const Standard_Real Eps)
 
void Perform (BRepGProp_Face &S, BRepGProp_Domain &D)
 
Standard_Real Perform (BRepGProp_Face &S, BRepGProp_Domain &D, const Standard_Real Eps)
 
void Perform (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pnt &O)
 
Standard_Real Perform (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pnt &O, const Standard_Real Eps)
 
void Perform (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pln &Pl)
 
Standard_Real Perform (BRepGProp_Face &S, BRepGProp_Domain &D, const gp_Pln &Pl, const Standard_Real Eps)
 
Standard_Real GetEpsilon ()
 If previously used methods containe Eps parameter gets actual relative error of the computation, else returns 1.0. More...
 
- Public Member Functions inherited from GProp_GProps
 GProp_GProps ()
 The origin (0, 0, 0) of the absolute cartesian coordinate system is used to compute the global properties. More...
 
 GProp_GProps (const gp_Pnt &SystemLocation)
 The point SystemLocation is used to compute the gobal properties of the system. For more accuracy it is better to define this point closed to the location of the system. For example it could be a point around the centre of mass of the system. This point is referred to as the reference point for this framework. For greater accuracy it is better for the reference point to be close to the location of the system. It can, for example, be a point near the center of mass of the system. At initialization, the framework is empty; i.e. it retains no dimensional information such as mass, or inertia. However, it is now able to bring together global properties of various other systems, whose global properties have already been computed using another framework. To do this, use the function Add to define the components of the system. Use it once per component of the system, and then use the interrogation functions available to access the computed values. More...
 
void Add (const GProp_GProps &Item, const Standard_Real Density=1.0)
 Either. More...
 
Standard_Real Mass () const
 Returns the mass of the current system. If no density is attached to the components of the current system the returned value corresponds to : More...
 
gp_Pnt CentreOfMass () const
 Returns the center of mass of the current system. If the gravitational field is uniform, it is the center of gravity. The coordinates returned for the center of mass are expressed in the absolute Cartesian coordinate system. More...
 
gp_Mat MatrixOfInertia () const
 returns the matrix of inertia. It is a symmetrical matrix. The coefficients of the matrix are the quadratic moments of inertia. More...
 
void StaticMoments (Standard_Real &Ix, Standard_Real &Iy, Standard_Real &Iz) const
 Returns Ix, Iy, Iz, the static moments of inertia of the current system; i.e. the moments of inertia about the three axes of the Cartesian coordinate system. More...
 
Standard_Real MomentOfInertia (const gp_Ax1 &A) const
 computes the moment of inertia of the material system about the axis A. More...
 
GProp_PrincipalProps PrincipalProperties () const
 Computes the principal properties of inertia of the current system. There is always a set of axes for which the products of inertia of a geometric system are equal to 0; i.e. the matrix of inertia of the system is diagonal. These axes are the principal axes of inertia. Their origin is coincident with the center of mass of the system. The associated moments are called the principal moments of inertia. This function computes the eigen values and the eigen vectors of the matrix of inertia of the system. Results are stored by using a presentation framework of principal properties of inertia (GProp_PrincipalProps object) which may be queried to access the value sought. More...
 
Standard_Real RadiusOfGyration (const gp_Ax1 &A) const
 Returns the radius of gyration of the current system about the axis A. More...
 

Additional Inherited Members

- Protected Attributes inherited from GProp_GProps
gp_Pnt g
 
gp_Pnt loc
 
Standard_Real dim
 
gp_Mat inertia
 

Detailed Description

Computes the global properties of a geometric solid (3D closed region of space) delimited with : . a surface . a point and a surface . a plane and a surface.

The surface can be : . a surface limited with its parametric values U-V, . a surface limited in U-V space with its curves of restriction,

The surface 's requirements to evaluate the global properties are defined in the template SurfaceTool from package GProp.

Constructor & Destructor Documentation

BRepGProp_Vinert::BRepGProp_Vinert ( )
BRepGProp_Vinert::BRepGProp_Vinert ( const BRepGProp_Face S,
const gp_Pnt VLocation 
)

Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Errror of the computation is not calculated.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
const gp_Pnt VLocation,
const Standard_Real  Eps 
)

Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration.

BRepGProp_Vinert::BRepGProp_Vinert ( const BRepGProp_Face S,
const gp_Pnt O,
const gp_Pnt VLocation 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
const gp_Pnt O,
const gp_Pnt VLocation,
const Standard_Real  Eps 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.

BRepGProp_Vinert::BRepGProp_Vinert ( const BRepGProp_Face S,
const gp_Pln Pl,
const gp_Pnt VLocation 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
const gp_Pln Pl,
const gp_Pnt VLocation,
const Standard_Real  Eps 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pnt VLocation 
)

Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Errror of the computation is not calculated.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pnt VLocation,
const Standard_Real  Eps 
)

Computes the global properties of a region of 3D space delimited with the surface <S> and the point VLocation. S can be closed Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pnt O,
const gp_Pnt VLocation 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pnt O,
const gp_Pnt VLocation,
const Standard_Real  Eps 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the point VLocation. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pln Pl,
const gp_Pnt VLocation 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. The method is quick and its precision is enough for many cases of analytical surfaces. Non-adaptive 2D Gauss integration with predefined numbers of Gauss points is used. Numbers of points depend on types of surfaces and curves. Error of the computation is not calculated.

BRepGProp_Vinert::BRepGProp_Vinert ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pln Pl,
const gp_Pnt VLocation,
const Standard_Real  Eps 
)

Computes the global properties of the region of 3D space delimited with the surface <S> and the plane Pln. Adaptive 2D Gauss integration is used. Parameter Eps sets maximal relative error of computed mass (volume) for face. Error is calculated as Abs((M(i+1)-M(i))/M(i+1)), M(i+1) and M(i) are values for two successive steps of adaptive integration. WARNING: if Eps > 0.001 algorithm performs non-adaptive integration.

Member Function Documentation

Standard_Real BRepGProp_Vinert::GetEpsilon ( )

If previously used methods containe Eps parameter gets actual relative error of the computation, else returns 1.0.

void BRepGProp_Vinert::Perform ( const BRepGProp_Face S)
Standard_Real BRepGProp_Vinert::Perform ( BRepGProp_Face S,
const Standard_Real  Eps 
)
void BRepGProp_Vinert::Perform ( const BRepGProp_Face S,
const gp_Pnt O 
)
Standard_Real BRepGProp_Vinert::Perform ( BRepGProp_Face S,
const gp_Pnt O,
const Standard_Real  Eps 
)
void BRepGProp_Vinert::Perform ( const BRepGProp_Face S,
const gp_Pln Pl 
)
Standard_Real BRepGProp_Vinert::Perform ( BRepGProp_Face S,
const gp_Pln Pl,
const Standard_Real  Eps 
)
void BRepGProp_Vinert::Perform ( BRepGProp_Face S,
BRepGProp_Domain D 
)
Standard_Real BRepGProp_Vinert::Perform ( BRepGProp_Face S,
BRepGProp_Domain D,
const Standard_Real  Eps 
)
void BRepGProp_Vinert::Perform ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pnt O 
)
Standard_Real BRepGProp_Vinert::Perform ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pnt O,
const Standard_Real  Eps 
)
void BRepGProp_Vinert::Perform ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pln Pl 
)
Standard_Real BRepGProp_Vinert::Perform ( BRepGProp_Face S,
BRepGProp_Domain D,
const gp_Pln Pl,
const Standard_Real  Eps 
)
void BRepGProp_Vinert::SetLocation ( const gp_Pnt VLocation)

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