|
@@ -17,11 +17,11 @@
|
|
|
|
|
|
<code>
|
|
|
const radius = 10;
|
|
|
- const radials = 16;
|
|
|
- const circles = 8;
|
|
|
+ const sectors = 16;
|
|
|
+ const rings = 8;
|
|
|
const divisions = 64;
|
|
|
|
|
|
- const helper = new THREE.PolarGridHelper( radius, radials, circles, divisions );
|
|
|
+ const helper = new THREE.PolarGridHelper( radius, sectors, rings, divisions );
|
|
|
scene.add( helper );
|
|
|
</code>
|
|
|
|
|
@@ -33,17 +33,17 @@
|
|
|
|
|
|
<h2>构造函数</h2>
|
|
|
|
|
|
- <h3>[name]( [param:Number radius], [param:Number radials], [param:Number circles], [param:Number divisions], [param:Color color1], [param:Color color2] )</h3>
|
|
|
+ <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 />
|
|
|
- radials -- 径向辐射线数量. 可以为任何正整数. 默认为 16.<br />
|
|
|
- circles -- 圆圈的数量. 可以为任何正整数. 默认为 8.<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>
|
|
|
- 创建一个半径为'radius' 包含 'radials' 条径向辐射线 和 'circles' 个细分成 'divisions' 段的圆圈的极坐标格辅助对象. 颜色可选.
|
|
|
+ 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>
|