[page:Object3D] → [page:Line] →

环线([name])

一条头尾相接的连续的线。

它几乎和[page:Line]是相同的,唯一的区别是它在渲染时使用的是[link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_LOOP], 而不是[link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_STRIP], 它绘制一条直线到下一个顶点,并将最后一个顶点连回第一个顶点。

构造器

[name]( [param:BufferGeometry geometry], [param:Material material] )

[page:BufferGeometry geometry] —— 表示环线上的点的顶点列表。
[page:Material material] —— 线的材质,默认值是[page:LineBasicMaterial LineBasicMaterial]。

属性

共有属性请参见其基类[page:Line]。

[property:Boolean isLineLoop]

Read-only flag to check if a given object is of type [name].

方法

共有方法请参见其基类[page:Line]。

源代码

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]