Skip to content
Branch: master
Find file History
Latest commit 164008e Aug 19, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md 3.5 Jul 3, 2019
create_imagedata.ipynb 4.3 Aug 19, 2019
erode_dilate.py 3.5 Jul 3, 2019
euclDist.py 3.5 Jul 3, 2019
interpolateVolume.ipynb 4.3 Aug 19, 2019
interpolateVolume.py 3.5 Jul 3, 2019
isosurfaces1.py 4.1 Aug 4, 2019
isosurfaces2.ipynb 4.3 Aug 19, 2019
isosurfaces2.py 4.0 Jul 17, 2019
legosurface.ipynb 4.3 Aug 19, 2019
legosurface.py 4.2 Aug 13, 2019
lowpassfilter.py 4.0 Jul 17, 2019
mesh2volume.py 4.0 Jul 17, 2019
numpy2volume.ipynb 4.3 Aug 19, 2019
numpy2volume.py
office.ipynb 4.2 Aug 13, 2019
office.py Removed trailing spaces in examples/volumetric/office.py May 21, 2019
office_furniture.py Removed trailing spaces in examples/volumetric/office_furniture.py May 21, 2019
pointDensity.py 3.5 Jul 3, 2019
probeLine.ipynb fix text2d Jun 17, 2019
probeLine.py 3.0 May 16, 2019
probePlane.py
probePoints.py 3.0 May 16, 2019
readVolume.py jupyter support May 28, 2019
readVolumeAsIsoSurface.py 3.0 May 16, 2019
read_vti.py 4.0 Jul 17, 2019
streamlines1.py 4.3 Aug 19, 2019
streamlines2.ipynb 4.2 Aug 13, 2019
streamlines2.py Removed trailing spaces in examples/volumetric/streamlines2.py May 21, 2019
streamribbons.ipynb 4.2 Aug 13, 2019
streamribbons.py Removed trailing spaces in examples/volumetric/streamribbons.py May 21, 2019
tensors.ipynb 4.2 Aug 13, 2019
tensors.py 3.4 Jun 24, 2019
tet_mesh_ugrid.py 4.2 Aug 13, 2019
vol2points.py 3.5 Jul 3, 2019
volumeFromMesh.py 4.3 Aug 19, 2019
volumeOperations.py 3.0 May 16, 2019

README.md

Volumetric Examples directory

In this directory you will find examples with volumes and voxel data (vtkImageData).

git clone https://github.com/marcomusy/vtkplotter.git
cd vtkplotter/examples/volumetric
python example.py  # on mac OSX try 'pythonw' instead

(click thumbnail image to get to the python script)

volumeOperations
volumeOperations.py
Perform simple mathematical operations between 3d images.
Possible operations are: +, -, /, 1/x, sin, cos, exp, log, abs, sqrt, min, max, atan, atan2, median, mag, dot, gradient, divergence, laplacian.
interpolateVolume
interpolateVolume.py
Generate a voxel dataset (vtkImageData) by interpolating a scalar which is only known on a small set of points. Interpolation is based on RBF (Radial Basis Function).
isosurfaces1
isosurfaces1.py
Generate the isosurfaces corresponding to an input set of thresholds on volumetric data.
isosurfaces2
isosurfaces2.py
Generate the isosurfaces corresponding to an input set of thresholds on volumetric data.
lego
legosurface.py
Represent a volume as lego blocks (voxels). Colors correspond to the volume's scalar.
probeLine
probeLine.py
Find and visualize the scalar value along a line intersecting a volume.
probePlane
probePlane.py
Slice a vtkImageData (voxel dataset) with a plane and visualize the scalar value on it.
readVolumeAsIsoSurface
readVolumeAsIsoSurface.py
Generate an isosurface from voxel data.
A tiff stack is a set of image slices in z. The scalar value (intensity of white) is used to create an isosurface by fixing a threshold.
readVolume
readVolume.py
Load avtkImageData object, make a vtkVolume and show it along with a mesh surface (the red sphere).
read_vti
read_vti.py
Using typical vtk commands to load a xml .vti file, then use vtkplotter to show the resulting 3D image.
signedDistance
volumeFromMesh.py
Generate a scalar field by the signed distance from a polydata, then extract an isosurface from the 3D image.
streamlines1
streamlines1.py
Streamlines originating from a probing sphere in a volume domain defined by the pink hyperboloid. The vector field is given by the coords of the hyperboloid, this field is interpolated to the whole bounding box.
streamlines2
streamlines2.py
Load an existing vtkStructuredGrid and draw the streamlines of the velocity field.
streamribbons
streamribbons.py
Load an existing vtkStructuredGrid and draw the lines of the velocity field joining them in ribbons.
office
office.py
Stream tubes originating from a probing grid of points from CFD analysis of airflow in an office with ventilation and a burning cigarette.
tensors
tensors.py
Geometric representation of tensors defined on a domain or set of points.
You can’t perform that action at this time.