From 3bf948c7fa146703bf1465ada49e243ca7f394e3 Mon Sep 17 00:00:00 2001 From: bue Date: Tue, 18 Feb 2025 19:40:17 -0500 Subject: [PATCH] @ pcdl : update readme tutorial blender and minor fix vtk functions. --- man/TUTORIAL_blender.md | 14 +++++--------- pcdl/pyMCDS.py | 5 +++-- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/man/TUTORIAL_blender.md b/man/TUTORIAL_blender.md index fe53097..d5e05ca 100644 --- a/man/TUTORIAL_blender.md +++ b/man/TUTORIAL_blender.md @@ -66,25 +66,21 @@ To learn more about Blender and BVTK Node plugin, please study the official docu ## ✨ Handle ome tiff files -The blender bioxel nodes plugin allows us load ome tiff files into blender. +The blender bioxel nodes plugin allows us load single time step ome tiff files into blender. -### Generate vtk files from the command line +### Generate ome tiff files from the command line ```bash -pcdl_make_conc_vtk output -``` -```bash -pcdl_make_cell_vtk output +pcdl_make_ome_tiff output --collapse false ``` -### Generate vtk files from within python +### Generate ome tiff files from within python ```python import pcdl mcdsts = pcdl.TimeSeries('output/') -mcdsts.make_conc_vtk() -mcdsts.make_cell_vtk() +mcdsts.make_ome_tiff(collapse=False) ``` ### The blender bioxel nodes plugin diff --git a/pcdl/pyMCDS.py b/pcdl/pyMCDS.py index 1c1c33e..ffbd42b 100644 --- a/pcdl/pyMCDS.py +++ b/pcdl/pyMCDS.py @@ -1412,7 +1412,7 @@ def make_conc_vtk(self, visualize=True): iren.Start() # free memory - del vfa_value + #del vfa_value # save vtk file s_vtkpathfile = self.path + '/' + s_vtkfile @@ -2062,7 +2062,8 @@ def make_cell_vtk(self, attribute=['cell_type'], visualize=True): voa_data.InsertNextValue(df_cell.loc[i, s_attribute]) vug_data.GetPointData().AddArray(voa_data) - del voa_data + # free memory + #del voa_data # generate sphere source vss_data = vtk.vtkSphereSource()