PlaneHelper.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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">
  14. Helper object to visualize a [page:Plane].
  15. </p>
  16. <h2>Code Example</h2>
  17. <code>
  18. var plane = new THREE.Plane( new THREE.Vector3( 1, 1, 0.2 ), 3 );
  19. var helper = new THREE.PlaneHelper( plane, 1, 0xffff00 );
  20. scene.add( helper );
  21. </code>
  22. <h2>Constructor</h2>
  23. <h3>[name]( [param:Plane plane], [param:Float size], [param:Color hex] )</h3>
  24. <p>
  25. [page:Plane plane] -- the plane to visualize.<br />
  26. [page:Float size] -- (optional) side length of plane helper. Default is 1.<br />
  27. [page:Color color] -- (optional) the color of the helper. Default is 0xffff00.<br /><br />
  28. Creates a new wireframe representation of the passed plane.
  29. </p>
  30. <h2>Properties</h2>
  31. <p>See the base [page:LineSegments] class for common properties.</p>
  32. <h3>[property:Plane plane]</h3>
  33. <p>The [page:Plane plane] being visualized.</p>
  34. <h3>[property:Float size]</h3>
  35. <p>The side lengths of plane helper.</p>
  36. <h2>Methods</h2>
  37. <p>See the base [page:LineSegments] class for common methods.</p>
  38. <h3>[method:void updateMatrixWorld]( [param:Boolean force] )</h3>
  39. <p>
  40. This overrides the method in the base [page:Object3D] class so that it also
  41. updates the helper object according to the [page:PlaneHelper.plane .plane] and
  42. [page:PlaneHelper.size .size] properties.
  43. </p>
  44. <h2>Source</h2>
  45. <p>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </p>
  48. </body>
  49. </html>