surface ptc_write string ptc_file default ptc string ptc_coordsys worl

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
surface ptc_write(
string ptc_file = "default.ptc";
string ptc_coordsys = "world"; )
{
normal Nf = faceforward( normalize(N), I );
bake3d( ptc_file, "", P, Nf,
"coordsystem", ptc_coordsys,
"interpolate", 1 );
Ci = Cs;
}