There seems to be a gap in the circle I'm creating using LineLoop in Three.js. Below is the code snippet I am working with:
const discGeometry = new THREE.CircleGeometry(50, 64);
const lineMaterial = new THREE.LineBasicMaterial({
transparent: true,
opacity: 0.5,
color: 0xffffff,
linewidth: 1.5
});
const zenithEquator = new THREE.LineLoop(discGeometry, lineMaterial);
zenithEquator.rotation.z = THREE.Math.degToRad(90);
scene.add(zenithEquator);
Here is the output of the above code:
https://i.sstatic.net/SeQsu.png
I also tried using Line instead of LineLoop for the same task:
https://i.sstatic.net/fnnTT.png
The issue is the visible gap in the circle segment. This gap changes as I adjust the number of segments.
Can anyone help me figure out how to draw a complete circle without this undesirable gap?