AxesHelper.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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; [page:LineSegments] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">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.</p>
  15. <h2>Example</h2>
  16. <div>[example:webgl_geometries WebGL / geometries]</div>
  17. <div>[example:webgl_geometry_convex WebGL / geometry / convex]</div>
  18. <div>[example:webgl_geometry_spline_editor WebGL / geometry / spline / editor]</div>
  19. <code>
  20. var axesHelper = new THREE.AxesHelper( 5 );
  21. scene.add( axesHelper );
  22. </code>
  23. <h2>Constructor</h2>
  24. <h3>[name]( [param:Number size] )</h3>
  25. <p>
  26. [page:Number size] -- (optional) size of the lines representing the axes. Default is *1*.
  27. </p>
  28. <h2>Properties</h2>
  29. <p>See the base [page:LineSegments] class for common properties.</p>
  30. <h2>Methods</h2>
  31. <p>See the base [page:LineSegments] class for common methods.</p>
  32. <h2>Source</h2>
  33. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  34. </body>
  35. </html>