1
0

PlaneHelper.html 1.9 KB

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