FreeCAD

Форк
0
/
TopoShapeSolidPy.xml 
112 строк · 4.5 Кб
1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
3
  <PythonExport
4
      Father="TopoShapePy"
5
      Name="TopoShapeSolidPy"
6
      Twin="TopoShape"
7
      TwinPointer="TopoShape"
8
      Include="Mod/Part/App/TopoShape.h"
9
      Namespace="Part"
10
      FatherInclude="Mod/Part/App/TopoShapePy.h"
11
      FatherNamespace="Part"
12
      Constructor="true">
13
      <Documentation>
14
      <Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
15
      <UserDocu>Part.Solid(shape): Create a solid out of shells of shape. If shape is a compsolid, the overall volume solid is created.</UserDocu>
16
    </Documentation>
17
    <Attribute Name="Mass" ReadOnly="true">
18
      <Documentation>
19
        <UserDocu>Returns the mass of the current system.</UserDocu>
20
      </Documentation>
21
      <Parameter Name="Mass" Type="Object"/>
22
    </Attribute>
23
    <Attribute Name="CenterOfMass" ReadOnly="true">
24
      <Documentation>
25
        <UserDocu>Returns the center of mass of the current system.
26
If the gravitational field is uniform, it is the center of gravity.
27
The coordinates returned for the center of mass are expressed in the
28
absolute Cartesian coordinate system.</UserDocu>
29
      </Documentation>
30
      <Parameter Name="CenterOfMass" Type="Object"/>
31
    </Attribute>
32
    <Attribute Name="MatrixOfInertia" ReadOnly="true">
33
      <Documentation>
34
        <UserDocu>Returns the matrix of inertia. It is a symmetrical matrix.
35
The coefficients of the matrix are the quadratic moments of
36
inertia.
37

38
 | Ixx Ixy Ixz 0 |
39
 | Ixy Iyy Iyz 0 |
40
 | Ixz Iyz Izz 0 |
41
 | 0   0   0   1 |
42

43
The moments of inertia are denoted by Ixx, Iyy, Izz.
44
The products of inertia are denoted by Ixy, Ixz, Iyz.
45
The matrix of inertia is returned in the central coordinate
46
system (G, Gx, Gy, Gz) where G is the centre of mass of the
47
system and Gx, Gy, Gz the directions parallel to the X(1,0,0)
48
Y(0,1,0) Z(0,0,1) directions of the absolute cartesian
49
coordinate system.</UserDocu>
50
      </Documentation>
51
      <Parameter Name="MatrixOfInertia" Type="Object"/>
52
    </Attribute>
53
    <Attribute Name="StaticMoments" ReadOnly="true">
54
      <Documentation>
55
        <UserDocu>Returns Ix, Iy, Iz, the static moments of inertia of the
56
 current system; i.e. the moments of inertia about the
57
 three axes of the Cartesian coordinate system.</UserDocu>
58
      </Documentation>
59
      <Parameter Name="StaticMoments" Type="Object"/>
60
    </Attribute>
61
    <Attribute Name="PrincipalProperties" ReadOnly="true">
62
      <Documentation>
63
        <UserDocu>Computes the principal properties of inertia of the current system.
64
 There is always a set of axes for which the products
65
 of inertia of a geometric system are equal to 0; i.e. the
66
 matrix of inertia of the system is diagonal. These axes
67
 are the principal axes of inertia. Their origin is
68
 coincident with the center of mass of the system. The
69
 associated moments are called the principal moments of inertia.
70
 This function computes the eigen values and the
71
 eigen vectors of the matrix of inertia of the system.</UserDocu>
72
      </Documentation>
73
      <Parameter Name="PrincipalProperties" Type="Dict"/>
74
    </Attribute>
75
    <Attribute Name="OuterShell" ReadOnly="true">
76
      <Documentation>
77
        <UserDocu>
78
Returns the outer most shell of this solid or an null
79
shape if the solid has no shells</UserDocu>
80
      </Documentation>
81
      <Parameter Name="OuterShell" Type="Object"/>
82
    </Attribute>
83
    <Methode Name="getMomentOfInertia" Const="true">
84
      <Documentation>
85
        <UserDocu>computes the moment of inertia of the material system about the axis A.
86
getMomentOfInertia(point,direction) -> Float
87
        </UserDocu>
88
      </Documentation>
89
    </Methode>
90
    <Methode Name="getRadiusOfGyration" Const="true">
91
      <Documentation>
92
        <UserDocu>Returns the radius of gyration of the current system about the axis A.
93
getRadiusOfGyration(point,direction) -> Float
94
        </UserDocu>
95
      </Documentation>
96
    </Methode>
97
    <Methode Name="offsetFaces" Const="true">
98
      <Documentation>
99
        <UserDocu>Extrude single faces of the solid.
100
offsetFaces(facesTuple, offset) -> Solid
101
or
102
offsetFaces(dict) -> Solid
103
--
104
Example:
105
solid.offsetFaces((solid.Faces[0],solid.Faces[1]), 1.5)
106

107
solid.offsetFaces({solid.Faces[0]:1.0,solid.Faces[1]:2.0})
108
        </UserDocu>
109
      </Documentation>
110
    </Methode>
111
  </PythonExport>
112
</GenerateModel>
113

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.