Replies: 1 comment
-
I've spent much time on it and now it's going properly. def __init__(self,start: np.ndarray,end: np.ndarray,*args,**kwargs):
start=start+end
end=start-end
start=start-end
super().__init__(start=start,end=end,*args,**kwargs) and in prev_end = self.get_start()
arc_len = self.get_arc_length()
tip_len = self.get_stroke_width() * self.width_to_tip_len * self.tip_width_ratio
if tip_len >= self.max_tip_length_to_length_ratio * arc_len: #得到max_tip_len
alpha = self.max_tip_length_to_length_ratio
else:
alpha = tip_len / arc_len
self.pointwise_become_partial(self, 1-alpha, 1)
self.add_line_to(prev_end)
return self |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use Arrow it goes like this:
https://thumbnail1.baidupcs.com/thumbnail/c1fd78ab7saf91293ecd75855498428f?fid=1235339601-250528-743290651475862&rt=pr&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-5cnRCOzDw4U7NQMSnMUh9OGNnPs%3d&expires=8h&chkbd=0&chkv=0&dp-logid=9190773326098062895&dp-callid=0&time=1649433600&size=c1440_u900&quality=90&vuk=1235339601&ft=image&autopolicy=1
The tip and line seem to be confused in the source code (geometry.py
so that the tip was longer than the line, and the line becomes very tiny.
How can I correct it?
Beta Was this translation helpful? Give feedback.
All reactions