Draw a circle: var radius = 40,segments = 64,material = new three. Linebasicmaterial ({color:0x0000ff}), Geometry = new three. Circlegeometry (radius, segments);
//Remove Center vertexGeometry.vertices.shift ();
This.scene.add (new three. Line (geometry, material)); Using Three.line will result in the last and 1th unlinked, available This.scene.add (new three.Lineloop(geometry, material)); Draw circles are also available (this method can be set to draw arcs) let points = [],length = 100,circle = 40;for (Let i = 0; I <= length; i++) {Points.push (new three.v Ector2 (Circle * Math.Cos (Math.PI * 2 * i/length), Circle * Math.sin (Math.PI * 2 * i/length)))}let shape = new three. Shape (points); let arcgeometry = Shape.makegeometry () Let arcmaterial = new three. Linebasicmaterial ({color:0x38d3f5}); let arc = new three. Line (Arcgeometry, arcmaterial); This.scene.add (ARC) Note: This method draws a circle and cannot be closed at the end
Threejs draw two-dimensional circle (ARC)