Functions | |
def | extrude (pts, dx) |
def | orderpoints (pointset) |
def | depos2pts (arr) |
def | clusters2blobs (gr) |
def | get_blob (gr, node) |
def | get_slice (gr, bnode) |
def | clusters2views (gr) |
def | blob_center (bdat) |
def | blob_uniform_sample (bdat, density) |
def | blobpoints (gr, sample_method=blob_center) |
Variables | |
allind | |
allchs | |
values | |
A module to produce paraview / vtk objects
def wirecell.img.converter.blob_center | ( | bdat | ) |
def wirecell.img.converter.blob_uniform_sample | ( | bdat, | |
density | |||
) |
Return an array of points uniformly sampled in the blob
Definition at line 218 of file converter.py.
def wirecell.img.converter.blobpoints | ( | gr, | |
sample_method = blob_center |
|||
) |
return Nx4 array with rows made of x,y,z,q.
Definition at line 244 of file converter.py.
def wirecell.img.converter.clusters2blobs | ( | gr | ) |
Given a graph object return a tvtk data object with blbos.
Definition at line 81 of file converter.py.
def wirecell.img.converter.clusters2views | ( | gr | ) |
Definition at line 152 of file converter.py.
def wirecell.img.converter.depos2pts | ( | arr | ) |
Convert numpy array like which comes from 'depo_data_0' key of npz file from NumpyDepoSaver to tvtk unstructured grid.
Definition at line 53 of file converter.py.
def wirecell.img.converter.extrude | ( | pts, | |
dx | |||
) |
make a 3d set of cells based on ring of pts extruded along X axis by dx Return points and "relative cells"
Definition at line 10 of file converter.py.
def wirecell.img.converter.get_blob | ( | gr, | |
node | |||
) |
Definition at line 137 of file converter.py.
def wirecell.img.converter.get_slice | ( | gr, | |
bnode | |||
) |
Definition at line 144 of file converter.py.
def wirecell.img.converter.orderpoints | ( | pointset | ) |
Definition at line 36 of file converter.py.
wirecell.img.converter.allchs |
Definition at line 158 of file converter.py.
wirecell.img.converter.allind |
Definition at line 157 of file converter.py.
wirecell.img.converter.values |
Definition at line 159 of file converter.py.