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
610 stars 112 forks source link

"Hellow World" example shows no points #12

Open AlanTJohnstone opened 5 years ago

AlanTJohnstone commented 5 years ago

Just downloaded and the display of bildstein_station1_xyz_intensity_rgb.txt worked right out of the box. BUT I cannot get the simple example of displaying 100 random points to work. the viewer opens and says that it is displaying the points but no points are vizable The colored axis and a white squared grid can be seen and the y can be rotated. I see some other issues which are similar but they seem to not even get the viewer to show.

Thanks

j12y commented 5 years ago

Can you provide a few more details about your environment? I think there were some issues with the build for Python 3.x so did you build from source or attempt with 2.7? Are you on OSX, Windows, or Linux?

To confirm, is this the example of what you were trying? A standalone script or in ipython or a notebook?

#!/usr/bin/env python

import pptk
import numpy as np

x = np.random.rand(100,3)
v = pptk.viewer(x)
v.set(point_size=0.01)

Glad the bildstein example worked so will be curious what might be happening with the getting started example.

AlanTJohnstone commented 5 years ago

Yes that is the example. I am using this with Python 3.7 for 64 bit machine installed via Anaconda onto a laptop running windows 10 I believe the problem is that there is no default value for the colour of the points as after looking at the bildstein example I used v.attributes(rgb) where rgb is a numpy array (100,3) with random numbers between 0 and 1 and this produced the result.

Great bit of software.

I have some questions. Do all the points need to be in the same array? ie canprovide two arrays or add points to an already drawn cloud? Can you specify different sizes for different sets of points?

Alan

From: Jayson DeLancey Sent: Tuesday, April 16, 2019 10:00 PM To: heremaps/pptk Cc: Alan ; Author Subject: Re: [heremaps/pptk] "Hellow World" example shows no points (#12)

Can you provide a few more details about your environment? I think there were some issues with the build for Python 3.x so did you build from source or attempt.7 with 2.7? Are you on OSX, Windows, or Linux?

To confirm, is this the example of what you were trying? A standalone script or in ipython or a notebook?

!/usr/bin/env python

import pptk import numpy as np

x = np.random.rand(100,3) v = pptk.viewer(x) v.set(point_size=0.01) Glad the bildstein example worked so will be curious what might be happening with the simple example.

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