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
Currently, there is no simple way to access the coordinates of the contour lines. It would be nice with something like
function coordinates(c::Curve2)
N = length(c.vertices)
xlist = Array(Float64,N)
ylist = Array(Float64,N)
for (i,v) in enumerate(c.vertices)
xlist[i] = v[1]
ylist[i] = v[2]
end
xlist, ylist
end
@darwindarak I'm not sure that's a good idea, since you loose some information in the process - given the result of that function, there's no way of knowing which, if any, of the included vertices are "false" ones, connecting the ends of two lines rather than specifying a surface. And since, given coordinates, it's not so hard to do if you do want it, we could just as well let the user handle it =)
Currently, there is no simple way to access the coordinates of the contour lines. It would be nice with something like
to be used as
xs, ys = coordinates(line)
but there might be an even better API for it. See also some discussion here: https://groups.google.com/forum/?fromgroups=#!topic/julia-users/yVKubPEoUYEThe text was updated successfully, but these errors were encountered: