Closed akaszynski closed 3 years ago
While I'm on this project, do you know if there's any way to enable smooth shading or custom lighting? I really like this library and want to see if I can map some of the features from vtk
over to here. I'm working on adding this as a jupyter backend and want it to have similar functionality as our Plotter
class.
do you know if there's any way to enable smooth shading or custom lighting?
Smooth shading is not currently possible. I guess we could allow this as an option.
Consider custom lighting, what are you thinking of? Do you have pyvista/vtk examples in mind?
I'm working on adding this as a jupyter backend and want it to have similar functionality as our Plotter class.
This is great. Do you think such back-end should live in ipygany directly?
Do you think such back-end should live in ipygany directly?
It could. Right now I'm writing something that wraps the Plotter
class to allow us to generate a plot using the standard pyvista
APIs and then plot it using ipygany
:
This way, users can use the exact same scripts regardless of which backend they're using. I invested quite a bit of time in itkwidgets
, and it's not working with jupyterlab 3.x, so I want to be able to switch backends without recreating a new api every time. This seems like to works well.
Perhaps you can also wrap a Plotting
class, but since the details of the API are somewhat complex, it might be easier to put the wrapping on pyvista
's side.
Perhaps you can also wrap a Plotting class, but since the details of the API are somewhat complex, it might be easier to put the wrapping on pyvista's side.
Well if most of the work is already done in PyVista, it might make sense to just rely on it. I have no problem in having PyVista as a hard dependency if that helps a bit.
Well if most of the work is already done in PyVista, it might make sense to just rely on it. I have no problem in having PyVista as a hard dependency if that helps a bit.
Not necessary. I would encourage you keeping your module as light as possible as VTK itself is a heavy dependency to have (they don't tend to update the wheels too often, and you can't always rely on conda).
Really appreciate the work you did here!
Thanks!
This work is a reboot of something I've done a few years ago. You can find a demo of it here: https://demo.logilab.fr/SciviJS. Not everything is reimplemented yet, we are still missing the ClipPlane, Slice, Vector glyph etc. But I am hoping to find time to do that.
Also you might see in this demo why I created ipytree ;) I am planning on having this kind of graphical interface in the Notebook.
This PR allows you to set the default colormap on the initialization of
IsoColor
.