rotate method does not allow a "boolean" input for "center" variable.
- 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).
### My Question
I have open3d version 0.15.2 setup in my conda environment. I am having difficulty in implementing what is mentioned in the [documentation](http://www.open3d.org/docs/latest/tutorial/Basic/transformation.html) about rotation method with center as False
For example:
```
frame = o3d.geometry.TriangleMesh.create_coordinate_frame(size=0.5, origin=[0, 0, 0])
translation = frame.rotate(rotationMatrix, center=False)
```
Its not allowing me to pass a boolean value to the `center`. When I do I get a python error that center only takes numpy array type input.
When I check the definition of rotate method in the library, it does not show "center" as a boolean option either. This is the description I have in the open3d/cuda/pybind/t/geometry.py for `def rotate`
```
rotate(self: open3d.cuda.pybind.t.geometry.TriangleMesh, R: open3d.cuda.pybind.core.Tensor, center: open3d.cuda.pybind.core.Tensor) -> open3d.cuda.pybind.t.geometry.TriangleMesh
Rotate points and normals (if exist).
```
If someone can help me point towards a work around that will be great!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked transformation tutorial and the reported open3d/cuda/pybind/t/geometry.py rotate signature. Compare the documented boolean center usage with the actual Python binding behavior in the reported version, then verify the intended interface and document or correct the discrepancy. Done means the documented example and exposed rotate signature agree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100