[Gmsh] Avoid duplicate entities with Geometry.OCCAutoFix = 0

Juan Córcoles juan.corcoles at uam.es
Sat Nov 10 08:58:08 CET 2018


Dear Christophe,

Thank you very much for your answer. The idea of displaying the number of
lines or surfaces is what I thought I was doing in my example when I wrote:

surfaces()=Surface "*";
Printf("Original Surfaces: ",surfaces());
lines()=Line "*";
Printf("Original Lines:", lines());

after merging the IGS file. At this point, I can't see any duplicated
entities (the number is correct), but I don't know if this is what you mean
by displaying the curve or surface tags.

Thank you very much again for your help,

On Sat, Nov 10, 2018 at 7:05 AM Christophe Geuzaine <cgeuzaine at uliege.be>
wrote:

>
>
> > On 9 Nov 2018, at 18:48, Juan Córcoles <juan.corcoles at uam.es> wrote:
> >
> > Dear gmsh-list,
> >
> > I have gone through several previous posts in the list archive to find a
> way to avoid the creation of duplicate surfaces when building a volume from
> a surface loop using the opencascade kernel (assuming I am merging a
> stp/igs file). I found that setting Geometry.OCCAutoFix = 0 should do the
> trick as I don't care about orientation. However, I am unable to make it
> work since the behaviour both with this flag set to 0 or 1 looks the same.
> Please find attached a small commented example in case anyone can help me.
>
> Starting for IGS is a bad idea: all the entities are already duplicated in
> the file - load the IGS file alone and display e.g. the curve or surface
> tags to convince yourself. If you cannot create the geometry directly
> within Gmsh I would advise importing your geometry as a STEP file (or BREP
> if you build it with an OpenCASCADE-based CAD modeler).
>
> Christophe
>
> >
> > Thank you very much in advance,
> >
> > --
> > Juan Córcoles
> > http://rfcas.eps.uam.es/juan.corcoles
> >
> > <test1.igs><test1.geo>_______________________________________________
> > gmsh mailing list
> > gmsh at onelab.info
> > http://onelab.info/mailman/listinfo/gmsh
>
>> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science
> http://www.montefiore.ulg.ac.be/~geuzaine
>
> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>
>

-- 
Juan Córcoles
http://rfcas.eps.uam.es/juan.corcoles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20181110/5c0a0005/attachment-0001.html>


More information about the gmsh mailing list