47 auto read() -> ITKMesh::Pointer;
Read a PLY file to an ITKMesh.
void parse_header_()
Parse the PLY header.
filesystem::path inputPath_
void read_points_()
Fill the temporary vertex list with parsed vertex information.
PLYReader(filesystem::path path)
Constructor with input file path.
void create_mesh_()
Construct outMesh_ from the temporary vertices and faces.
PLYReader()=default
Default constructor.
std::map< std::string, int > properties_
std::vector< int > skippedLine_
std::vector< std::string > elementsList_
auto read() -> ITKMesh::Pointer
Parse the input file.
std::vector< SimpleMesh::Vertex > pointList_
void read_faces_()
Fill the temporary face list with parsed face information.
std::vector< SimpleMesh::Cell > faceList_
ITKMesh::Pointer outMesh_
auto getMesh() -> ITKMesh::Pointer
Get the parsed input as an ITKMesh.
void setPath(filesystem::path path)
Set the input file path.