6161#include < lvr2/algorithm/raycasting/RaycasterBase.hpp>
6262#include < lvr2/geometry/BaseVector.hpp>
6363#include < lvr2/io/AttributeMeshIOBase.hpp>
64- #include < lvr2/geometry/BaseMesh .hpp>
64+ #include < lvr2/geometry/PMPMesh .hpp>
6565
6666#include " nanoflann.hpp"
6767#include " nanoflann_mesh_adaptor.h"
6868
6969namespace mesh_map
7070{
71- class MeshMap : public std ::enable_shared_from_this<MeshMap>
71+
72+ class MeshMap
73+ : public std::enable_shared_from_this<MeshMap>
7274{
7375public:
7476 inline static const std::string MESH_MAP_NAMESPACE = " mesh_map" ;
@@ -212,7 +214,7 @@ class MeshMap : public std::enable_shared_from_this<MeshMap>
212214 * @param barycentric_coords The barycentric coordinates of the query position.
213215 * @return An optional vector of the computed direction. It is valid if a vector has been computed successfully.
214216 */
215- boost::optional<Vector> directionAtPosition (const lvr2::VertexMap<lvr2::BaseVector< float > >& vector_map,
217+ boost::optional<Vector> directionAtPosition (const lvr2::VertexMap<Vector >& vector_map,
216218 const std::array<lvr2::VertexHandle, 3 >& vertices,
217219 const std::array<float , 3 >& barycentric_coords);
218220
@@ -269,7 +271,7 @@ class MeshMap : public std::enable_shared_from_this<MeshMap>
269271 /* *
270272 * @brief Returns the stored mesh
271273 */
272- std::shared_ptr<lvr2::BaseMesh <Vector> > mesh ()
274+ std::shared_ptr<lvr2::PMPMesh <Vector> > mesh ()
273275 {
274276 return mesh_ptr;
275277 }
@@ -399,7 +401,7 @@ class MeshMap : public std::enable_shared_from_this<MeshMap>
399401 * @param vector_map The vector field to publish
400402 * @param publish_face_vectors Enables to publish an additional vertex for the triangle's center.
401403 */
402- void publishVectorField (const std::string& name, const lvr2::DenseVertexMap<lvr2::BaseVector< float > >& vector_map,
404+ void publishVectorField (const std::string& name, const lvr2::DenseVertexMap<Vector >& vector_map,
403405 const bool publish_face_vectors = false );
404406
405407 /* *
@@ -410,7 +412,7 @@ class MeshMap : public std::enable_shared_from_this<MeshMap>
410412 * @param cost_function A cost function to compute costs inside a triangle
411413 * @param publish_face_vectors Enables to publish an additional vertex for the triangle's center.
412414 */
413- void publishVectorField (const std::string& name, const lvr2::DenseVertexMap<lvr2::BaseVector< float > >& vector_map,
415+ void publishVectorField (const std::string& name, const lvr2::DenseVertexMap<Vector >& vector_map,
414416 const lvr2::DenseVertexMap<float >& values,
415417 const std::function<float (float )>& cost_function = {},
416418 const bool publish_face_vectors = false );
@@ -453,8 +455,7 @@ class MeshMap : public std::enable_shared_from_this<MeshMap>
453455 // ! However we could also implement a server connection here
454456 // ! We might use the pluginlib for that
455457 std::shared_ptr<lvr2::AttributeMeshIOBase> mesh_io_ptr;
456- std::shared_ptr<lvr2::BaseMesh<Vector>> mesh_ptr;
457- std::string hem_impl_;
458+ std::shared_ptr<lvr2::PMPMesh<Vector> > mesh_ptr;
458459
459460private:
460461
0 commit comments