|
From: <kin...@us...> - 2003-11-06 14:47:29
|
Update of /cvsroot/teem/teem/src/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv23681/bin
Modified Files:
miter.c
Log Message:
added two-sided lighting to miter, accessible via miter -ns
Index: miter.c
===================================================================
RCS file: /cvsroot/teem/teem/src/bin/miter.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** miter.c 2 Oct 2003 17:39:53 -0000 1.19
--- miter.c 6 Nov 2003 14:47:25 -0000 1.20
***************
*** 79,82 ****
--- 79,89 ----
"cubicdd:1,0", "second derivative kernel",
NULL, NULL, nrrdHestKernelSpec);
+ hestOptAdd(&hopt, "ns", "normal side", airTypeInt, 1, 1, &(muu->normalSide),
+ "1", "how to interpret gradients as normals:\n "
+ "\b\bo \"1\": normal points to lower values (higher == "
+ "more \"inside\")\n "
+ "\b\bo \"0\": \"two-sided\": dot-products are abs()'d\n "
+ "\b\bo \"-1\": normal points to higher values (lower == "
+ "more \"inside\")");
hestOptAdd(&hopt, "rn", NULL, airTypeBool, 0, 0, &renorm, NULL,
"renormalize kernel weights at each new sample location. "
|