コード例 #1
0
    def plot_itk(self, **kwargs):
        """Wrapper for `pyvista.plot_itk`.

        Parameters
        ----------
        **kwargs
            Extra keyword arguments passed to `pyvista.plot_itk`
        """
        pv.plot_itk(self.to_meshio(), **kwargs)
コード例 #2
0
def test_itk_plotting_points():
    viewer = pyvista.plot_itk(np.random.random((100, 3)))
    assert isinstance(viewer, itkwidgets.Viewer)
コード例 #3
0
def test_itk_plotting():
    viewer = pyvista.plot_itk(SPHERE)
    assert isinstance(viewer, itkwidgets.Viewer)
コード例 #4
0
def test_itk_plotting_points():
    with pytest.raises(TypeError):
        viewer = pyvista.plot_itk([1, 2, 3], point_size='foo')

    viewer = pyvista.plot_itk(np.random.random((100, 3)))
    assert isinstance(viewer, itkwidgets.Viewer)
コード例 #5
0
ファイル: test_itk_plotting.py プロジェクト: JoyPoint/pyvista
def test_itk_plotting_points_polydata():
    points = pyvista.wrap(np.random.random((100, 3)))
    viewer = pyvista.plot_itk(points)
    assert isinstance(viewer, itkwidgets.Viewer)