2
0

Box3Helper.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 una [page:Box3].
  14. </p>
  15. <h2>Codice di Esempio</h2>
  16. <code>
  17. const box = new THREE.Box3();
  18. box.setFromCenterAndSize( new THREE.Vector3( 1, 1, 1 ), new THREE.Vector3( 2, 1, 3 ) );
  19. const helper = new THREE.Box3Helper( box, 0xffff00 );
  20. scene.add( helper );
  21. </code>
  22. <h2>Costruttore</h2>
  23. <h3>[name]( [param:Box3 box], [param:Color color] )</h3>
  24. <p>
  25. [page:Box3 box] -- il Box3 da mostrare.<br />
  26. [page:Color color] -- (opzionale) il colore del box. Il valore predefinito è 0xffff00.<br /><br />
  27. Crea un nuovo wireframe box che rappresenta il Box3 passato.
  28. </p>
  29. <h2>Proprietà</h2>
  30. <p>Vedi la classe base [page:LineSegments] per le proprietà in comune.</p>
  31. <h3>[property:Box3 box]</h3>
  32. <p>Il Box3 visualizzato.</p>
  33. <h2>Metodi</h2>
  34. <p>Vedi la classe base [page:LineSegments] per i metodi comuni.</p>
  35. <h3>[method:undefined updateMatrixWorld]( [param:Boolean force] )</h3>
  36. <p>
  37. Questo sovrascrive il metodo nella classe base [page:Object3D] così che
  38. aggiorni anche il wireframe box nell'ambito della proprietà [page:Box3Helper.box .box]
  39. </p>
  40. <h2>Source</h2>
  41. <p>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </p>
  44. </body>
  45. </html>