Coloring all white points in a pointcloud

Hi. I have a big pointcloud of a forest that contains a lot of white dots, because og wind/ movement when I made the 3D scan.

Does anyone know If I can volor all these point green and pretent them as leaves?

And. Does anyone know if I can change the pointcloud from colored to greyscale ?

Thanks :slight_smile:

1 Like

convert it to voxels and use a program like 3DCoat?

Here’s a python script that may help. I’m sure it could be made a lot faster if needed

import scriptcontext as sc
import Rhino
import System.Drawing

rc, objref = Rhino.Input.RhinoGet.GetOneObject("select point cloud", False, Rhino.DocObjects.ObjectType.PointSet)
pointcloud = objref.Geometry()
for i in range(pointcloud.Count):
    item = pointcloud[i]
    color = item.Color
    brightness = color.GetBrightness()
    if (brightness > 0.9)
        item.Color = System.Drawing.Color.FromArgb(0,255*brightness,0)

sc.doc.Objects.AddPointCloud(pointcloud)
2 Likes