|
@@ -0,0 +1,65 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+ <head>
|
|
|
+ <meta charset="utf-8" />
|
|
|
+ <base href="../../" />
|
|
|
+ <script src="list.js"></script>
|
|
|
+ <script src="page.js"></script>
|
|
|
+ <link type="text/css" rel="stylesheet" href="page.css" />
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ [page:LineSegments] →
|
|
|
+
|
|
|
+ <h1>[name]</h1>
|
|
|
+
|
|
|
+ <div class="desc">
|
|
|
+ Helper object to visualize a [page:Plane].
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>Example</h2>
|
|
|
+
|
|
|
+ <code>
|
|
|
+ var plane = new THREE.Plane( new THREE.Vector3( 1, 1, 0.2 ), 3 );
|
|
|
+ var helper = new THREE.PlaneHelper( plane, 1, 0xffff00 );
|
|
|
+ scene.add( helper );
|
|
|
+ </code>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>Constructor</h2>
|
|
|
+
|
|
|
+
|
|
|
+ <h3>[name]( [page:Plane plane], [page:Float size], [page:Color hex] )</h3>
|
|
|
+ <div>
|
|
|
+ [page:Plane plane] -- the plane to visualize.<br />
|
|
|
+ [page:Float size] -- (optional) side length of plane helper. Default is 1.<br />
|
|
|
+ [page:Color color] -- (optional) the color of the helper. Default is 0xffff00.<br /><br />
|
|
|
+
|
|
|
+ Creates a new wireframe representation of the passed plane.
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <h2>Properties</h2>
|
|
|
+ <div>See the base [page:LineSegments] class for common properties.</div>
|
|
|
+
|
|
|
+ <h3>[property:Plane plane]</h3>
|
|
|
+ <div>The [page:Plane plane] being visualized.</div>
|
|
|
+
|
|
|
+ <h3>[property:Float size]</h3>
|
|
|
+ <div>The side lengths of plane helper.</div>
|
|
|
+
|
|
|
+
|
|
|
+ <h2>Methods</h2>
|
|
|
+ <div>See the base [page:LineSegments] class for common methods.</div>
|
|
|
+
|
|
|
+ <h3>[method:void updateMatrixWorld]( force )</h3>
|
|
|
+ <div>
|
|
|
+ This overrides the method in the base [page:Object3D] class so that it also
|
|
|
+ updates the helper object according to the [page:PlaneHelper.plane .plane] and
|
|
|
+ [page:PlaneHelper.size .size] properties.
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <h2>Source</h2>
|
|
|
+
|
|
|
+ [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
+ </body>
|
|
|
+</html>
|