j-fu / PlutoVista.jl

Plot library for Pluto notebooks based on plotly.js for 1D data and vtk.js (thus using WebGL) for 2/3D data.
Other
26 stars 4 forks source link

Support for 3D meshes (vertices + triangle faces) #4

Closed cdsousa closed 3 years ago

cdsousa commented 3 years ago

Hi, is it possible or is it planned to have support for meshes like in Plotly https://plotly.com/julia/3d-mesh/ or Makie https://makie.juliaplots.org/dev/examples/plotting_functions/mesh/ ?

j-fu commented 3 years ago

There is the so far experimental triplot! which probably will be renamed to trisurf! which can be developed in this direction. The API can be something like:

trisurf!(pts, tris; color, kwargs...)

and it would be based on vtk.js .

cdsousa commented 3 years ago

This is great! It works already fairly well, thanks.