Changes between Version 3 and Version 4 of SphericalHarmonics
- Timestamp:
- Aug 31, 2020, 4:24:49 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SphericalHarmonics
v3 v4 17 17 def spherical_surface(session, 18 18 radius_function, 19 move = None, # a Place instance to rotate and translate surface 19 20 theta_steps = 100, 20 21 phi_steps = 50, … … 53 54 ta = array(triangles, int32) 54 55 56 # Rotate and translate vertices to a new location. 57 if move is not None: 58 move.transform_points(va, in_place = True) 59 55 60 # Compute average vertex normal vectors 56 61 from chimerax.surface import calculate_vertex_normals … … 74 79 return 0.25*sqrt(15/(2*pi)) * sin(phi)**2 * cos(2*theta) 75 80 81 from chimerax.geometry import translation 82 76 83 # Create 3 surfaces 77 84 spherical_surface(session, y20_re) 78 79 s1 = spherical_surface(session, y21_re) 80 from chimerax.geometry import translation 81 s1.position = translation((1,0,0)) 82 83 s2 = spherical_surface(session, y22_re) 84 s2.position = translation((2,0,0)) 85 spherical_surface(session, y21_re, move = translation((1,0,0)) ) 86 spherical_surface(session, y22_re, move = translation((2,0,0)) ) 85 87 86 88 }}}
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)