waxmorph.render.PyVistaInterface

waxmorph.render.PyVistaInterface#

class waxmorph.render.PyVistaInterface[source]#

Bases: RenderInterface

Interactive PyVista glyphs with morphogen or categorical colors.

static draw_3d_view(centers, radii, morphogens, polarities, particle_count, blim=-10, tlim=20, theta_res=24, phi_res=12, alpha=0.5, show_polarities=True, polarity_length=1.0, polarity_color='black', polarity_opacity=1.0, polarity_shaft_radius=0.03, polarity_tip_length=0.25, polarity_tip_radius=0.06, cell_types=None)[source]#

Render a PyVista view; particle_count must be nonnegative.

Categories override morphogen colors; the shortest selected input limits the rendered count.

Parameters:
  • show_polarities (bool)

  • polarity_length (float)

  • polarity_opacity (float)

  • polarity_shaft_radius (float)

  • polarity_tip_length (float)

  • polarity_tip_radius (float)

  • cell_types (ndarray | None)