isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.45k stars 2.31k forks source link

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

Open Gabriel0402 opened 2 years ago

Gabriel0402 commented 2 years ago

Checklist

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 After the transformation: 801649210358_ pic

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?

yuecideng commented 2 years ago

A possible way is cropping the partial desk mesh out of the whole mesh, and only translate the desk mesh.