1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
5
Name="TopoShapeSolidPy"
7
TwinPointer="TopoShape"
8
Include="Mod/Part/App/TopoShape.h"
10
FatherInclude="Mod/Part/App/TopoShapePy.h"
11
FatherNamespace="Part"
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>
17
<Attribute Name="Mass" ReadOnly="true">
19
<UserDocu>Returns the mass of the current system.</UserDocu>
21
<Parameter Name="Mass" Type="Object"/>
23
<Attribute Name="CenterOfMass" ReadOnly="true">
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>
30
<Parameter Name="CenterOfMass" Type="Object"/>
32
<Attribute Name="MatrixOfInertia" ReadOnly="true">
34
<UserDocu>Returns the matrix of inertia. It is a symmetrical matrix.
35
The coefficients of the matrix are the quadratic moments of
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>
51
<Parameter Name="MatrixOfInertia" Type="Object"/>
53
<Attribute Name="StaticMoments" ReadOnly="true">
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>
59
<Parameter Name="StaticMoments" Type="Object"/>
61
<Attribute Name="PrincipalProperties" ReadOnly="true">
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>
73
<Parameter Name="PrincipalProperties" Type="Dict"/>
75
<Attribute Name="OuterShell" ReadOnly="true">
78
Returns the outer most shell of this solid or an null
79
shape if the solid has no shells</UserDocu>
81
<Parameter Name="OuterShell" Type="Object"/>
83
<Methode Name="getMomentOfInertia" Const="true">
85
<UserDocu>computes the moment of inertia of the material system about the axis A.
86
getMomentOfInertia(point,direction) -> Float
90
<Methode Name="getRadiusOfGyration" Const="true">
92
<UserDocu>Returns the radius of gyration of the current system about the axis A.
93
getRadiusOfGyration(point,direction) -> Float
97
<Methode Name="offsetFaces" Const="true">
99
<UserDocu>Extrude single faces of the solid.
100
offsetFaces(facesTuple, offset) -> Solid
102
offsetFaces(dict) -> Solid
105
solid.offsetFaces((solid.Faces[0],solid.Faces[1]), 1.5)
107
solid.offsetFaces({solid.Faces[0]:1.0,solid.Faces[1]:2.0})