Skip to content

Commit

Permalink
fix(genBSDF): Added error message for +mgf with +geom and no input file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Mar 2, 2022
1 parent 466519a commit 23679ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/genBSDF.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/perl -w
# RCSid $Id: genBSDF.pl,v 2.88 2022/01/24 17:49:32 greg Exp $
# RCSid $Id: genBSDF.pl,v 2.89 2022/03/02 21:15:18 greg Exp $
#
# Compute BSDF based on geometry and material description
#
Expand Down Expand Up @@ -213,6 +213,7 @@ sub userror {
printf MGFSCN "xf -t %.6f %.6f 0\n", -($dim[0]+$dim[1])/2, -($dim[2]+$dim[3])/2;
close MGFSCN;
if ( $mgfin ) {
die "+mgf requires input file with +geom\n" if ($#ARGV < 0);
system qq{mgfilt "#,o,xf,c,cxy,cspec,cmix,m,sides,rd,td,rs,ts,ir,v,p,n,f,fh,sph,cyl,cone,prism,ring,torus" @ARGV >> $mgfscn};
} else {
system "rad2mgf $radscn >> $mgfscn";
Expand Down

0 comments on commit 23679ce

Please sign in to comment.