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
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.
The text was updated successfully, but these errors were encountered:
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.
NOTE Pull request #67 introduced the
arrow
andarrow3d
rendersArrows in drawn by the
arrow3d
are not clipped when the start is outside the plot area but the end is inside the area. This is visible in the following example: https://github.com/racket/plot/blob/master/plot-test/plot/tests/PRs/test-data/pr42-2-2.pngSource for the test data is at:
plot/plot-test/plot/tests/PRs/42.rkt
Line 59 in 4415b2d
This is probably caused by the change here:
plot/plot-lib/plot/private/plot3d/plot-area.rkt
Line 1519 in 4415b2d
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 withput-line
which presumably clips the line correctly. We need to add line clipping for the start as well.The text was updated successfully, but these errors were encountered: