aboutsummaryrefslogtreecommitdiff
path: root/src/povray.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-25 18:40:56 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:21 +0100
commit0de53f22863af2bb3c8db3d1cf5e015f0a9b9f87 (patch)
treefa8c690542f8de0932183c89c43d6aba8f096f8a /src/povray.c
parentdad9cc7fe622e2b55f5294892d9c95a0c580b3be (diff)
render_hkl: Multiple improvements
Diffstat (limited to 'src/povray.c')
-rw-r--r--src/povray.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/povray.c b/src/povray.c
index 8d0ec048..660f1c59 100644
--- a/src/povray.c
+++ b/src/povray.c
@@ -30,7 +30,8 @@
int povray_render_animation(UnitCell *cell, RefList *list, unsigned int nproc,
- const char *sym, int wght, double boost)
+ const char *sym, int wght, double boost,
+ double scale_top)
{
FILE *fh;
double asx, asy, asz;
@@ -201,6 +202,12 @@ int povray_render_animation(UnitCell *cell, RefList *list, unsigned int nproc,
}
max /= boost;
+ /* Use manual scale top if specified */
+ if ( scale_top > 0.0 ) {
+ max = scale_top;
+ }
+
+
for ( refl = first_refl(list, &iter);
refl != NULL;
refl = next_refl(refl, iter) ) {