Advertisement
Guest User

Untitled

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