Files
apt-nl-map/static/Magic4/js/three.js-dev/docs/api/zh/objects/LineLoop.html
2024-12-04 10:21:04 +08:00

46 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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] &rarr; [page:Line] &rarr;
<h1>环线([name]</h1>
<p class="desc">
一条头尾相接的连续的线。<br /><br />
它几乎和[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]
它绘制一条直线到下一个顶点,并将最后一个顶点连回第一个顶点。
</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>
<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>