1
0

AxesHelper.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:Object3D] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. An axis object to visualize the 3 axes in a simple way. <br />
  14. The X axis is red. The Y axis is green. The Z axis is blue.
  15. </p>
  16. <h2>Code Example</h2>
  17. <code>
  18. const axesHelper = new THREE.AxesHelper( 5 );
  19. scene.add( axesHelper );
  20. </code>
  21. <h2>Examples</h2>
  22. <p>
  23. [example:webgl_buffergeometry_compression WebGL / buffergeometry / compression]<br />
  24. [example:webgl_geometry_convex WebGL / geometry / convex]<br />
  25. [example:webgl_loader_nrrd WebGL / loader / nrrd]
  26. </p>
  27. <h2>Constructor</h2>
  28. <h3>[name]( [param:Number size] )</h3>
  29. <p>
  30. [page:Number size] -- (optional) size of the lines representing the axes.
  31. Default is `1`.
  32. </p>
  33. <h2>Properties</h2>
  34. <p>See the base [page:LineSegments] class for common properties.</p>
  35. <h2>Methods</h2>
  36. <p>See the base [page:LineSegments] class for common methods.</p>
  37. <h3>
  38. [method:this setColors]( [param:Color xAxisColor], [param:Color yAxisColor], [param:Color zAxisColor] )
  39. </h3>
  40. <p>
  41. Sets the axes colors to [page:Color xAxisColor], [page:Color yAxisColor],
  42. [page:Color zAxisColor].
  43. </p>
  44. <h3>[method:undefined dispose]()</h3>
  45. <p>
  46. Frees the GPU-related resources allocated by this instance. Call this
  47. method whenever this instance is no longer used in your app.
  48. </p>
  49. <h2>Source</h2>
  50. <p>
  51. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  52. </p>
  53. </body>
  54. </html>