1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
8
Include="Mod/Mesh/App/Facet.h"
9
FatherInclude="Base/PyObjectBase.h"
13
FatherNamespace="Base">
15
<Author Licence="LGPL" Name="Juergen Riegel" EMail="Juergen.Riegel@web.de" />
16
<DeveloperDocu>Facet in a Mesh</DeveloperDocu>
17
<UserDocu>Facet in mesh
18
This is a facet in a MeshObject. You can get it by e.g. iterating a
19
mesh. The facet has a connection to its mesh and allows therefore
20
topological operations. It is also possible to create an unbounded facet e.g. to create
21
a mesh. In this case the topological operations will fail. The same is
22
when you cut the bound to the mesh by calling unbound().
25
<Methode Name="unbound">
27
<UserDocu>method unbound()
28
Cut the connection to a MeshObject. The facet becomes
29
free and is more or less a simple facet.
30
After calling unbound() no topological operation will
35
<Methode Name="intersect">
37
<UserDocu>intersect(Facet) -> list
38
Get a list of intersection points with another triangle.
42
<Methode Name="isDegenerated">
44
<UserDocu>isDegenerated([float]) -> boolean
45
Returns true if the facet is degenerated, otherwise false.
49
<Methode Name="isDeformed">
51
<UserDocu>isDegenerated(MinAngle, MaxAngle) -> boolean
52
Returns true if the facet is deformed, otherwise false.
53
A triangle is considered deformed if an angle is less than MinAngle
54
or higher than MaxAngle.
55
The two angles are given in radian.
59
<Methode Name="getEdge">
61
<UserDocu>getEdge(int) -> Edge
62
Returns the edge of the facet.
66
<Attribute Name="Index" ReadOnly="true">
68
<UserDocu>The index of this facet in the MeshObject</UserDocu>
70
<Parameter Name="Index" Type="Long"/>
72
<Attribute Name="Bound" ReadOnly="true">
74
<UserDocu>Bound state of the facet</UserDocu>
76
<Parameter Name="Bound" Type="Boolean"/>
78
<Attribute Name="Normal" ReadOnly="true">
80
<UserDocu>Normal vector of the facet.</UserDocu>
82
<Parameter Name="Normal" Type="Object"/>
84
<Attribute Name="Points" ReadOnly="true">
86
<UserDocu>A list of points of the facet</UserDocu>
88
<Parameter Name="Points" Type="List"/>
90
<Attribute Name="PointIndices" ReadOnly="true">
92
<UserDocu>The index tuple of point vertices of the mesh this facet is built of</UserDocu>
94
<Parameter Name="PointIndices" Type="Tuple"/>
96
<Attribute Name="NeighbourIndices" ReadOnly="true">
98
<UserDocu>The index tuple of neighbour facets of the mesh this facet is adjacent with</UserDocu>
100
<Parameter Name="NeighbourIndices" Type="Tuple"/>
102
<Attribute Name="Area" ReadOnly="true">
104
<UserDocu>The area of the facet</UserDocu>
106
<Parameter Name="Area" Type="Float"/>
108
<Attribute Name="AspectRatio" ReadOnly="true">
110
<UserDocu>The aspect ratio of the facet computed by longest edge and its height</UserDocu>
112
<Parameter Name="AspectRatio" Type="Float"/>
114
<Attribute Name="AspectRatio2" ReadOnly="true">
116
<UserDocu>The aspect ratio of the facet computed by radius of circum-circle and in-circle</UserDocu>
118
<Parameter Name="AspectRatio2" Type="Float"/>
120
<Attribute Name="Roundness" ReadOnly="true">
122
<UserDocu>The roundness of the facet</UserDocu>
124
<Parameter Name="Roundness" Type="Float"/>
126
<Attribute Name="CircumCircle" ReadOnly="true">
128
<UserDocu>The center and radius of the circum-circle</UserDocu>
130
<Parameter Name="CircumCircle" Type="Tuple"/>
132
<Attribute Name="InCircle" ReadOnly="true">
134
<UserDocu>The center and radius of the in-circle</UserDocu>
136
<Parameter Name="InCircle" Type="Tuple"/>