(v, f, face_count=10000)
| 214 | |
| 215 | |
| 216 | def mesh_decimation(v, f, face_count=10000): |
| 217 | mesh = o3d.geometry.TriangleMesh() |
| 218 | mesh.vertices = o3d.utility.Vector3dVector(v) |
| 219 | mesh.triangles = o3d.utility.Vector3iVector(f) |
| 220 | mesh = mesh.simplify_quadric_decimation(face_count) |
| 221 | return np.asarray(mesh.vertices), np.asarray(mesh.triangles) |
| 222 | |
| 223 | |
| 224 | def interpolate(attr, rast, attr_idx, rast_db=None): |