isl-org / isl-org/Open3D

Request option to get deterministic results for compute_uvatlas

Open
#6,348 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### Proposed new feature or change

When running open3d.t.geometry.TriangleMesh.compute_uvatlas() multiple times you get different results.
Would it be possible to add e.g. a seed parameter to have fixed results?

The code is the example from the [manual](http://www.open3d.org/docs/latest/python_api/open3d.t.geometry.TriangleMesh.html#open3d.t.geometry.TriangleMesh.compute_uvatlas)
```
import open3d as o3d
bunny = o3d.data.BunnyMesh()
mesh = o3d.t.geometry.TriangleMesh.from_legacy(o3d.io.read_triangle_mesh(bunny.path))
mesh.compute_uvatlas()

# Add a wood texture and visualize
texture_data = o3d.data.WoodTexture()
mesh.material.material_name = 'defaultLit'
mesh.material.texture_maps['albedo'] = o3d.t.io.read_image(texture_data.albedo_texture_path)
o3d.visualization.draw(mesh)
```

![bunny1](https://github.com/isl-org/Open3D/assets/10104301/3e52ed70-8e40-42ed-8c9c-bbf1ba7a56ac)
![bunny2](https://github.com/isl-org/Open3D/assets/10104301/0a5d4153-ac8d-48d1-a7e4-b90fa2ed3869)

Triangle UVs from two runs

![Screenshot from 2023-09-06 12-10-15](https://github.com/isl-org/Open3D/assets/10104301/4e5129b1-0f63-4940-92c6-ca8ad714e5b5)

### References

_No response_

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.