corrected sizes for cubes and cylinders

git-svn-id: svn://anubis/misc/phy_export@166 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2009-10-09 20:38:15 +00:00
parent c98eafac70
commit 8e6e4cbf20

View File

@ -22,15 +22,16 @@ def write(filename):
elif len(ob.data.faces) == 6:
# found a cube
e = ob.getEuler()
size = ob.getSize()
out.write("cube \"%s\" %f %f %f %f %f %f %f %f %f\n" %
((ob.name,) + ob.getSize() +
((ob.name,2*size[0],2*size[1],2*size[2]) +
ob.getLocation() +
(e[0], e[1], e[2])))
elif len(ob.data.faces) < 256:
# found a cylinder
e = ob.getEuler()
out.write("cylinder \"%s\" %f %f %f %f %f %f %f %f\n" %
((ob.name,) + (ob.getSize()[0], ob.getSize()[2]) +
((ob.name,) + (ob.getSize()[0], ob.getSize()[2]*2) +
ob.getLocation() +
(e[0], e[1], e[2])))
elif len(ob.data.faces) >= 256: