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

Function convert_box_to_trimesh_fmt

utils/pc_util.py:158–165  ·  view source on GitHub ↗
(box)

Source from the content-addressed store, hash-verified

156 """
157
158 def convert_box_to_trimesh_fmt(box):
159 ctr = box[:3]
160 lengths = box[3:]
161 trns = np.eye(4)
162 trns[0:3, 3] = ctr
163 trns[3, 3] = 1.0
164 box_trimesh_fmt = trimesh.creation.box(lengths, trns)
165 return box_trimesh_fmt
166
167 scene = trimesh.scene.Scene()
168 for box in scene_bbox:

Callers 1

write_bboxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected