3 Open3D学习笔记——mesh基础操作

mesh计算法线 拷贝 剪切  着色

import copy
import open3d as o3d

    ...

    mesh.compute_vertex_normals()
    o3d.visualization.draw_geometries([mesh])

    mesh1 =copy.deepcopy(mesh)
    #crop
    mesh1.triangles = o3d.utility.Vector3iVector(
        np.asarray(mesh1.triangles)[:len(mesh1.triangles) // 2, :])
    mesh1.triangle_normals = o3d.utility.Vector3dVector(
        np.asarray(mesh1.triangle_normals)[:len(mesh1.triangle_normals) //
                                           2, :])
    #paint
    mesh1.paint_uniform_color([1,0.706,0])

    ...

 

你可能感兴趣的:(Open3D)