geometry icon indicating copy to clipboard operation
geometry copied to clipboard

Cartesian distance fails to compile (This operation is not or not yet implemented)

Open Quasarts opened this issue 3 years ago • 1 comments
trafficstars

Whatever geometry is used. Boost is compiled with xcode 13.4.1

Example : typedef boost::geometry::model::d2::point_xy point_t; typedef boost::geometry::model::polygon<point_t> poly_t;

point_t p(ray.m_origin.x, ray.m_origin.y);

poly_t poly; poly.outer().push_back(point_t(R0.x, R0.z)); poly.outer().push_back(point_t(R1.x, R1.z)); poly.outer().push_back(point_t(L0.x, L0.z)); poly.outer().push_back(point_t(L1.x, L1.z)); poly.outer().push_back(point_t(R0.x, R0.z));

    auto distance = boost::geometry::distance(p, poly);

We get : Static_assert failed due to requirement 'boost::geometry::detail::static_assert_check<false, boost::geometry::point_tag, boost::geometry::areal_tag>::value' "This operation is not or not yet implemented."

Quasarts avatar Jul 12 '22 13:07 Quasarts

What version of boost are you using? Could you please share a minimal example so that we can reproduce it? In the current one there are undefined variables and syntactic typos.

vissarion avatar Nov 16 '22 14:11 vissarion