Commit c47c5863 authored by Jayant Khatkar's avatar Jayant Khatkar
Browse files

convert new designs, remove catches for old ones

parent 1fff6d4a
......@@ -80,10 +80,6 @@ def voxelised_csv(mesh_file_name,
if from_inches:
locs = locs*25.4
locs_pv = pv.PolyData(locs)
if 'M3' in mesh_file_name:
locs_pv.rotate_x(-90)
elif 'M5' in mesh_file_name:
locs_pv.rotate_x(90)
tu.transform_to_bed_centre(locs_pv, bed_centre)
tu.transform_to_z0(locs_pv)
locs = locs_pv.points
......@@ -109,8 +105,6 @@ def check_data(mesh_file_name, csv_fname, from_inches=False):
if from_inches:
locs = locs*25.4
locs_pv = pv.PolyData(locs)
#locs_pv.rotate_x(-90) # M3
#locs_pv.rotate_x(90) # M5
tu.transform_to_bed_centre(locs_pv, bed_centre)
tu.transform_to_z0(locs_pv)
pl = pv.Plotter()
......@@ -199,7 +193,7 @@ def vox_section_area(voxels, mesh_file_name, vox_dim=3):
if __name__ == '__main__':
obj = 'models/tempaware'
obj = 'models/M1'
#check_data(obj + '.stl', obj + '_raw.csv', from_inches=False)
#out = voxelised_csv(obj + '.stl', obj + '_raw.csv', voxels=obj+'_vox_centers.csv', from_inches=False)
#out.to_csv(obj + '_voxels.csv')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment