THREE.MeshLine icon indicating copy to clipboard operation
THREE.MeshLine copied to clipboard

Fixed counters attribute calculation

Open vHeemstra opened this issue 4 years ago • 1 comments

The counters attribute array made the dash calculations go wrong. For example: a two-point line with a dashArray value of 0.5 would only give 1 dash instead of (1/0.5 =) 2. (See plot of opacity/alpha value here.) This altered counters calculation fixes that.

vHeemstra avatar Oct 15 '20 15:10 vHeemstra

i've merged your commit to https://github.com/pmndrs/meshline

drcmda avatar Dec 07 '22 12:12 drcmda