se_math/mesh.py
def offread_uniformed(filepath, sampled_pt_num=1024):
    """ read OFF mesh file and uniformly sample points on the mesh. """
    mesh = Mesh()
    input = o3d.io.read_triangle_mesh(filepath)
    pointCloud = input.sample_points_uniformly(sampled_pt_num)
    points = np.asarray(pointCloud.points)
    pts = tuple(map(tuple, points))
    mesh._vertices = pts

    return mesh
 read OFF mesh file and uniformly sample points on the mesh. 
read OFF mesh file and uniformly sample points on the mesh.
read OFF mesh file and uniformly sample points on the mesh .
def offread_uniformed(filepath, sampled_pt_num=1024):
    mesh = Mesh()
    input = o3d.io.read_triangle_mesh(filepath)
    pointCloud = input.sample_points_uniformly(sampled_pt_num)
    points = np.asarray(pointCloud.points)
    pts = tuple(map(tuple, points))
    mesh._vertices = pts
    return mesh
def offread_uniformed ( filepath , sampled_pt_num = 1024 ) : mesh = Mesh ( ) input = o3d . io . read_triangle_mesh ( filepath ) pointCloud = input . sample_points_uniformly ( sampled_pt_num ) points = np . asarray ( pointCloud . points ) pts = tuple ( map ( tuple , points ) ) mesh . _vertices = pts return mesh
read OFF mesh file and uniformly sample points on the mesh.
read OFF mesh file and uniformly sample points on the mesh .
""" read OFF mesh file and uniformly sample points on the mesh. """
filepath
sampled_pt_num