I ended up modifying the GmshImporter2D to allow it to import quads. I've attached a script containing the changes along with a gmsh mesh file to test it. There are still some changes I'd like to make to this to allow this to handle a grid with different types of elements (mix of triangles, quads).

Andy
----------------------

On Fri, 16 Nov 2007, ASReeve wrote:


Hello,

I'm hoping to import a 2-D set of quadrilaterals I've generated
following gmsh formatting and extruding them to create an unstructured
3-D mesh. The GmshImporter2D routine does not appear to be able to
handle 'squares' (element type '3' in gmsh) and an error is raised
when I try to import my gmsh file. Is there a simple work around for
this or do I need to modify the code to allow me to import quads so I
can extrude them?

The file I'm trying to import can be read by gmsh (indicating the
format is correct) and follows, just in case you wish to try this out
yourself.

Andy


Reply via email to