[get_turn_info] minor, comments, style

This commit is contained in:
Barend Gehrels
2018-12-05 11:25:17 +01:00
parent fdac1fb86d
commit daf901aaf2
2 changed files with 6 additions and 5 deletions

View File

@@ -997,8 +997,7 @@ struct get_turn_info
<
TurnInfo,
AssignPolicy
>::apply(range_p, range_q,
tp, out, inters);
>::apply(range_p, range_q, tp, out, inters);
}
}
break;

View File

@@ -736,13 +736,15 @@ struct get_turn_info_linear_areal
if ( ip0.is_qj )
{
// TODO: wrong! q should never be substituted for p.
// In the end point there is no point "k", that should be fixed in another way
ov::side_calculator_for_endpoint
<
typename IntersectionInfo::cs_tag,
rp1_type, rp2_type,
typename IntersectionInfo::side_strategy_type,
rp2_type
> side_calc(inters.rqi(), inters.rpi(), inters.rpj(), // TODO: wrong! q should not be substituted for p, and i/j should be j/k
> side_calc(inters.rqi(), inters.rpi(), inters.rpj(),
inters.rqi(), inters.rqj(), inters.rqk(),
inters.get_side_strategy());
@@ -764,7 +766,7 @@ struct get_turn_info_linear_areal
rp2_type, rp1_type, rp1_type,
rp2_type, rp1_type, rp2_type
> side_calc(inters.rqi(), inters.rpi(), inters.rpj(), // TODO: wrong! q should not be substituted for p
inters.rqi(), inters.rpi(), inters.rqj(),
inters.rqi(), inters.rpi(), inters.rqj(), // TODO: wrong! p should not be substituted for q
inters.get_side_strategy());
std::pair<operation_type, operation_type>
@@ -816,7 +818,7 @@ struct get_turn_info_linear_areal
typename IntersectionInfo::robust_point2_type,
typename IntersectionInfo::side_strategy_type,
typename IntersectionInfo::robust_point2_type
> side_calc(inters.rqi(), inters.rpj(), inters.rpi(), // TODO: wrong! q should not be substituted for p; j/i should be j/k
> side_calc(inters.rqi(), inters.rpj(), inters.rpi(), // TODO: wrong! q should not be substituted for p
inters.rqi(), inters.rqj(), inters.rqk(),
inters.get_side_strategy());