2
0

AxesHelper.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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">An axis object to visualize the 3 axes in a simple way. <br />
  13. The X axis is red. The Y axis is green. The Z axis is blue.
  14. </p>
  15. <h2>Code Example</h2>
  16. <code>
  17. const axesHelper = new THREE.AxesHelper( 5 );
  18. scene.add( axesHelper );
  19. </code>
  20. <h2>Examples</h2>
  21. <p>
  22. [example:css2d_label Css2d / label]<br/>
  23. [example:misc_animation_keys Misc / animation / keys]<br/>
  24. [example:misc_exporter_gltf Misc / exporter / gltf]<br/>
  25. [example:webgl_buffergeometry_compression WebGL / buffergeometry / compression]<br/>
  26. [example:webgl_geometry_convex WebGL / geometry / convex]<br/>
  27. [example:webgl_loader_nrrd WebGL / loader / nrrd]<br/>
  28. </p>
  29. <h2>Constructor</h2>
  30. <h3>[name]( [param:Number size] )</h3>
  31. <p>
  32. [page:Number size] -- (optional) size of the lines representing the axes. Default is *1*.
  33. </p>
  34. <h2>Properties</h2>
  35. <p>See the base [page:LineSegments] class for common properties.</p>
  36. <h2>Methods</h2>
  37. <p>See the base [page:LineSegments] class for common methods.</p>
  38. <h2>Source</h2>
  39. <p>
  40. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  41. </p>
  42. </body>
  43. </html>