boost icon indicating copy to clipboard operation
boost copied to clipboard

geometry::distance always fail compile time with Static_assert failed due to requirement 'boost::geometry::detail::static_assert_check<false, boost::geometry::areal_tag, boost::geometry::box_tag>::value' "This operation is not or not yet implemented."

Open Quasarts opened this issue 2 years ago • 0 comments

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