Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = (radius*Math::sin(phi+(2*Math::PI*i)/faces)*Math::cos(phi+(2*Math::PI*i)/faces)).round(rnd)
- y = (radius*Math::cos(phi+(2*Math::PI*i)/faces)*Math::sin(phi+(2*Math::PI*i)/faces)).round(rnd)
- z = (radius*Math::cos(phi+(2*Math::PI*i)/faces)).round(rnd)
- xn = (radius*Math::sin(phi+(2*Math::PI*i.next)/faces)*Math::cos(phi+(2*Math::PI*i.next)/faces)).round(rnd)
- yn = (radius*Math::cos(phi+(2*Math::PI*i.next)/faces)*Math::sin(phi+(2*Math::PI*i.next)/faces)).round(rnd)
- zn = (radius*Math::cos(phi+(2*Math::PI*i.next)/faces)).round(rnd)
- push [Point.new(x, y, z), Point.new(xn, yn, zn)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement