diff options
author | Thomas White <taw@physics.org> | 2011-07-20 17:53:27 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:33 +0100 |
commit | b143429764665a75dd3baf8c5115bf8553d18d71 (patch) | |
tree | aee21b359e82c9c107e5f82de43c2d703c45538b /src/render_hkl.c | |
parent | 012073a3be1bb523588b83d8be0589a5d00676aa (diff) |
Symmetry stuff
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r-- | src/render_hkl.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c index 823b6f1a..18d6bb81 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -96,12 +96,15 @@ static void draw_circles(signed int xh, signed int xk, signed int xl, { Reflection *refl; RefListIterator *iter; + SymOpMask *m; if ( dctx == NULL ) { *max_u = 0.0; *max_v = 0.0; *max_val = 0.0; *max_res = 0.0; *max_ux = 0; *max_uy = 0; } + m = new_symopmask(sym); + /* Iterate over all reflections */ for ( refl = first_refl(list, &iter); refl != NULL; @@ -111,18 +114,17 @@ static void draw_circles(signed int xh, signed int xk, signed int xl, signed int ha, ka, la; int xi, yi; int i, n; - SymOpList *sp; get_indices(refl, &ha, &ka, &la); - sp = special_position(sym, ha, ka, la); - n = num_equivs(sp); + special_position(sym, m, ha, ka, la); + n = num_equivs(sym, m); for ( i=0; i<n; i++ ) { signed int h, k, l; - get_equiv(sp, i, ha, ka, la, &h, &k, &l); + get_equiv(sym, m, i, ha, ka, la, &h, &k, &l); /* Is the reflection in the zone? */ if ( h*zh + k*zk + l*zl != 0 ) continue; @@ -194,9 +196,9 @@ static void draw_circles(signed int xh, signed int xk, signed int xl, } - free_symoplist(sp); - } + + free_symopmask(m); } |