algorithmic modeling for Rhino
Currently Volvox supports .xyz files (means you can load and save them directly from/to Grasshopper).
Load Cloud has 3 inputs :
File Path - ...
Mask - how to format the text
Percent - amount of points to load from file (from 0 to 1)
So this post is about masks.
Rhino Point Clouds can store information such as : location of a point, it's color and normal vector. It is common to store intensity values, but it is not supported in Rhino.
Mask characters :
x y z - location
u v w - normal
r g b - color
a - intensity
Let's say that your file is formatted such as :
10.000 ; 12.000 ; 20.053 ; 0.243
which means it stores location and intensity values.
A proper mask will inform Load Cloud component how to read those values
x;y;z;a
The first non-alphabetic character in the mask is automatically interpreted as the separator.
Same masks work with Save Cloud component. Note that it has D input which when set to True will make it surround all the values in double-quotes.
"10.000" ; "12.000" ; "20.053" ; "0.243"
Cloud Load doesn't care about those double-quotes, it just ignores them and proceeds to read the values without them.
Tags:
Hi,
I'm trying to load a file with intensity, and it doesn't work.
I save the file with cloud compare in .xyz, where I can see the intensity and color.
I open it with Volvox and if I use the Mask "x y z r g b a", the colors are not read, their values go from 0-1 and intensity (a) it says it goes from 255-255.
If I use a Mask "x y z r g b i", the colors work perfect with values from 0-255, but when I try to use the intensity value (i), it says " 'i' is not declared. It may be inaccessible due to its protection level ".
What I try to do is:
1- filter by composite value (r+g+b)/3, having 2 separed clouds 0-200 and 200-255 - Done-
2- filter by intensity, a cloud with the points with intensity from 0-0,6 and 0,6-1 - can't load the intensity-
3- subsample the cloud with space method to 0.02m. I did it with cloud compare and then with volvox (volvex based spatial subsamplin), I compared and are not the same cloud. how can I do it with volvox to end with the same subsampled cloud as cloud compare?
I don't know if what I'm asking is possible to be done witrh volvox, They are thing we do with cloud compare, and we are looking if are possible to do it with grasshopper, that I guess I would be faster.
I add my files and a sample point cloud in .xyz that I'm using to try this proces.
Sorry, if I look like a noob, I'm starting to works with point clouds.
thanks
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by