Create a point cloud from points?

I’m going to look very silly in a few minutes, but I tried a lot of stuff that seemed intuitive and searched the NG, to no avail.
How am I supposed to do to create a point cloud from a bunch of points ?

This is what seemed the mosy logical to me :


240301_IMG_How am I supposed to create a point cloud.gh (22.3 KB)

The second part of the question is : can I somehow use the Shrinkwrap component to create a concave hull from a bunch of planar curves ?
This is CAM-related, on this job to avoid impossible toolpaths.

I think I found a way to use shrinkwrap that actualy does the job.


240301_IMG_Interesting use of Shrinkwrap.gh (37.5 KB)

Still, it’s a bit frustrating that I can’t find how to create a point cloud directly in Grasshopper !
Cockroach has a “CloudCreate” component, but the class it creates isn’t compatible with the new “Point cloud” container :frowning:

This could work, the double offset “Un pas en avant Un pas en arrière”


But there is no magic when offset is low, curves are not grouped

240301_IMG_How am I supposed to create a point cloud.gh (23.9 KB)

1 Like

Quite smart and straightforward, mon cher Laurent !
Yet, I need something more robust, and I think I found the solution (see above).

Do you confirm that there is currently no native GH component that can create a pointcloud ?
McNeel added a bunch of native point-cloud-related components, but the idea that it could be intresting to create a point cloud from within GH didn’t occur to them ???

You will Rant as usual but here is the way

It is the new paradigm in R8, I think it is named PassThrough. It limit the number of components but is less intuitive until we get used to it.

4 Likes
import Rhino
import rhinoscriptsyntax as rs
mport scriptcontext as sc

sc.doc = Rhino.RhinoDoc.ActiveDoc
cloud = sc.doc.Objects.Find(PtCloud)
rs.EnableRedraw(False)

cloud_points = rs.PointCloudPoints(cloud)
cloud_colors = rs.PointCloudPointColors(cloud)
print len(cloud_points)
pts = cloud_points
colors = cloud_colors

Im am aware of the pass-through concept.
It is indeed not very intuitive.
Rant closed.

1 Like

@osuire I agree

RH-81518 point clouds from list of points

1 Like