From abcde4bbed4945d9c29424cd45cfba0196fd169f Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Thu, 18 Mar 2021 18:54:15 +0100 Subject: [PATCH] vrml const correctness --- wrap/io_trimesh/export_vrml.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wrap/io_trimesh/export_vrml.h b/wrap/io_trimesh/export_vrml.h index 4348ef86..117fbd4a 100644 --- a/wrap/io_trimesh/export_vrml.h +++ b/wrap/io_trimesh/export_vrml.h @@ -57,15 +57,15 @@ namespace vcg { class ExporterWRL { public: - typedef typename SaveMeshType::VertexPointer VertexPointer; + typedef typename SaveMeshType::ConstVertexPointer VertexPointer; typedef typename SaveMeshType::ScalarType ScalarType; typedef typename SaveMeshType::VertexType VertexType; typedef typename SaveMeshType::FaceType FaceType; - typedef typename SaveMeshType::VertexIterator VertexIterator; - typedef typename SaveMeshType::FaceIterator FaceIterator; + typedef typename SaveMeshType::ConstVertexIterator VertexIterator; + typedef typename SaveMeshType::ConstFaceIterator FaceIterator; ///Standard call for saving a mesh - static int Save(SaveMeshType &m, const char * filename, const int &mask, CallBackPos * /*cb=0*/) + static int Save(const SaveMeshType &m, const char * filename, const int &mask, CallBackPos * /*cb=0*/) { FILE *fp; fp = fopen(filename,"wb"); @@ -321,4 +321,4 @@ namespace vcg { } // end Namespace tri } // end Namespace vcg -#endif \ No newline at end of file +#endif