AxisHelper.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:LineSegments] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">An axis object to visualize the the 3 axes in a simple way. <br />
  14. The X axis is red. The Y axis is green. The Z axis is blue.</div>
  15. <h2>Example</h2>
  16. <div>[example:webgl_geometries WebGL / geometries]</div>
  17. <div>[example:webgl_geometries2 WebGL / geometries2]</div>
  18. <div>[example:webgl_geometry_convex WebGL / geometry / convex]</div>
  19. <div>[example:webgl_geometry_spline_editor WebGL / geometry / spline / editor]</div>
  20. <code>
  21. var axisHelper = new THREE.AxisHelper( 5 );
  22. scene.add( axisHelper );
  23. </code>
  24. <h2>Constructor</h2>
  25. <h3>[name]( [page:Number size] )</h3>
  26. <div>
  27. [page:Number size] -- (optional )size of the lines representing the axes. Default is *1*.
  28. </div>
  29. <h2>Properties</h2>
  30. <div>See the base [page:LineSegments] class for common properties.</div>
  31. <h2>Methods</h2>
  32. <div>See the base [page:LineSegments] class for common methods.</div>
  33. <h2>Source</h2>
  34. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  35. </body>
  36. </html>