Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visulize sequence of point clouds #52

Open
iamani opened this issue Apr 25, 2021 · 4 comments
Open

visulize sequence of point clouds #52

iamani opened this issue Apr 25, 2021 · 4 comments

Comments

@iamani
Copy link

iamani commented Apr 25, 2021

Hi,

I have a sequence of point cloud. I tried pptk to visualize and interact with each cloud but independently (evoking a new viewer). I'm wondering if there's a way to update the current pptk viewer to plot the next point cloud?

Thanks.

@iamani
Copy link
Author

iamani commented Jun 8, 2021 via email

@kwsacca
Copy link

kwsacca commented Jun 8, 2021

@iamani From a previous issue, answered by @Merevoli-DatLuu. This answer helped me with what I wanted to do. I believe v.load() is what you want (after updating points of course).

Question:

Is there an API to plot a set of points in real time? Basically I guess I don't want to kill the viewer, but rather add a new set of points and swap the buffer

Answer:

You can invoke load() method instead.
Example:
points = [[1, 1, 1], [1, 1, 2]]
v = pptk.viewer(points)
points.append([1, 1, 3])
v.load(points)

@iamani
Copy link
Author

iamani commented Jun 8, 2021 via email

@ammaryasirnaich
Copy link

Hi @kwsacca , thanks for sharing the solution for this task. I just wanted to ask is there any way if we also want the old points to remain along with updating the new points?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants