diff --git a/editor/js/Menubar.Add.js b/editor/js/Menubar.Add.js index d4f06dcacd99b5082d9a1a82a146cc5214457736..1bd03a30ad4a300c9dea2cdb903afa1d1ca1513d 100644 --- a/editor/js/Menubar.Add.js +++ b/editor/js/Menubar.Add.js @@ -205,7 +205,7 @@ function MenubarAdd( editor ) { option.setTextContent( strings.getKey( 'menubar/add/sphere' ) ); option.onClick( function () { - var geometry = new THREE.SphereGeometry( 1, 8, 6, 0, Math.PI * 2, 0, Math.PI ); + var geometry = new THREE.SphereGeometry( 1, 32, 16, 0, Math.PI * 2, 0, Math.PI ); var mesh = new THREE.Mesh( geometry, new THREE.MeshStandardMaterial() ); mesh.name = 'Sphere'; diff --git a/src/geometries/SphereGeometry.js b/src/geometries/SphereGeometry.js index d46e693e4b802640ff06884a5b895fcb7a7d4d60..13d166f8e3edbf8e6dba928fd401cd104dc31745 100644 --- a/src/geometries/SphereGeometry.js +++ b/src/geometries/SphereGeometry.js @@ -4,7 +4,7 @@ import { Vector3 } from '../math/Vector3.js'; class SphereGeometry extends BufferGeometry { - constructor( radius = 1, widthSegments = 8, heightSegments = 6, phiStart = 0, phiLength = Math.PI * 2, thetaStart = 0, thetaLength = Math.PI ) { + constructor( radius = 1, widthSegments = 32, heightSegments = 16, phiStart = 0, phiLength = Math.PI * 2, thetaStart = 0, thetaLength = Math.PI ) { super(); this.type = 'SphereGeometry';