Skip to content

Instantly share code, notes, and snippets.

@Dante83
Created January 12, 2017 21:27
Show Gist options
  • Save Dante83/fd899729e01137980ae214731b9c2d08 to your computer and use it in GitHub Desktop.
Save Dante83/fd899729e01137980ae214731b9c2d08 to your computer and use it in GitHub Desktop.
self.global_node_coordinates = [[0,0,0] for c in range(len(g_x_data))]
for i, x in enumerate(g_x_data):
self.global_node_coordinates[i][0] = x
if self.highest_global_x == None or x > self.highest_global_x:
self.highest_global_x = x
if self.lowest_global_x == None or x < self.lowest_global_x:
self.lowest_global_x = x
for i, y in enumerate(g_y_data):
self.global_node_coordinates[i][1] = y
if self.highest_global_y == None or y > self.highest_global_y:
self.highest_global_y = y
if self.lowest_global_y == None or y < self.lowest_global_y:
self.lowest_global_y = y
for i, z in enumerate(g_z_data):
self.global_node_coordinates[i][2] = z
if self.highest_global_z == None or z > self.highest_global_z:
self.highest_global_z = z
if self.lowest_global_z == None or z < self.lowest_global_z:
self.lowest_global_z = z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment