提交 9043a6b6 编写于 作者: H Hectate

Updated with additional changes from code review requests

上级 01193fb6
......@@ -20,7 +20,7 @@
<code>var radius = 10;
var radials = 16;
var circles = 8;
var divisions = 50;
var divisions = 64;
var helper = new THREE.PolarGridHelper( radius, radials, circles, divisions );
scene.add( helper );
......@@ -32,10 +32,10 @@
<h3>[name]( [page:Number radius], [page:Number radials], [page:Number circles], [page:Number divisions], [page:Color color1], [page:Color color2] )</h3>
<div>
radius -- The radius of the polar grid. This can be any positive number. <br />
radials -- The number of radial lines. This can be any positive integer. <br />
circles -- The number of circles. This can be any positive integer. <br />
divisions -- The number of line segments used for each circle. This can be any positive integer that is 3 or greater. <br />
radius -- The radius of the polar grid. This can be any positive number. Default is 10.<br />
radials -- The number of radial lines. This can be any positive integer. Default is 16.<br />
circles -- The number of circles. This can be any positive integer. Default is 8.<br />
divisions -- The number of line segments used for each circle. This can be any positive integer that is 3 or greater. Default is 64.<br />
color1 -- The first color used for grid elements. This can be a [page:Color], a hexadecimal value and an CSS-Color name. Default is 0x444444 <br />
color2 -- The second color used for grid elements. This can be a [page:Color], a hexadecimal value and an CSS-Color name. Default is 0x888888
</div>
......
......@@ -50,7 +50,7 @@
gridHelper.position.x = - 150;
scene.add( gridHelper );
var polarGridHelper = new THREE.PolarGridHelper( 200, 16, 8, 50, 0x0000ff, 0x808080 );
var polarGridHelper = new THREE.PolarGridHelper( 200, 16, 8, 64, 0x0000ff, 0x808080 );
polarGridHelper.position.y = - 150;
polarGridHelper.position.x = 200;
scene.add( polarGridHelper );
......
......@@ -16,7 +16,7 @@ function PolarGridHelper( radius, radials, circles, divisions, color1, color2 )
radius = radius || 10;
radials = radials || 16;
circles = circles || 8;
divisions = divisions || 50;
divisions = divisions || 64;
color1 = new Color( color1 !== undefined ? color1 : 0x444444 );
color2 = new Color( color2 !== undefined ? color2 : 0x888888 );
......@@ -92,4 +92,4 @@ function PolarGridHelper( radius, radials, circles, divisions, color1, color2 )
PolarGridHelper.prototype = Object.create( LineSegments.prototype );
PolarGridHelper.prototype.constructor = PolarGridHelper;
export { PolarGridHelper };
\ No newline at end of file
export { PolarGridHelper };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册