As a newcomer to three.js, I've written some code to create a linear ellipse. Now, my goal is to achieve a solid color-filled ellipse instead.
Additionally, I'm curious to learn how I can implement dragging functionality for the solid ellipse once it's generated.
var curve = new THREE.EllipseCurve(
0, 0, // ax, aY
2, 16, // xRadius, yRadius
0, 2 * Math.PI, // aStartAngle, aEndAngle
false, // aClockwise
0 // aRotation
);
//ellipse
var path = new THREE.Path( curve.getPoints( 50 ) );
var geometry = path.createPointsGeometry( 50 );
var material = new THREE.MeshBasicMaterial( { color : 0x59d1c1} );
var ellipse = new THREE.Line( geometry, material );
scene.add(ellipse);