Geometry package: Difference between revisions

No change in size ,  8 March 2012
m
Line 30: Line 30:
</pre>}}
</pre>}}
As you can see the polygon has lots of points. We need to simplify the polygon in order to obtain a mesh of reasonable size. Otherwise gmsh will have problems meshing and the result could be huge (or a segmentation fault :( ). THe package geometry comes with a simplification function but as of version 1.4.0, this function is very naive and wont fix this problem. If you know how to simplify polygons you can contribute!
As you can see the polygon has lots of points. We need to simplify the polygon in order to obtain a mesh of reasonable size. Otherwise gmsh will have problems meshing and the result could be huge (or a segmentation fault :( ). THe package geometry comes with a simplification function but as of version 1.4.0, this function is very naive and wont fix this problem. If you know how to simplify polygons you can contribute!
We are going to reduce the amount of points of th epolygon in a drastic and destructive way (i.e. the shape may be considerably damaged). The codes to do so follows, in the future a better procedure will be published here.
We are going to reduce the amount of points of the polygon in a drastic and destructive way (i.e. the shape may be considerably damaged). The codes to do so follows, in the future a better procedure will be published here.
{{Code|Symplification of a polygon compatible with geometry package|<pre>
{{Code|Symplification of a polygon compatible with geometry package|<pre>


657

edits