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.

56 lines
1.8 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] &rarr; [page:Line] &rarr;
<h1>[name]</h1>
<p class="desc">极坐标格辅助对象. 坐标格实际上是2维线数组.</p>
<h2>代码示例</h2>
<code>
const radius = 10;
const sectors = 16;
const rings = 8;
const divisions = 64;
const helper = new THREE.PolarGridHelper( radius, sectors, rings, divisions );
scene.add( helper );
</code>
<h2>例子</h2>
<p>
[example:webgl_helpers WebGL / helpers]
</p>
<h2>构造函数</h2>
<h3>[name]( [param:Number radius], [param:Number sectors], [param:Number rings], [param:Number divisions], [param:Color color1], [param:Color color2] )</h3>
<p>
radius -- 极坐标格半径. 可以为任何正数. 默认为 10.<br />
sectors -- The number of sectors the grid will be divided into. This can be any positive integer. Default is 16.<br />
rings -- The number of rings. This can be any positive integer. Default is 8.<br />
divisions -- 圆圈细分段数. 可以为任何大于或等于3的正整数. 默认为 64.<br />
color1 -- 极坐标格使用的第一个颜色. 值可以为 [page:Color] 类型, 16进制 和 CSS 颜色名. 默认为 0x444444 <br />
color2 -- 极坐标格使用的第二个颜色. 值可以为 [page:Color] 类型, 16进制 和 CSS 颜色名. 默认为 0x888888
</p>
<p>
Creates a new [name] of radius 'radius' with 'sectors' number of sectors and 'rings' number of rings, where each circle is smoothed into 'divisions' number of line segments. Colors are optional.
</p>
<h2>源码</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>