Advertisement
buckeyevr

Untitled

Feb 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. //cup_of_water.bvr\n\n// Cylinder\np=parametricSurface\np.setMinMax=s,-10,10\np.setMinMax=t,0,6.6\np.setEquation=x,(2*cos(t))\np.setEquation=y,(2*sin(t))\np.setEquation=z,(.25*s)\np.setSegmentCount=20\np.color=red\np.spawn\n\n// Cup bottom \nc=parametricSurface\nc.setMinMax=s,0,3.14\nc.setMinMax=t,0,6.6\nc.setEquation=x,(2*cos(t)*sin(s))\nc.setEquation=y,(2*sin(t)*sin(s))\nc.setEquation=z,(-2.5)\nc.setSegmentCount=20\nc.color=red\nc.spawn\n\n// handle\na=parametricCurve\na.setMinMax=t,-2.1,2.1\na.setEquation=x,(2.5+cos(t))\na.setEquation=y,(0)\na.setEquation=z,(2*sin(t))\na.setSegmentCount=20\na.color=red\na.setThickness=.5\na.spawn\n\n// Water\nw=parametricSurface\nw.setMinMax=s,0,3.14\nw.setMinMax=t,0,6.6\nw.setEquation=x,(2*cos(t)*sin(s))\nw.setEquation=y,(2*sin(t)*sin(s))\nw.setEquation=z,(1)\nw.setSegmentCount=30\nw.color=blue\nw.spawn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement