uvisbox.Modules.ConeGlyphs.cone_glyphs_mesh =========================================== .. py:module:: uvisbox.Modules.ConeGlyphs.cone_glyphs_mesh Module Contents --------------- .. py:function:: cone_glyphs_mesh(positions, stats_3d, point_values=None, scale=0.5, resolution=10) Build 3D cone glyph mesh from statistics. :param positions: Shape (n, 3) - glyph positions :type positions: numpy.ndarray :param stats_3d: From cone_glyphs_summary_statistics() :type stats_3d: dict :param point_values: Shape (n,) - scalar values for coloring :type point_values: numpy.ndarray, optional :param scale: Glyph scale factor (default: 0.5) :type scale: float :param resolution: Circle resolution (default: 10) :type resolution: int :returns: **mesh_3d** -- Contains ``points`` with shape (k, 3), ``polygons`` with shape (m, 3), and ``point_values`` with shape (k,). :rtype: dict .. py:function:: cone_glyphs_meshing(positions, min_vectors, median_vectors, max_vectors, scaler_values, glyph_markers, scale, resolution, num_of_glyphs) Build superelliptical squid glyphs for 3D visualization. Assumes vectors are in spherical coordinates (magnitude, theta, phi). :param positions: Array of shape (n, 3) The positions of the squid glyphs. :type positions: numpy.ndarray :param min_vectors: Array of shape (n, 3) The minimum vectors in spherical coordinates. :type min_vectors: numpy.ndarray :param median_vectors: Array of shape (n, 3) The median vectors in spherical coordinates. :type median_vectors: numpy.ndarray :param max_vectors: Array of shape (n, 3) The maximum vectors in spherical coordinates. :type max_vectors: numpy.ndarray :param scaler_values: Array of shape (n,) The scaler values for each glyph. :type scaler_values: numpy.ndarray :param glyph_markers: Array of shape (n,) with values 0 (no glyph), 1 (full glyph), 2 (arrow only) :type glyph_markers: numpy.ndarray :param scale: The scale factor for the glyphs. :type scale: float :param resolution: The resolution of the base circle of the squid glyph. :type resolution: int :param num_of_glyphs: The number of glyphs to be created. :type num_of_glyphs: int :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.