gecos-lab / PZero

GNU Affero General Public License v3.0
24 stars 2 forks source link

important functions for 3D view #18

Open andrea-bistacchi opened 2 years ago

andrea-bistacchi commented 2 years ago

We need to implement these functions of the pyvista.Plotter in order to:

1) properly navigate in the 3D window:

2) export 3D window:

3) Picking in 3D window:

gbene commented 2 years ago

Yes! I would also add a .gif exporting option (https://docs.pyvista.org/examples/02-plot/gif.html) in combination with the camera orbiting function (https://docs.pyvista.org/examples/02-plot/orbit.html) to quickly create 360 degree views of the models.

andrea-bistacchi commented 2 years ago

Yes!

andrea-bistacchi commented 1 year ago

Implemented on 2/11/2022:

GLTF seems to work but must be tested, HTML works but results in a very simplified 3D viewer and there are issues with textured images, OBJ works with issues for color and textured images (but this could be a limit of the viewer), and VTKjs is difficult to test.

gbene commented 1 year ago

GLTF files can be visualized with https://gltf-viewer.donmccurdy.com/. There are some problems related to this method.

  1. It does not work if the 3D orientation widget is active (can be easily fixed)
  2. For some reason the backsides of planes are not visualized (see video). I checked and it seems to be a VTK feature/problem.

https://user-images.githubusercontent.com/40857804/217778862-b6db8b52-92c2-407d-af1e-50c446aa6d44.mp4

VTKjs can be checked with http://viewer.pyvista.org/. The export seems to work but color bars are not exported image image

andrea-bistacchi commented 1 year ago

We can leave this in a lower priority.