geometry icon indicating copy to clipboard operation
geometry copied to clipboard

Cannot make 'point_on_surface' compile

Open JD31 opened this issue 1 year ago • 0 comments

I don't manage to use 'point_on_surface'. (Maybe I don't use the right method??)

    typedef boost::geometry::model::point<double, 2, boost::geometry::cs::cartesian> BGPoint;
    boost::geometry::model::polygon<BGPoint> poly;

    // ...

    BGPoint point;
    boost::geometry::point_on_surface(poly, point);

It does not build due to a static assert :

In template: static assertion failed due to requirement 'boost::geometry::detail::static_assert_check<false, boost::geometry::cartesian_tag>::value': Not implemented for this type.

in instantiation of template class 'boost::geometry::strategy::side::services::default_strategyboost::geometry::cartesian_tag' requested here in instantiation of function template specialization 'boost::geometry::point_on_surface<boost::geometry::model::polygon<boost::geometry::model::point<double, 2, boost::geometry::cs::cartesian>>, boost::geometry::model::point<double, 2, ...

JD31 avatar May 03 '24 14:05 JD31