PlaneHelper.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html lang="it">
  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">
  13. Oggetto per visualizzare un [page:Plane Piano].
  14. </p>
  15. <h2>Codice di Esempio</h2>
  16. <code>
  17. const plane = new THREE.Plane( new THREE.Vector3( 1, 1, 0.2 ), 3 );
  18. const helper = new THREE.PlaneHelper( plane, 1, 0xffff00 );
  19. scene.add( helper );
  20. </code>
  21. <h2>Costruttore</h2>
  22. <h3>[name]( [param:Plane plane], [param:Float size], [param:Color hex] )</h3>
  23. <p>
  24. [page:Plane plane] -- il piano da visualizzare.<br />
  25. [page:Float size] -- (opzionale) lunghezza laterale dell'helper del piano. Il valore predefinito è 1.<br />
  26. [page:Color color] -- (opzionale) il colore dell'helper. Il valore predefinito è 0xffff00.<br /><br />
  27. Crea un nuovo wireframe che rappresenta il piano passato.
  28. </p>
  29. <h2>Proprietà</h2>
  30. <p>Vedi la classe base [page:LineSegments] per le proprietà in comune.</p>
  31. <h3>[property:Plane plane]</h3>
  32. <p>Il [page:Plane plane] da visualizzare.</p>
  33. <h3>[property:Float size]</h3>
  34. <p>Le lunghezze laterali dell'helper del piano.</p>
  35. <h2>Metodi</h2>
  36. <p>Vedi la classe base [page:LineSegments] per i metodi comuni.</p>
  37. <h3>[method:undefined updateMatrixWorld]( [param:Boolean force] )</h3>
  38. <p>
  39. Sovrascrive il metodo in base alla classe [page:Object3D].
  40. Questo sovrascrive il metodo nella classe base [page:Object3D] così che aggiorni anche l'oggetto helper in base alle proprietà
  41. [page:PlaneHelper.plane .plane] e [page:PlaneHelper.size .size].
  42. </p>
  43. <h2>Source</h2>
  44. <p>
  45. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  46. </p>
  47. </body>
  48. </html>