mattdesl / webgl-lines

some interactive content for a blog post
http://mattdesl.svbtle.com/drawing-lines-is-hard
MIT License
415 stars 37 forks source link

Self intersection causes slivers #1

Open weinzierl opened 9 years ago

weinzierl commented 9 years ago

I know this is just a demo so it's probably not that important. When I played around with the triangulated lines demo I quickly produced ugly slivers. It happens whenever you move the snake in one direction and then reverse the direction. Mere self-intersection (snake bites its tail) doesn't cause it unless the circle is too small.

screen shot 2015-03-10 at 19 53 24

mattdesl commented 9 years ago

Thanks :) This is a known bug with extrude-polyline. I have to revisit the code that handles miter limiting, so that if the miter is too long, it should fall back to a regular bevel join.