Skip to main content

read_ply

Function read_ply 

Source
pub fn read_ply(text: &str) -> OgeomResult<Triangulation>
Expand description

Read an ASCII PLY into a triangulation.

The element order the header declares, the properties it names, and the faces’ own vertex lists. Binary PLY is refused by name: its header says format binary_little_endian and this reads format ascii, which is what every writer here emits and what the format’s own text dialect is.

§Errors

OgeomError::Construction if the header is not a PLY header, the format is binary, or the body does not match what the header promised.