PLYParser
- class compas.files.PLYParser(reader, precision=None)[source]
Bases:
object
Class for parsing data from a OBJ file.
The parser converts the raw geometric data of the file into corresponding COMPAS geometry objects and data structures.
- Parameters
reader (
PLYReader
) – A PLY file reader.precision (str) – COMPAS precision specification for parsing geometric data.
- Attributes
vertices (list[tuple[float, float, float]]) – The vertex coordinates.
edges (list[tuple[int, int]]) – Pairs of vertex indices defining the start and end points of edges.
faces (list[list[int]]) – Lists of vertex indices defining faces.
Methods
Parse the contents found by a PLY file reader.