|
@@ -38,8 +38,8 @@
|
|
<h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
|
|
<h3>[name]( [page:Geometry geometry], [page:Material material] )</h3>
|
|
|
|
|
|
<div>
|
|
<div>
|
|
- geometry — Vertices representing the line segment(s).<br />
|
|
|
|
- material — Material for the line. Default is [page:LineBasicMaterial LineBasicMaterial].<br />
|
|
|
|
|
|
+ [page:Geometry geometry] — vertices representing the line segment(s). Default is a new [page:new BufferGeometry].<br />
|
|
|
|
+ [page:Material material] — material for the line. Default is a new [page:LineBasicMaterial] with random color.<br />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>If no material is supplied, a randomized line material will be created and assigned to the object.</div>
|
|
<div>If no material is supplied, a randomized line material will be created and assigned to the object.</div>
|
|
@@ -48,15 +48,19 @@
|
|
<h2>Properties</h2>
|
|
<h2>Properties</h2>
|
|
<div>See the base [page:Object3D] class for common properties.</div>
|
|
<div>See the base [page:Object3D] class for common properties.</div>
|
|
|
|
|
|
- <h3>[property:Geometry geometry]</h3>
|
|
|
|
|
|
+ <h3>[property:Boolean isLine]</h3>
|
|
<div>
|
|
<div>
|
|
- Vertices representing the line segment(s).
|
|
|
|
|
|
+ Used to check whether this or derived classes are lines. Default is *true*.<br /><br />
|
|
|
|
+
|
|
|
|
+ You should not change this, as it used internally for optimisation.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <h3>[property:Geometry geometry]</h3>
|
|
|
|
+ <div>Vertices representing the line segment(s).</div>
|
|
|
|
+
|
|
<h3>[property:Material material]</h3>
|
|
<h3>[property:Material material]</h3>
|
|
- <div>
|
|
|
|
- Material for the line.
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div>Material for the line.</div>
|
|
|
|
|
|
|
|
|
|
<h2>Methods</h2>
|
|
<h2>Methods</h2>
|
|
@@ -64,7 +68,8 @@
|
|
|
|
|
|
<h3>[method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )</h3>
|
|
<h3>[method:Array raycast]( [page:Raycaster raycaster], [page:Array intersects] )</h3>
|
|
<div>
|
|
<div>
|
|
- Get intersections between a casted ray and this Line. [page:Raycaster.intersectObject] will call this method.
|
|
|
|
|
|
+ Get intersections between a casted [page:Ray] and this Line.
|
|
|
|
+ [page:Raycaster.intersectObject] will call this method.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<h3>[method:Line clone]()</h3>
|
|
<h3>[method:Line clone]()</h3>
|