[Gmsh] duplicating entities

Cristóbal Bertoglio B. cabertog at ing.puc.cl
Wed Nov 16 11:26:42 CET 2011


Hi

i've a very simple question. I've a mesh with different surface
labels, I'd like to know how to "duplicate" some of the surfaces,
i.e., duplicating points (new points but with the same coordinates)
and creating a new surface on the duplicated points. I didnt find
explicitely how to do in the tutorial, so I'm trying just

Merge "test.mesh";
CreateTopology;
tmp[] = Translate{0,0,0} {Duplicata{Surface{1};}};

and then I get the error

Error   : Impossible to copy entity 1 (of type 305)

Can somebody give me a hint how to do it or about the source of the error?

Thanks in advance,

Cristobal.