Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. testimage =
  2. Plot[{Sin[x], Cos[x]}, {x, 0, Pi},
  3. PlotStyle -> Thickness[0.02],
  4. Axes -> False]
  5.  
  6. pts = ImageData[ColorNegate @ Binarize@testimage, "Bit"];
  7.  
  8. g =
  9. RegionPlot3D[pts[[Sequence @@ Round @ {i, j}]] == 1, {i, 1, #1}, {j, 1, #2}, {z, 0, 20},
  10. PlotPoints -> 100, Mesh -> False, Axes -> False, Boxed -> False] & @@ Dimensions[pts]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement