代码更新
This commit is contained in:
1 parent
dcc9a27cc2
commit
1a96ae17e2
10 files changed
+14
-12
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+12
-12
@@ -105,19 +105,19 @@ def compute_bbox(mesh_obj, obj_name, is_downsample=True):
|
||||
# return compute_bbox_ext(mesh_obj, obj_name, is_downsample)
|
||||
|
||||
mesh_obj_origin = copy.deepcopy(mesh_obj)
|
||||
total_matrix, z_max, min_bound, max_bound, ply_name = compute_bbox_ext(mesh_obj, obj_name, is_downsample)
|
||||
# print(f"compute_bbox_ext total_matrix = {total_matrix}, ply_name = {ply_name}")
|
||||
|
||||
"""
|
||||
# 从网络上获取数据
|
||||
printId = ""
|
||||
match = re.search(r"P(\d+)", obj_name) # 匹配 "P" 后的连续数字
|
||||
if match:
|
||||
printId = match.group(1)
|
||||
total_matrix, z_max, min_bound, max_bound, ply_name = compute_bbox_net(printId)
|
||||
ply_name = f"{os.path.splitext(obj_name)[0]}={ply_name.split('=')[1]}"
|
||||
# print(f"compute_bbox_net printId = {printId}, total_matrix = {total_matrix}, ply_name = {ply_name}")
|
||||
"""
|
||||
if is_compute_bbox_net:
|
||||
# 从网络上获取数据
|
||||
printId = ""
|
||||
match = re.search(r"P(\d+)", obj_name) # 匹配 "P" 后的连续数字
|
||||
if match:
|
||||
printId = match.group(1)
|
||||
total_matrix, z_max, min_bound, max_bound, ply_name = compute_bbox_net(printId)
|
||||
ply_name = f"{os.path.splitext(obj_name)[0]}={ply_name.split('=')[1]}"
|
||||
# print(f"compute_bbox_net printId = {printId}, total_matrix = {total_matrix}, ply_name = {ply_name}")
|
||||
else :
|
||||
total_matrix, z_max, min_bound, max_bound, ply_name = compute_bbox_ext(mesh_obj, obj_name, is_downsample)
|
||||
# print(f"compute_bbox_ext total_matrix = {total_matrix}, ply_name = {ply_name}")
|
||||
|
||||
transformed_vertices = mesh_transform_by_matrix(np.asarray(mesh_obj_origin.vertices), total_matrix)
|
||||
|
||||
|
||||
Reference in new issue
Block a user