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/MeshFeature.h"
10
FatherInclude="App/GeoFeaturePy.h"
11
FatherNamespace="App">
13
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
14
<UserDocu>The Mesh::Feature class handles meshes.
15
The Mesh.MeshFeature() function is for internal use only and cannot be used to create instances of this class.
16
Therefore you must have a reference to a document, e.g. 'd' then you can create an instance with
17
d.addObject("Mesh::Feature").
20
<Methode Name="countPoints">
22
<UserDocu>Return the number of vertices of the mesh object</UserDocu>
25
<Methode Name="countFacets">
27
<UserDocu>Return the number of facets of the mesh object</UserDocu>
30
<Methode Name="harmonizeNormals">
32
<UserDocu>Adjust wrong oriented facets</UserDocu>
35
<Methode Name="smooth">
37
<UserDocu>Smooth the mesh data</UserDocu>
40
<Methode Name="decimate">
44
decimate(tolerance(Float), reduction(Float))
45
tolerance: maximum error
46
reduction: reduction factor must be in the range [0.0,1.0]
48
mesh.decimate(0.5, 0.1) # reduction by up to 10 percent
49
mesh.decimate(0.5, 0.9) # reduction by up to 90 percent
53
decimate(targwt size(int))
54
mesh.decimate(mesh.CountFacets/2)
58
<Methode Name="removeNonManifolds">
60
<UserDocu>Remove non-manifolds</UserDocu>
63
<Methode Name="removeNonManifoldPoints">
65
<UserDocu>Remove non-manifold points</UserDocu>
68
<Methode Name="fixIndices">
70
<UserDocu>Repair any invalid indices</UserDocu>
73
<Methode Name="fixDegenerations">
75
<UserDocu>Remove degenerated facets</UserDocu>
78
<Methode Name="removeDuplicatedFacets">
80
<UserDocu>Remove duplicated facets</UserDocu>
83
<Methode Name="removeDuplicatedPoints">
85
<UserDocu>Remove duplicated points</UserDocu>
88
<Methode Name="fixSelfIntersections">
90
<UserDocu>Repair self-intersections</UserDocu>
93
<Methode Name="removeFoldsOnSurface">
95
<UserDocu>Remove folds on surfaces</UserDocu>
98
<Methode Name="removeInvalidPoints">
100
<UserDocu>Remove points with invalid coordinates (NaN)</UserDocu>