# | Line 485 | Line 485 | load_bsdf_rep(FILE *ifp) | |
---|---|---|
485 | rbfh.invec[0] = getflt(ifp); | |
486 | rbfh.invec[1] = getflt(ifp); | |
487 | rbfh.invec[2] = getflt(ifp); | |
488 | + | if (normalize(rbfh.invec) == 0) { |
489 | + | fprintf(stderr, "%s: zero incident vector\n", progname); |
490 | + | return(0); |
491 | + | } |
492 | rbfh.vtotal = getflt(ifp); | |
493 | rbfh.nrbf = getint(4, ifp); | |
494 | newrbf = (RBFNODE *)malloc(sizeof(RBFNODE) + |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |