[Gmsh] ordering of lines/surfaces after stl merge
Martin Genet
martin.genet at ucsfmedicalcenter.org
Thu Aug 29 20:44:57 CEST 2013
Sorry to insist, but I'm really stuck here. Hopefully someone can help me understand what's going on.
I made a minimal example (minimal.geo), to illustrate my problem. I first merge the a couple STL files (STL.tar.gz), then create a couple Compound Lines, and then eventually a Line Loop. However, the order of Compound Lines seems to depend on whether or not I create the Line Loop (see lines-WithoutLineLoop & lines-WithLineLoop). Is that the expected behavior? Is there a logic behind this?
One more thing I don't quite understand, is that even Points and Surfaces are names "ll" (see visibility.png). Is that related to the previous issue?
Thanks in advance for your help!
Martin
On 08/22/2013 03:14 PM, Martin Genet wrote:
> Dear GMSH people:
>
> I'm merging a bunch of stl files, and then work with lines & surfaces that I get using
>
> > ll[] = Line "*";
> > ss[] = Surface "*";
>
> However, I can't seem to figure out the ordering of the lines & surfaces, especially since it seems to change from one run to another, depending on what I do with them. Any help with that? Thanks!
>
> Martin
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
-------------- next part --------------
Merge "VA1_ES_LV-endo-clipped1.stl";
Merge "VA1_ES_LV-endo-clipped2.stl";
Merge "VA1_ES_LV-endo-clipped3.stl";
Merge "VA1_ES_LV-epi-clipped1.stl";
Merge "VA1_ES_LV-epi-clipped2.stl";
Merge "VA1_ES_LV-epi-clipped3.stl";
CreateTopology;
ll[] = Line "*";
L0 = newl; Compound Line(L0) = ll[0];
L1 = newl; Compound Line(L1) = ll[1];
L2 = newl; Compound Line(L2) = ll[2];
L3 = newl; Compound Line(L3) = ll[3];
L4 = newl; Compound Line(L4) = ll[4];
L5 = newl; Compound Line(L5) = ll[5];
// LL0 = newll; Line Loop(LL0) = {L3, L4};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: STL.tar.gz
Type: application/gzip
Size: 281922 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130829/762a36bd/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lines-WithLineLoop.pdf
Type: application/pdf
Size: 18071 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130829/762a36bd/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lines-WithoutLineLoop.pdf
Type: application/pdf
Size: 17864 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130829/762a36bd/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visibility.png
Type: image/png
Size: 27240 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130829/762a36bd/attachment.png>