Tue 16 Apr 2013 12:29:29 PM UTC, original submission:
Since update ebc24dde579f98b7c1444186004cc6790b2e0004 (removing of "\n" in filewrite.writeData), pgf files are not written correctly anymore (e.g. geomFile.writeMesh). Except for the header, everything is written on one line.
Example:
In this case the elements and nodes are written on one line, and the pgf cannot be read again. The same happens when writing multiple geometries, adding properties, ...
One solution would be to insert a "self.fil.write('\n')" after every writeData in geomfile, but that should be done for writeMesh, writeNurbsCurve, writeNurbsSurface, ...
So another solution would be to revert the filewrite.writeData to the way it was, and try to solve the off/stl problem another way.
I tried to reproduce this problem, but could only see the extra lines in off files (so not in stls). In writeOFF, adding end='' to the writeData also removes these extra lines (with the old filewrite.writeData)
So I don't know if this would solve all tetgen problems, or what exactly the problem with stl's still is?
Wouter
|