Commit 919d8055 authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[types] Added some non-const getters in Mesh

parent 254379d0
...@@ -43,6 +43,8 @@ class Mesh ...@@ -43,6 +43,8 @@ class Mesh
const PointVector& points() const; const PointVector& points() const;
const FaceVector& faces() const; const FaceVector& faces() const;
PointVector& points();
FaceVector& faces();
const Point& point(size_t idx) const; const Point& point(size_t idx) const;
const Face& face(size_t idx) const; const Face& face(size_t idx) const;
...@@ -119,6 +121,20 @@ const typename Mesh<PointT,FaceT,VectorT>::FaceVector& ...@@ -119,6 +121,20 @@ const typename Mesh<PointT,FaceT,VectorT>::FaceVector&
return faces_; return faces_;
} }
template <typename PointT, typename FaceT, template <typename> class VectorT>
typename Mesh<PointT,FaceT,VectorT>::PointVector&
Mesh<PointT,FaceT,VectorT>::points()
{
return points_;
}
template <typename PointT, typename FaceT, template <typename> class VectorT>
typename Mesh<PointT,FaceT,VectorT>::FaceVector&
Mesh<PointT,FaceT,VectorT>::faces()
{
return faces_;
}
template <typename PointT, typename FaceT, template <typename> class VectorT> template <typename PointT, typename FaceT, template <typename> class VectorT>
const typename Mesh<PointT,FaceT,VectorT>::Point& const typename Mesh<PointT,FaceT,VectorT>::Point&
Mesh<PointT,FaceT,VectorT>::point(size_t idx) const Mesh<PointT,FaceT,VectorT>::point(size_t idx) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment