提交 1300badf 编写于 作者: A Akshay Nagpal

Changed no. of segments of circle and cylinder

Line 101 : 32 segments instead of 8 as it gives the cylinder a more realistic look.
Line 123 : 32 radiusSegments instead of 8 as it gives the cylinder a more realistic look.
上级 f70abb69
......@@ -98,7 +98,7 @@ Menubar.Add = function ( editor ) {
option.onClick( function () {
var radius = 20;
var segments = 8;
var segments = 32; // 32 segments instead of 8 as it gives the circle a more realistic look.
var geometry = new THREE.CircleGeometry( radius, segments );
var mesh = new THREE.Mesh( geometry, new THREE.MeshPhongMaterial() );
......@@ -120,7 +120,7 @@ Menubar.Add = function ( editor ) {
var radiusTop = 20;
var radiusBottom = 20;
var height = 100;
var radiusSegments = 8;
var radiusSegments = 32; // 32 segments instead of 8 as it gives the cylinder a more realistic look.
var heightSegments = 1;
var openEnded = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册