PLY

class compas.files.PLY[source]

Bases: object

Class for working with files in Polygon format, also known as Stanford triangle format.

Parameters:
filepathpath string | file-like object | URL string

A path, a file-like object or a URL pointing to a file.

precisionstr, optional

A COMPAS precision specification.

Attributes:
filepathstr

The path to the file.

precisionstr

A COMPAS precision specification.

readerPLYReader

A PLY file reader.

parserPLYParser

A PLY data parser.

References

Methods

read

Read the contents of the file.

write

Write a mesh to the file.