From 83122dcfd46d373a989540bc4d680b0ec0ef3129 Mon Sep 17 00:00:00 2001 From: Chandan Yeshwanth Date: Mon, 13 Jun 2022 12:37:09 +0200 Subject: [PATCH] Read the data type for #vertices/face from PLY header, remove commented code --- include/core-mesh/meshIO.cpp | 33 ++++++++++------------------- include/core-mesh/plyHeader.h | 40 +++++++++++++++++++++++++++++------ 2 files changed, 44 insertions(+), 29 deletions(-) diff --git a/include/core-mesh/meshIO.cpp b/include/core-mesh/meshIO.cpp index 7f1cfb3..426560c 100644 --- a/include/core-mesh/meshIO.cpp +++ b/include/core-mesh/meshIO.cpp @@ -115,25 +115,22 @@ void MeshIO::loadFromPLY( const std::string& filename, MeshData::loadFromPLY( const std::string& filename, MeshData> ignore; + // uchar/int + ss >> p.nameType; + // create our own name for this + p.name = "verticesPerFace"; + p.byteSize = getByteSizeFromNameType(p.nameType); + header.m_properties[p.name].push_back(p); + } else { //property belonging to unknown element }