Here is the jsfiddle on reading a JSON (topojson mesh) and converting it to a vtk polydata lines structure : https://jsfiddle.net/PBrockmann/r57m6pun/
and the complete ongoing example with celldata, continents and graticules
https://jsfiddle.net/PBrockmann/m49jxgwf/