2
0

PolarGridHelper.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Object3D] &rarr; [page:Line] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">The PolarGridHelper is an object to define polar grids. Grids are two-dimensional arrays of lines.</p>
  14. <h2>Code Example</h2>
  15. <code>
  16. var radius = 10;
  17. var radials = 16;
  18. var circles = 8;
  19. var divisions = 64;
  20. var helper = new THREE.PolarGridHelper( radius, radials, circles, divisions );
  21. scene.add( helper );
  22. </code>
  23. <h2>Examples</h2>
  24. <p>
  25. [example:webgl_helpers WebGL / helpers]
  26. </p>
  27. <h2>Constructor</h2>
  28. <h3>[name]( [param:Number radius], [param:Number radials], [param:Number circles], [param:Number divisions], [param:Color color1], [param:Color color2] )</h3>
  29. <p>
  30. radius -- The radius of the polar grid. This can be any positive number. Default is 10.<br />
  31. radials -- The number of radial lines. This can be any positive integer. Default is 16.<br />
  32. circles -- The number of circles. This can be any positive integer. Default is 8.<br />
  33. divisions -- The number of line segments used for each circle. This can be any positive integer that is 3 or greater. Default is 64.<br />
  34. color1 -- The first color used for grid elements. This can be a [page:Color], a hexadecimal value and an CSS-Color name. Default is 0x444444 <br />
  35. color2 -- The second color used for grid elements. This can be a [page:Color], a hexadecimal value and an CSS-Color name. Default is 0x888888
  36. </p>
  37. <p>
  38. Creates a new [name] of radius 'radius' with 'radials' number of radials and 'circles' number of circles, where each circle is smoothed into 'divisions' number of line segments. Colors are optional.
  39. </p>
  40. <h2>Source</h2>
  41. <p>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </p>
  44. </body>
  45. </html>