make_small_white_shelf.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 from make_ply import *
00003 
00004 outfile = file("small_white_shelf.ply", 'w')
00005 
00006 vertices = []
00007 faces = []
00008 add_box([0.,0.,0.], 31.4, 29.5, 1.2, vertices, faces)
00009 add_box([0.,0.,30.], 31.4, 29.5, 1.2, vertices, faces)
00010 add_box([0.,0.,60.], 31.4, 29.5, 1.2, vertices, faces)
00011 add_box([0.,0.,1.2], 1.4, 29.5, 58.8, vertices, faces)
00012 add_box([30.,0.,1.2], 1.4, 29.5, 58.8, vertices, faces)
00013 add_box([0.,29.25,1.2], 31.4, 0.25, 58.8, vertices, faces)
00014 
00015 #convert from cm to m
00016 for i in range(len(vertices)):
00017     for j in range(3):
00018         vertices[i][j] *= .01
00019 
00020 write_ply(vertices, faces, outfile)
00021 


manipulation_worlds
Author(s): Matei Ciocarlie
autogenerated on Mon Oct 6 2014 12:59:08