Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 3
    Can you give a simple, reproducible example of what vertices might look like? Commented Feb 4, 2018 at 16:01
  • Also why are you taking the first and second elements of lists for y and z respectively? Commented Feb 4, 2018 at 16:02
  • maps seems to be the thing you strive for but, just give us vertices and a bit more of the code Commented Feb 4, 2018 at 16:03
  • "vertices" is a list of tuples on the form (x, y, z). I use max() / min() to sort the tuples by item 0 (x), 1 (y), and 2 (z), then i retrieve the item i sorted by for each axis and use them to build a new tuple. Commented Feb 5, 2018 at 11:21