def test_report(): report = pyvista.Report() assert report is not None
def test_report(): report = pyvista.Report(gpu=True) assert report is not None report = pyvista.Report(gpu=False) assert report is not None
############################################################################### # But hold on, that’s a big volume! We probably don’t want to volume render the # whole thing. So let’s extract a region of interest under the volcano. # # The region we will extract will be between nodes 175 and 200 on the x-axis, # between nodes 105 and 132 on the y-axis, and between nodes 98 and 170 on the # z-axis. voi = model.extract_subset([175, 200, 105, 132, 98, 170]) p = pv.Plotter() p.add_mesh(model.outline(), color="k") p.add_mesh(voi, cmap="magma") p.show() ############################################################################### # Let’s now volume render that region of interest! p = pv.Plotter() p.add_volume(voi, cmap="magma", clim=clim, opacity=opacity, opacity_unit_distance=2000) p.camera_position = [ (531554.5542909054, 3944331.800171338, 26563.04809259223), (599088.1433822059, 3982089.287834022, -11965.14728669936), (0.3738545892415734, 0.244312810377319, 0.8947312427698892), ] p.show() ############################################################################### pv.Report()