| 121 | |
| 122 | def get_bbox_edges(bbox_min, bbox_max): |
| 123 | def get_bbox_verts(bbox_min, bbox_max): |
| 124 | verts = [ |
| 125 | np.array([bbox_min[0], bbox_min[1], bbox_min[2]]), |
| 126 | np.array([bbox_max[0], bbox_min[1], bbox_min[2]]), |
| 127 | np.array([bbox_max[0], bbox_max[1], bbox_min[2]]), |
| 128 | np.array([bbox_min[0], bbox_max[1], bbox_min[2]]), |
| 129 | |
| 130 | np.array([bbox_min[0], bbox_min[1], bbox_max[2]]), |
| 131 | np.array([bbox_max[0], bbox_min[1], bbox_max[2]]), |
| 132 | np.array([bbox_max[0], bbox_max[1], bbox_max[2]]), |
| 133 | np.array([bbox_min[0], bbox_max[1], bbox_max[2]]) |
| 134 | ] |
| 135 | return verts |
| 136 | |
| 137 | box_verts = get_bbox_verts(bbox_min, bbox_max) |
| 138 | edges = [ |