You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.6 KiB

2 years ago
<!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] &rarr; [page:Line] &rarr; [page:LineSegments] &rarr;
<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>