2.3.2.3 Creating a Formex using coordinates from a file

Warning: This section is outdated.

In some cases, you might want to read coordinates from a file an combine them into a Formex. This is possible with the module file2formex and it's function fileFormex(). Each point is connected to the following, forming an element (bar).

The next file ('square.txt') would create the same square as before(figure 2.3).

	0,0,0
	0,1,0
	1,1,0
	1,0,0
	#!/usr/bin/env pyformex
	from file2formex import *
	F=fileFormex('square.text', closed='yes')