Merge pull request #2673 from komi1230/master
Removed arrow3d from gr.jl in backends/
This commit is contained in:
commit
6ddf31d465
@ -148,7 +148,7 @@ function gr_polyline(x, y, func = GR.polyline; arrowside = :none, arrowstyle = :
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function gr_polyline3d(x, y, z, func = GR.polyline3d; arrowside = :none, arrowstyle = :simple)
|
function gr_polyline3d(x, y, z, func = GR.polyline3d)
|
||||||
iend = 0
|
iend = 0
|
||||||
n = length(x)
|
n = length(x)
|
||||||
while iend < n-1
|
while iend < n-1
|
||||||
@ -176,14 +176,6 @@ function gr_polyline3d(x, y, z, func = GR.polyline3d; arrowside = :none, arrowst
|
|||||||
# if we found a start and end, draw the line segment, otherwise we're done
|
# if we found a start and end, draw the line segment, otherwise we're done
|
||||||
if istart > 0 && iend > 0
|
if istart > 0 && iend > 0
|
||||||
func(x[istart:iend], y[istart:iend], z[istart:iend])
|
func(x[istart:iend], y[istart:iend], z[istart:iend])
|
||||||
if arrowside in (:head,:both)
|
|
||||||
gr_set_arrowstyle(arrowstyle)
|
|
||||||
GR.drawarrow(x[iend-1], y[iend-1], z[iend-1], x[iend], y[iend], z[iend])
|
|
||||||
end
|
|
||||||
if arrowside in (:tail,:both)
|
|
||||||
gr_set_arrowstyle(arrowstyle)
|
|
||||||
GR.drawarrow(x[istart+1], y[istart+1], z[istart+1], x[istart], y[istart], z[istart])
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user