调整位置方法
mesh_tx = mesh_box.translate((0.16, 0.15, 0))
import open3d as o3d;
import numpy as np;
mesh_box = o3d.geometry.TriangleMesh.create_box(width=0.4,
height=0.6,
depth=0.11)
mesh_box.compute_vertex_normals()
mesh_box.paint_uniform_color([0.9, 0.1, 0.1])
mesh_tx = mesh_box.translate((0.16, 0.15, 0))
#o3d.visualization.draw_geometries([mesh_box])
mesh_box_Floor = o3d.geometry.TriangleMesh.create_box(width=0.9,
height=0.9,
depth=0.005)
mesh_box_Floor.compute_vertex_normals()
mesh_box_Floor.paint_uniform_color([0.3, 233.3, 0.2])
#mesh_box_Floor.Paint()
# mesh_frame = o3d.geometry.TriangleMesh.create_coordinate_frame(
# size=0.6, origin=[-2, -2, -2])
pcd = mesh_tx + mesh_box_Floor
o3d.visualization.draw_geometries([pcd])
#o3d.visualization.draw_geometries([mesh_tx,mesh_box_Floor ])