MCPcopy Create free account
hub / github.com/OpenMeshLab/MeshXL / get_bbox_verts

Function get_bbox_verts

utils/ply_helper.py:123–135  ·  view source on GitHub ↗
(bbox_min, bbox_max)

Source from the content-addressed store, hash-verified

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 = [

Callers 1

get_bbox_edgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected