123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <!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 un [page:Plane Piano].
- </p>
- <h2>Codice di Esempio</h2>
- <code>
- const plane = new THREE.Plane( new THREE.Vector3( 1, 1, 0.2 ), 3 );
- const helper = new THREE.PlaneHelper( plane, 1, 0xffff00 );
- scene.add( helper );
- </code>
- <h2>Costruttore</h2>
- <h3>[name]( [param:Plane plane], [param:Float size], [param:Color hex] )</h3>
- <p>
- [page:Plane plane] -- il piano da visualizzare.<br />
- [page:Float size] -- (opzionale) lunghezza laterale dell'helper del piano. Il valore predefinito è 1.<br />
- [page:Color color] -- (opzionale) il colore dell'helper. Il valore predefinito è 0xffff00.<br /><br />
- Crea un nuovo wireframe che rappresenta il piano passato.
- </p>
- <h2>Proprietà</h2>
- <p>Vedi la classe base [page:LineSegments] per le proprietà in comune.</p>
- <h3>[property:Plane plane]</h3>
- <p>Il [page:Plane plane] da visualizzare.</p>
- <h3>[property:Float size]</h3>
- <p>Le lunghezze laterali dell'helper del piano.</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>
- Sovrascrive il metodo in base alla classe [page:Object3D].
- Questo sovrascrive il metodo nella classe base [page:Object3D] così che aggiorni anche l'oggetto helper in base alle proprietà
- [page:PlaneHelper.plane .plane] e [page:PlaneHelper.size .size].
- </p>
- <h2>Source</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|