From ae18d9b445b7f2b1ae056b1a8e6fcb7c7a40633d Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Thu, 28 Aug 2014 09:46:16 +0000 Subject: [PATCH] added VectorFromCoord function --- vcg/complex/algorithms/mesh_to_matrix.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vcg/complex/algorithms/mesh_to_matrix.h b/vcg/complex/algorithms/mesh_to_matrix.h index 595a1eb0..17ed0f26 100644 --- a/vcg/complex/algorithms/mesh_to_matrix.h +++ b/vcg/complex/algorithms/mesh_to_matrix.h @@ -207,6 +207,12 @@ public: GetTriMeshData(mesh,faces,vert); GetTriEdgeAdjacency(vert,faces,EV,FE,EF); } + + static Eigen::Vector3d VectorFromCoord(CoordType v) + { + Eigen::Vector3d ret(v[0],v[1],v[2]); + return ret; + } }; } // end namespace tri