You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing some custom drawing inside a imgui_node_editor node to draw a shape that includes arcs. ImDrawList.path_arc_to seems to be the only way to draw a partial circle, so I am using this code snippet to draw a shape and stroke it:
The rendered shape is as expected, except that there is an arrowhead in place of the path_line_to segment. While trying different things, I have occasionally seen arrowheads on arc segments as well. I don't understand what is causing them, and I can't find any hints in the imgui code. Any thoughts?
Screenshot showing the issue ... the arrowhead is on the right straight edge of the "donut with a pie piece out" shape that is drawn by the above code. In the code, THETA_MIN is the angle of the left side and THETA_MAX is the angle of the right, so the arrow is on the path_line_to segment. The other straight segment comes automatically because the path_stroke has closed set.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am doing some custom drawing inside a
imgui_node_editor
node to draw a shape that includes arcs.ImDrawList.path_arc_to
seems to be the only way to draw a partial circle, so I am using this code snippet to draw a shape and stroke it:The rendered shape is as expected, except that there is an arrowhead in place of the
path_line_to
segment. While trying different things, I have occasionally seen arrowheads on arc segments as well. I don't understand what is causing them, and I can't find any hints in the imgui code. Any thoughts?Screenshot showing the issue ... the arrowhead is on the right straight edge of the "donut with a pie piece out" shape that is drawn by the above code. In the code, THETA_MIN is the angle of the left side and THETA_MAX is the angle of the right, so the arrow is on the
path_line_to
segment. The other straight segment comes automatically because thepath_stroke
hasclosed
set.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions