INNER CODE UNIT · Python

vertices

OpenMeshLab/MeshXL · sample_t2m.py:14

    vertices = mesh_coords.reshape(-1, 3)
    vertices_index = np.arange(len(vertices))   # 0, 1, ..., 3 x face
    triangles = vertices_index.reshape(-1, 3)
    write_ply(
        np.asarray(vertices.cpu()),
        None,
        np.asarray(triangles),
        filename
    )
    return vertices


def make_args_parser():
    parser = argparse.ArgumentParser(
        "MeshXL: Neural Coordinate Field for Generative 3D Foundation Models", 
        add_help=False
    )
    ##### model config #####

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…