[Gmsh] Remove duplicate entities in GEO file.

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Mar 23 16:49:30 CET 2010


On 22/03/10 18:19, Billy Araujo wrote:
> What do this option do?
>
> I ask this because I have created surface that have duplicate edges and
> this doesn't seem to remove them. Does anyone have an example where this
> has been tested?

The option activates the automatic duplicate entity removal that is 
performed every time a geometric transformation (translation, extrusion, 
etc.) is used.

You can force the duplicate entity removal "by hand" (even if there are 
no geometrical transformations) by adding "Coherence;" in your script. 
For example:

Point(1) = {0,0,0};
Point(2) = {1,0,0};
Point(3) = {1,0,0};
Line(1) = {1,2};
Line(2) = {1,3};
Coherence;

Christophe

>
>
> Regards,
>
> Billy.
>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine