branch | pyrit |
changeset 41 | c1080cb5bd6d |
parent 29 | 574c34441a1c |
child 69 | 303583d2fb97 |
40:929aad02c5f2 | 41:c1080cb5bd6d |
---|---|
1 # Stanford .ply file loader |
|
2 |
|
1 from raytracer import Triangle, NormalVertex |
3 from raytracer import Triangle, NormalVertex |
2 |
4 |
3 def LoadStanfordPlyFile(rt, filename, mat, smooth, scale=(1,1,1), trans=(0,0,0)): |
5 def LoadStanfordPlyFile(rt, filename, mat, smooth, scale=(1,1,1), trans=(0,0,0)): |
4 if (type(scale) == float or type(scale) == int): |
6 if (type(scale) == float or type(scale) == int): |
5 scale = (scale,)*3 |
7 scale = (scale,)*3 |