isl-org / isl-org/Open3D

How to transform specific points/vertices and removing the corresponding stretched triangles

Open
#4,980 1 comment 0 reactions 0 assignees View on GitHub
question
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 a scene with several instances. And I wanted to move some of the instances within the scene. However the translate and transform function apply to all points/vertices in the *.ply file. And If I'm transforming the vertices, the corresponding triangles would be stretched.

For example, before the transformation:
![861649211174_ pic](https://user-images.githubusercontent.com/2779607/161886283-bcebdcc8-8640-47dc-b809-fb59d45c4381.jpg)
After the transformation:
![801649210358_ pic](https://user-images.githubusercontent.com/2779607/161886993-0fb005e9-38d8-44ad-b00e-a36a228f668b.jpg)

We use the following code to change the coordinates of the vertices:
`np.asarray(mesh.vertices)[i]+=np.asarray([0.4,1,0])`

Is there some way that we can do this transformation while keeping the triangles normal?

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.