scallop dome pyformex logo

Previous topic

39. dxf — Read/write geometry in DXF format.

Next topic

41. fe — Finite Element Models in pyFormex.

[FSF Associate Member]

Valid XHTML 1.0 Transitional

40. export — Classes and functions for exporting geometry in various formats.

Classes defined in module export

class export.ObjFile(filename)

Export a mesh in OBJ format.

This class exports a mesh in Wavefront OBJ format (see http://en.wikipedia.org/wiki/Wavefront_.obj_file).

Usage:

fil = ObjFile(PATH_TO_OBJFILE)
fil.write(MESH)
fil.close()
write(mesh, name=None)

Write a mesh to file in .obj format.

mesh is a Mesh instance or another object having compatible coords and elems attributes.

Functions defined in module export