12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!DOCTYPE html>
- <html lang="it">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:Object3D] → [page:Line] → [page:LineSegments] →
- <h1>[name]</h1>
- <p class="desc">
- Oggetto per visualizzare una [page:Box3].
- </p>
- <h2>Codice di Esempio</h2>
- <code>
- const box = new THREE.Box3();
- box.setFromCenterAndSize( new THREE.Vector3( 1, 1, 1 ), new THREE.Vector3( 2, 1, 3 ) );
- const helper = new THREE.Box3Helper( box, 0xffff00 );
- scene.add( helper );
- </code>
- <h2>Costruttore</h2>
- <h3>[name]( [param:Box3 box], [param:Color color] )</h3>
- <p>
- [page:Box3 box] -- il Box3 da mostrare.<br />
- [page:Color color] -- (opzionale) il colore del box. Il valore predefinito è 0xffff00.<br /><br />
- Crea un nuovo wireframe box che rappresenta il Box3 passato.
- </p>
- <h2>Proprietà</h2>
- <p>Vedi la classe base [page:LineSegments] per le proprietà in comune.</p>
- <h3>[property:Box3 box]</h3>
- <p>Il Box3 visualizzato.</p>
- <h2>Metodi</h2>
- <p>Vedi la classe base [page:LineSegments] per i metodi comuni.</p>
- <h3>[method:undefined updateMatrixWorld]( [param:Boolean force] )</h3>
- <p>
- Questo sovrascrive il metodo nella classe base [page:Object3D] così che
- aggiorni anche il wireframe box nell'ambito della proprietà [page:Box3Helper.box .box]
- </p>
- <h2>Source</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|