From 7b64489526e4e266043e3b2f0d3a09778eb6de7f Mon Sep 17 00:00:00 2001 From: ganovelli Date: Wed, 26 Nov 2008 17:59:29 +0000 Subject: [PATCH] added Alloc to support polygon meshes --- wrap/io_trimesh/import_ply.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index cddb5302..51141538 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -727,6 +727,8 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) return pi.status; } } + + if(m.HasPolyInfo()) (*fi).Alloc(3); if(m.HasPerFaceFlags() &&( pi.mask & Mask::IOM_FACEFLAGS) ) {