Writing cylinders based on number of faces < 256
git-svn-id: svn://anubis/misc/phy_export@139 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
3d82e311cf
commit
c98eafac70
@ -26,7 +26,15 @@ def write(filename):
|
||||
((ob.name,) + ob.getSize() +
|
||||
ob.getLocation() +
|
||||
(e[0], e[1], e[2])))
|
||||
elif len(ob.data.faces) >= 1024:
|
||||
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.getLocation() +
|
||||
(e[0], e[1], e[2])))
|
||||
elif len(ob.data.faces) >= 256:
|
||||
# found a sphere
|
||||
out.write("sphere \"%s\" %f %f %f %f\n" %
|
||||
((ob.name, ob.SizeX) + ob.getLocation()))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user