I don’t think so, maybe in the future.
To be honest I just recently properly learnt how to do that.
Hi @Petras_Vestartas
Thank you for this plugin,
I try to use Rhino.Geometry.PointCloud
but the plugin don’t recognize it
pointcloud _ goo.gh (4.5 MB)
I think Cockroach was developped for rh7 and Petras developped his own point cloud. There is a discussions somewhere.
Thanks @laurent_delrieu
I think a simple converter can be added to the plugin or adding support for Rhino.Geometry.PointCloud
I just see github link, maybe i can create one
Yes you just have to use something like this if you want to stay in C#
but if you want to use Grasshopper use
Thank you
I create userobject to convert from pointcloud to ghcloud because i need to create mesh from pointcloud in Rhino7
It’s already exist and converter components will be useful
using CockroachGH;
private void RunScript(object pcloud, ref object A)
{
PointCloud pointcloud = (PointCloud) pcloud;
CockroachGH.GH_Cloud ghCloud = new CockroachGH.GH_Cloud(pointcloud);
A = ghCloud;
}
There was one, is one of my hard drives from several versions of Cockroach. I needed similar stuff for tranferring data from faro to components.
I wish we would revive cockroch but it is always down to resources and time…
Thank you, it is still useful, for me the mesher is enough
CloudMesh don’t create mesh for the other part of pointcloud
I hope you revive it soon and fix this
Why that chain of gh components cannot be reproduced as a python code only (using imported ghpythonlib.components as ghc module/library). The cloud just cannot be seen as a cloud but a list of Rhino.PointCloudItem; cloud is created using ghc.CockroachGH.CreateCloud() over a list of gh constructed points; if check the type of the created cloud printing type(cloud) of it, it prints <type ‘PointCloud’> with 57600 Point3d…but no cloud as outcome but list!!! If ignored and the next script line added ghc.CocoroachGH.Downsample() it gives two errors: 1. no initial cloud and 2. failed from Goo to Cloud.
Connecting Cloud component to the outcome gives an error message that says “1. Data conversion failed from Goo to Cloud”???
Help???
The import of grasshopper component to python is not tested or used at all. Try at least to create pointcloud. By the way the latest grasshopper has pointcloud components including downsampling. Those you probably can import.
Petras,
Thank you for a quick response!
When you say the latest grasshopper are you referring to rhino8?
As I said, I create a point cloud within a “python” component and that is the end, because as I try to use that cloud further it gives the “Goo” error!
Regards,
Can you share your script
Share the script to try to solve the problem with another pointcloud component or code
Hello,
There is a small script reading a file with point cloud points coordinates…the rest is visible on the picture I have sent already! I could forward .gh file if that is what you require!?
Regards,
Yes gh file is easier and faster
Hello,
Please find attached the .gh and .txt files for your review. Thank you!
Regards,
(attachments)
CELL_8.txt (4.22 MB)
SetPointCloud.gh (11.1 KB)
Seg,
Thank you so much for your time and effort; Finally, all steps could be completed within the code…oddly enough, after every step, conversion to GHCloud has to be performed…but, have my mesh at the end (py3_ALL component is the script in python)! Next week will redo it in R7 … hope with no big issues!
Thank you again!
Regards,
Slavo
ps: the same code (Py3 ALL) in R7 generates a solution exception: “No module named CockroachGH”; but, at the same time, C# component does not have any issue with it (using CockroachGH)?! R8 is required?!
(attachments)
SetPointCloud_Py3.gh (20.9 KB)
Maybe you need to update your python version? Had the same problem after switching from rh6 to rh8 with other similar components…
Best, Manuel