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)

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.

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.

@osuire I agree

RH-81518 point clouds from list of points

Yep, but it didn’t go very far, did it ?

Unfortunately not no, you’ll have to use the method that Andy showed

I’m trying to use Cockroach for it’s implementation of the “Ball Pivot” algorithm to mesh a point cloud like photogrammetry or scanning programs, but it seems to have it’s own point cloud class :

for that you’ll need to contact the authors of that plugin, I don’t know why they needed it to be a different format or if this is a bug.