Boost logo

Boost Users :

Subject: [Boost-users] how to find a point from linestring?
From: rakesh patil (prakeshofficial_at_[hidden])
Date: 2012-08-27 06:00:58


Hi,

I am new to Boost. I am using boost::geometry to define my data structure
as follows

typedef boost::geometry::model::point<double, 3, bg::cs::cartesian>
point_3d;
typedef boost::geometry::model::linestring<point_3d> linestring_3d;

and I declare a linestring variable as follows

linestring m_linestring;

Now after adding several points in m_linestring, is there any way to find
out whether a particular point exists in the list m_linestring? Just like
in case of std::vector, it can be found out using std::find function.

Thanks in advance



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net