I'm struggling to make THREE.LineDashedMaterial
work properly in my three.js project. I've tried it with both r73 and r74, but the dashes just won't show up. Here's a snippet of my code:
var segmentCount = 200;
var radius = 100;
var geometry = new THREE.Geometry();
var material = new THREE.LineDashedMaterial( { color: 0xff0000, linewidth: 5, dashSize: 1.0, gapSize: 0.5 } );
for (var i = 0; i <= segmentCount; i++) {
var theta = (i / segmentCount) * Math.PI * 2;
geometry.vertices.push(
new THREE.Vector3(
Math.cos(theta) * radius,
Math.sin(theta) * radius,
0));
}
scene.add(new THREE.Line(geometry, material));
Could there be an issue with how I've set up my example, or is this still a known bug (https://github.com/mrdoob/three.js/issues/6699)?