bokeh / bokeh

Interactive Data Visualization in the browser, from Python
https://bokeh.org
BSD 3-Clause "New" or "Revised" License
19.26k stars 4.18k forks source link

WebGL Patches #5057

Open birdsarah opened 8 years ago

birdsarah commented 8 years ago

Request to support patches with webgl.

@almarklein and I discussed this and the only challenge was that we needed an algorithm to turn patches into triangles. I have found: https://github.com/mapbox/earcut "The fastest and smallest JavaScript polygon triangulation library. 2.5KB gzipped" which seems to do exactly what we need and comes from the awesome mapbox.

Currently there are inefficiencies around _build_discontinuous_objects being called many times (called on every render) which would likely need to be solved to see the impacts of webgl (ping @bryevdv and #4967).

pentamorfico commented 1 year ago

Hi! Is this feature something that is under active development or are there no planned implementations in the near future?

ianthomas23 commented 1 year ago

It is planned, as mentioned in both the WebGL roadmap (https://github.com/bokeh/bokeh/discussions/11369) and the wiki page on individuals' plans (https://github.com/bokeh/bokeh/wiki/Individual-Plans--H1-2023#webgl-improvements). I would hope to find time and motivation to do this "in the near future" but I cannot guarantee it. Anyone else who is interested in this is welcome to contribute.