heremaps / pptk

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.
https://heremaps.github.io/pptk
MIT License
606 stars 111 forks source link

visulize sequence of point clouds #52

Open iamani opened 3 years ago

iamani commented 3 years ago

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 commented 3 years ago

Hey! Thanks! But what's the function to update points? I can create a viewer with point + rgb and get a reference to the viewer. Viewer attributes can change color but not points, or am I missing something? for a new one I need to call the viewer (create a new viewer) ... I check the functions:

On Tue, Jun 8, 2021 at 5:39 PM Carlos Vélez García @.***> wrote:

Hey, You can just initialize the viewer with a given pointcloud and then update that variable in a loop and it will work because it keeps a reference.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/heremaps/pptk/issues/52*issuecomment-856826450__;Iw!!Nmw4Hv0!n0nkcHM0eMpRZmOCUry-dMEPdUeilr00jZIssHQCXSCBfRf3e9s_D4ePbODqNLoVEeYGOZk$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ACJRJRDFUCEPQ67Z6A4ZMZDTRYTSTANCNFSM43RTUEIQ__;!!Nmw4Hv0!n0nkcHM0eMpRZmOCUry-dMEPdUeilr00jZIssHQCXSCBfRf3e9s_D4ePbODqNLoV1MnxVZA$ .

-- Amani

--

This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.

kwsacca commented 3 years ago

@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 commented 3 years ago

Many thanks! I was looking for this function 🤩

On 8 Jun 2021, at 10:26 PM, kwsacca @.***> wrote:

 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)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

--

This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.

ammaryasirnaich commented 2 years ago

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?