picogl.tests.test_molecular_mesh
Tests for molecular mesh data builders.
Classes
Functions
atom_xyz lives on entities.coords, not the sphere mesh module. |
|
|
|
MoLib Atom3D-style objects expose coords, not x/y/z. |
|
Two atoms expand one template: tiled normals, repeated colors, offset EBO. |
|
|
Per-atom radii scale the template independently of geometry.radius. |
|
Omitting color_fn must not crash; colors follow make_chain_color_fn. |
|
|
|
|
|
|
|
|
Two shafts: doubled vertex count, per-shaft colors, offset EBO. |
|
|
A collapsed pair adds neither vertices nor a color block. |
Pair metadata omits collapsed shafts and gathers from atom A. |
|
|
|
|
|
|
|
Two atoms: one vertex each, colors not repeated, no EBO. |
|
|
|
Two atoms and one pair: one vertex each, LINES indices [0, 1]. |
|
|
|
Module Contents
- picogl.tests.test_molecular_mesh.test_atom_xyz_prefers_coords_over_xyz() None[source]
atom_xyz lives on entities.coords, not the sphere mesh module.
- picogl.tests.test_molecular_mesh.test_atoms_mesh_accepts_coords_attribute() None[source]
MoLib Atom3D-style objects expose coords, not x/y/z.
- picogl.tests.test_molecular_mesh.test_atoms_mesh_two_atoms_vectorized_expand() None[source]
Two atoms expand one template: tiled normals, repeated colors, offset EBO.
- picogl.tests.test_molecular_mesh.test_atoms_mesh_per_atom_radii_override_uniform_radius() None[source]
Per-atom radii scale the template independently of geometry.radius.
- picogl.tests.test_molecular_mesh.test_atoms_mesh_default_color_fn_uses_chain_palette() None[source]
Omitting color_fn must not crash; colors follow make_chain_color_fn.
- picogl.tests.test_molecular_mesh.test_bonds_mesh_cylinder_normals_perpendicular_to_axis() None[source]
- picogl.tests.test_molecular_mesh.test_bonds_mesh_two_bonds_vectorized_expand() None[source]
Two shafts: doubled vertex count, per-shaft colors, offset EBO.
- picogl.tests.test_molecular_mesh.test_bonds_mesh_skips_zero_length_without_repeating_color() None[source]
A collapsed pair adds neither vertices nor a color block.
- picogl.tests.test_molecular_mesh.test_bonds_mesh_item_keys_match_surviving_pairs() None[source]
Pair metadata omits collapsed shafts and gathers from atom A.
- picogl.tests.test_molecular_mesh.test_bonds_mesh_color_bonds_false_broadcasts_bond_color() None[source]
- picogl.tests.test_molecular_mesh.test_atom_points_mesh_two_atoms_unindexed() None[source]
Two atoms: one vertex each, colors not repeated, no EBO.
- picogl.tests.test_molecular_mesh.test_atom_points_mesh_color_fn_called_once_per_atom() None[source]
- picogl.tests.test_molecular_mesh.test_bond_lines_mesh_two_atoms_one_pair() None[source]
Two atoms and one pair: one vertex each, LINES indices [0, 1].