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.
49 lines
1.4 KiB
49 lines
1.4 KiB
2 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="zh">
|
||
|
<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] →
|
||
|
|
||
|
<h1>线段([name])</h1>
|
||
|
|
||
|
<p class="desc">
|
||
|
在若干对的顶点之间绘制的一系列的线。<br /><br />
|
||
|
它和[page:Line]几乎是相同的,唯一的区别是它在渲染时使用的是[link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINES],
|
||
|
而不是[link:https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements gl.LINE_STRIP]。
|
||
|
</p>
|
||
|
|
||
|
|
||
|
<h2>构造器</h2>
|
||
|
|
||
|
<h3>[name]( [param:BufferGeometry geometry], [param:Material material] )</h3>
|
||
|
|
||
|
<p>
|
||
|
[page:BufferGeometry geometry] —— 表示每条线段的两个顶点。<br />
|
||
|
[page:Material material] —— 线的材质,默认值是[page:LineBasicMaterial LineBasicMaterial]。
|
||
|
</p>
|
||
|
|
||
|
<h2>属性</h2>
|
||
|
<p>共有属性请参见其基类[page:Line]。</p>
|
||
|
|
||
|
<h3>[property:Boolean isLineSegments]</h3>
|
||
|
<p>
|
||
|
Read-only flag to check if a given object is of type [name].
|
||
|
</p>
|
||
|
|
||
|
|
||
|
<h2>方法</h2>
|
||
|
<p>共有方法请参见其基类[page:Line]。</p>
|
||
|
|
||
|
<h2>源代码</h2>
|
||
|
|
||
|
<p>
|
||
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
||
|
</p>
|
||
|
</body>
|
||
|
</html>
|