uvisbox.Modules.ConeGlyphs.cone_glyphs_mesh
Module Contents
- uvisbox.Modules.ConeGlyphs.cone_glyphs_mesh.cone_glyphs_mesh(positions, stats_3d, point_values=None, scale=0.5, resolution=10)[source]
Build 3D cone glyph mesh from statistics.
- Parameters:
positions (numpy.ndarray) – Shape (n, 3) - glyph positions
stats_3d (dict) – From cone_glyphs_summary_statistics()
point_values (numpy.ndarray, optional) – Shape (n,) - scalar values for coloring
scale (float) – Glyph scale factor (default: 0.5)
resolution (int) – Circle resolution (default: 10)
- Returns:
mesh_3d – Contains
pointswith shape (k, 3),polygonswith shape (m, 3), andpoint_valueswith shape (k,).- Return type:
dict
- uvisbox.Modules.ConeGlyphs.cone_glyphs_mesh.cone_glyphs_meshing(positions, min_vectors, median_vectors, max_vectors, scaler_values, glyph_markers, scale, resolution, num_of_glyphs)[source]
Build superelliptical squid glyphs for 3D visualization. Assumes vectors are in spherical coordinates (magnitude, theta, phi).
- Parameters:
positions (numpy.ndarray) – Array of shape (n, 3) The positions of the squid glyphs.
min_vectors (numpy.ndarray) – Array of shape (n, 3) The minimum vectors in spherical coordinates.
median_vectors (numpy.ndarray) – Array of shape (n, 3) The median vectors in spherical coordinates.
max_vectors (numpy.ndarray) – Array of shape (n, 3) The maximum vectors in spherical coordinates.
scaler_values (numpy.ndarray) – Array of shape (n,) The scaler values for each glyph.
glyph_markers (numpy.ndarray) – Array of shape (n,) with values 0 (no glyph), 1 (full glyph), 2 (arrow only)
scale (float) – The scale factor for the glyphs.
resolution (int) – The resolution of the base circle of the squid glyph.
num_of_glyphs (int) – The number of glyphs to be created.
- Returns:
points (numpy.ndarray) – Array of shape (m, 3) The points of the squid glyphs.
polygons (numpy.ndarray) – Array of shape (k,) The polygon connectivity for the glyphs.