42cf5bc1 |
1 | // Created on: 1991-03-12 |
2 | // Created by: Michel CHAUVAT |
3 | // Copyright (c) 1991-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _GProp_HeaderFile |
18 | #define _GProp_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_Real.hxx> |
25 | class gp_Pnt; |
26 | class gp_Mat; |
42cf5bc1 |
27 | |
28 | |
29 | |
54adc5e9 |
30 | //! This package defines algorithms to compute the global properties |
42cf5bc1 |
31 | //! of a set of points, a curve, a surface, a solid (non infinite |
32 | //! region of space delimited with geometric entities), a compound |
33 | //! geometric system (heterogeneous composition of the previous |
34 | //! entities). |
35 | //! |
36 | //! Global properties are : |
37 | //! . length, area, volume, |
38 | //! . centre of mass, |
39 | //! . axis of inertia, |
40 | //! . moments of inertia, |
41 | //! . radius of gyration. |
42 | //! |
43 | //! It provides also a class to compile the average point or |
44 | //! line of a set of points. |
45 | class GProp |
46 | { |
47 | public: |
48 | |
49 | DEFINE_STANDARD_ALLOC |
50 | |
51 | |
52 | //! methods of package |
53 | //! Computes the matrix Operator, referred to as the |
54 | //! "Huyghens Operator" of a geometric system at the |
55 | //! point Q of the space, using the following data : |
56 | //! - Mass, i.e. the mass of the system, |
57 | //! - G, the center of mass of the system. |
58 | //! The "Huyghens Operator" is used to compute |
59 | //! Inertia/Q, the matrix of inertia of the system at |
60 | //! the point Q using Huyghens' theorem : |
61 | //! Inertia/Q = Inertia/G + HOperator (Q, G, Mass) |
62 | //! where Inertia/G is the matrix of inertia of the |
63 | //! system relative to its center of mass as returned by |
64 | //! the function MatrixOfInertia on any GProp_GProps object. |
65 | Standard_EXPORT static void HOperator (const gp_Pnt& G, const gp_Pnt& Q, const Standard_Real Mass, gp_Mat& Operator); |
66 | |
42cf5bc1 |
67 | }; |
68 | |
42cf5bc1 |
69 | #endif // _GProp_HeaderFile |