holoviz-topics / EarthSim

Tools for working with and visualizing environmental simulations.
https://earthsim.holoviz.org
BSD 3-Clause "New" or "Revised" License
65 stars 21 forks source link

TriMesh polygon display #149

Closed kcpevey closed 6 years ago

kcpevey commented 6 years ago

I believe TriMesh displays on the drawing tools by drawing the individual triangles as polygons (edges, not datashading). Is that correct?

How/where is that happening in the code?

Or... are just the edgepaths draw as three separate lines? That would be more computationally efficient.

philippjfr commented 6 years ago

Could you clarify which example you're referring to here or is this just a general question? If you plot a TriMesh directly it will indeed be rendered as a collection of nan separated paths, which I'm fairly sure is about as efficient as it's going to get. You can see how the TriMesh gets expanded into a set of lines in the TriMesh.edgepaths property.

kcpevey commented 6 years ago

That answers my question. TriMesh is drawn by drawing each element as 3 lines, NOT a polygon.