Update a TextureMesh on every frame?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Update a TextureMesh on every frame?

richard.o.shaw
Hi,

Is it possible to just update the vertices of a TextureMesh on each frame?
Currently, I have to call the function addTextureMesh on every frame and it
takes a long time (around 130ms).
All I want to do is update the vertex positions from one frame to the next,
without having to re-add the whole mesh each time.
My code is:

// Read in a TextureMesh from .obj file
TextureMesh meshOBJ;
string name = "mesh.obj";
pcl::io::loadPolygonFileOBJ(name, meshOBJ);

// Display the TextureMesh each frame in PCL viewer
viewer_->removeShape("meshobj", 0);
viewer_->addTextureMesh(meshOBJ, "meshobj", 0);

Can anyone help?




--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users