PYME.IO.FileUtils.ply module¶
- PYME.IO.FileUtils.ply.load_ply(fn)¶
Load PLY from file.
- PYME.IO.FileUtils.ply.save_ply(fn, vertices, faces, colors=None, file_format='binary')¶
Save list of triangles to PLY file.
- Parameters
- fnstring
File name to write
- verticesnp.array or list
An n_vertices x 3 array or list of floats.
- facesnp.array or list
An n_faces x m (usually m=3) array of indexes to vertices. Faces can describe any polygon with 3 or more sides.
- colorsnp.array
A n_vertices x 3 array of RGB colors.
- file_formatstr
Write PLY as ascii or binary
- Returns
- None