> On 2 Mar 2017, at 19:27, Miro Kuchta <mi...@math.uio.no> wrote:
> 
> Hi,
> 
> is there a way to get a list of surfaces which were created as part of 
> duplicating a volume.
> In the attached code Out[0] gives me a volume (index?) of the new volume but 
> I would like
> to get the surfaces which show up when the geometry is viewed in GUI (28, 33, 
> 38, 43, 48, 53).
> Out[1] is not initialized.
> 

Use the Boundary operator, which returns a list:

b() = Boundary{ Volume{Out[0]}; } ;

Printf("%g", Out[0]);
Printf("boundary = ", Boundary{ Volume{Out[0]};} );



> Thanks for your help, Miro
> <debug.geo>_______________________________________________
> gmsh mailing list
> gmsh@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


_______________________________________________
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh

Reply via email to