File indexing completed on 2025-12-16 09:49:55
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_DEBUG_TURN_INFO_HPP
0010 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_DEBUG_TURN_INFO_HPP
0011
0012 #include <boost/geometry/algorithms/detail/overlay/turn_info.hpp>
0013 #include <boost/geometry/algorithms/detail/overlay/visit_info.hpp>
0014
0015
0016 namespace boost { namespace geometry
0017 {
0018
0019 inline char method_char(detail::overlay::method_type const& method)
0020 {
0021 using namespace detail::overlay;
0022 switch(method)
0023 {
0024 case method_none : return '-';
0025 case method_disjoint : return 'd';
0026 case method_crosses : return 'i';
0027 case method_touch : return 't';
0028 case method_touch_interior : return 'm';
0029 case method_collinear : return 'c';
0030 case method_equal : return 'e';
0031 case method_start : return 's';
0032 case method_error : return '!';
0033 default : return '?';
0034 }
0035 }
0036
0037 inline char operation_char(detail::overlay::operation_type const& operation)
0038 {
0039 using namespace detail::overlay;
0040 switch(operation)
0041 {
0042 case operation_none : return '-';
0043 case operation_union : return 'u';
0044 case operation_intersection : return 'i';
0045 case operation_blocked : return 'x';
0046 case operation_continue : return 'c';
0047 case operation_opposite : return 'o';
0048 default : return '?';
0049 }
0050 }
0051
0052 inline char visited_char(detail::overlay::visit_info const& v)
0053 {
0054 if (v.rejected()) return 'R';
0055 if (v.started()) return 's';
0056 if (v.visited()) return 'v';
0057 if (v.none()) return '-';
0058 if (v.finished()) return 'f';
0059 return '?';
0060 }
0061
0062
0063
0064 }}
0065
0066
0067 #endif