From 8dd25fad5d8d2271f2b2e7ec5d188f488e34f664 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Thu, 1 Apr 2021 11:55:08 +0200 Subject: [PATCH] fax save ply custom attribute with double precision --- src/meshlabplugins/io_base/baseio.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meshlabplugins/io_base/baseio.cpp b/src/meshlabplugins/io_base/baseio.cpp index 51ce08a7d..2dcdadec3 100644 --- a/src/meshlabplugins/io_base/baseio.cpp +++ b/src/meshlabplugins/io_base/baseio.cpp @@ -483,25 +483,25 @@ void BaseMeshIOPlugin::initSaveParameter(const QString &format, const MeshModel if (format.toUpper() == tr("PLY")){ std::vector AttribNameVector; - vcg::tri::Allocator::GetAllPerVertexAttribute< float >(m.cm, AttribNameVector); + vcg::tri::Allocator::GetAllPerVertexAttribute< Scalarm >(m.cm, AttribNameVector); for (int i = 0; i < (int)AttribNameVector.size(); i++) { QString va_name = AttribNameVector[i].c_str(); par.addParam(RichBool("PVAF" + va_name, false, "V(f): " + va_name, "Save this custom scalar (f) per-vertex attribute.")); } - vcg::tri::Allocator::GetAllPerVertexAttribute< vcg::Point3f >(m.cm, AttribNameVector); + vcg::tri::Allocator::GetAllPerVertexAttribute< Point3m >(m.cm, AttribNameVector); for (int i = 0; i < (int)AttribNameVector.size(); i++) { QString va_name = AttribNameVector[i].c_str(); par.addParam(RichBool("PVA3F" + va_name, false, "V(3f): " + va_name, "Save this custom vector (3f) per-vertex attribute.")); } - vcg::tri::Allocator::GetAllPerFaceAttribute< float >(m.cm, AttribNameVector); + vcg::tri::Allocator::GetAllPerFaceAttribute< Scalarm >(m.cm, AttribNameVector); for (int i = 0; i < (int)AttribNameVector.size(); i++) { QString va_name = AttribNameVector[i].c_str(); par.addParam(RichBool("PFAF" + va_name, false, "F(f): " + va_name, "Save this custom scalar (f) per-face attribute.")); } - vcg::tri::Allocator::GetAllPerFaceAttribute< vcg::Point3f >(m.cm, AttribNameVector); + vcg::tri::Allocator::GetAllPerFaceAttribute< Point3m >(m.cm, AttribNameVector); for (int i = 0; i < (int)AttribNameVector.size(); i++) { QString va_name = AttribNameVector[i].c_str();