Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions man/TUTORIAL_blender.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions pcdl/pyMCDS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
Loading