DrawNodeCircle has bug/redundancy. but it works. #555
Labels
adjustments required
An issue require some adjustments in code
BUG
Defect detected
confirmed
Represents confirmed issue or bug
technical
Tasks that need to be performed in order to improve quality and maintainability
UI
User interface updates
Milestone
TrafficManagerTool.DrawNodeCircle has a bug. but the bug is in redundant code so it works.
m_segment0 in the code above can be zero (screenshot 1). this is similar to #549.
Fortunately here the code that utilizes m_segment0 is redundant at least to the best of my knowledge. In screenshot 2 m_segment0 is 0 and its directional vectors are subsequently zero as well. Nevertheless the final bezier result is accurate. screenshot 3 shows a valid m_segment0 will result in the same bezier result as invalid m_segment0.
The call to CalculateMiddlePoints()
Why are we calling CalculateMiddlePoints on a single node anyway. node cannot collide with node?
Risk
Action
we do not need
segment
or a call toCalculateMiddlePoints
(AFIK). Insteadbezier.a=bezier.b=bezier.c=bezier.d=pos because its a simple node.DrawOverlayCircle(cameraInfo, color, pos, 20, alpha);
The text was updated successfully, but these errors were encountered: