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
{{ message }}
Repository navigation
Arrows in drawn by the arrow3d are not clipped sometimes #68
When the draw-outside? parameter is #t, the line arrow is drawn even if the start is outside. Note that there is a check there for the end of the arrow, and if the end is outside, the arrow drawing is replaced with put-line which presumably clips the line correctly. We need to add line clipping for the start as well.
This is not so much a new error, but an error that already existed in the put-arrow function. The arrows were never clipped.
For vector-fields3d this was not a problem since the base-point of the vector was always lying within the plot area.
The arrow3d just expose this problem since the start of an arrow can now be outside the area.
For the 2D case there is a similar clipping error when zooming in very deep.
(** in both plots, the lines should be going to the left)
For the 2D case, this is happening when one end of the vector is a large (rational?) negative number. For Lines etc. this is solved by clipping the lines that go outside the drawing area.
For arrows, I was hesitant to start clipping, since that also will affect the arrowheads.
Activity
bdeket commentedon Sep 1, 2020
This is not so much a new error, but an error that already existed in the put-arrow function. The arrows were never clipped.
For vector-fields3d this was not a problem since the base-point of the vector was always lying within the plot area.
The arrow3d just expose this problem since the start of an arrow can now be outside the area.
For the 2D case there is a similar clipping error when zooming in very deep.
vector-field has the same error:
(** in both plots, the lines should be going to the left)
For the 2D case, this is happening when one end of the vector is a large (rational?) negative number. For Lines etc. this is solved by clipping the lines that go outside the drawing area.
For arrows, I was hesitant to start clipping, since that also will affect the arrowheads.