pymeshfix.PyTMesh.save_file#

PyTMesh.save_file(filename, back_approx=False)#

Save cleaned mesh to file

The file format is deduced from one of the following filename extensions:

  • "wrl" - vrml 1.0

  • "iv" - OpenInventor

  • "off" - Object file format

  • "ply" - PLY format

  • "tri" - IMATI Ver-Tri

If ‘back_approx’ is set to True, vertex coordinates are approximated to reflect the limited precision of floating point representation in ASCII files. This should be used when coherence is necessary between in-memory and saved data. A non-zero return value is returned if errors occur.

Examples

>>> tin.save_file(outfile)