Hello this is a space truss I drew manually through curves and points I’m making a gh script to replace the points with mech sepheres and the curves with mesh pipes and the pipes turn to cones where they connect with the mesh sephere now the problem is my curves are continuous and have several nodes on their track so I used the mesh|curve then shatter to cut the curves where they meet the nodes but gh keeps freezing when I recompute,what could be the reason? If I waited for hours would it work? Is there a better way to script exactly what I want? I’m still a beginner in gh scripting
If there’s something not clear in the picture tell me I appreciate the help!
Update: gh processed the script but the shatter failed, polyline command says (insufficient points for a polyline) and mesh loft says (type conversion failed from mesh to curve)
please upload .gh file (internalize components needed for an example) so we can look at it.
Also set “grasshopper” as category, so more “grasshopperians” will see it.
Regards, Eef
Well now my computer is also running, and I am waiting.
I will check tomorrow if it is able to get to a “workable” state.
If this will not work, I will then shut off the “solver” and cut your work in pieces, so we can find where the problem is.
EDIT1:
A reboot + about 30 minutes later: Your files are online. And running.
Two RED components: Shatter + Mesh Loft.
I disabled them (temporarily), now the file runs (kind of ) normal. After changing a small thing, it takes about 16 seconds to resolve this.
I have an old MacBook what takes its time, but this is rather long. Looking at your file, I guess you have a couple of places with “slow” solutions, to be found and tuned to faster solutions. I will look around a bit and see if I can find some shortcuts.
Your input to the .gh components exist of many curves + points. Even if I cull duplicate curves (about 10%) it is still more then 3000. Points are about 2200.
Looking at those numbers, that is working with many to many. A cross reference is more then 6.000.000 combinations. Your computer will not be happy to work with that. When first opened, the big issue was the Mesh | Curve MCX were it exploded.
Advice: Bring your .gh back to a small set. For example your design has several branches. Work at first with 1 branch, or even a part of that branch. Bring the numbers below 100 (then you still have 10.000 combinations)
I would try to work with nurbs as much as possible. Now your input is a mesh (looks like a sphere?) what exists already of many surfaces, and even surface has to be calculated in MCX. I replaced it with a sphere, what helped a bit.
The main issue is that by combining the points and the curves, you loose the connection between both. What gives a many to many combination. Brute Force will not work in the end.
Some how you have to work with the dataset in an intelligent way to keep things together. Keep the connection between the curves and the points with endpoints,
Sort datasets, flip matrices, etc. a lot of work . And super heavy for your computer.
What if: You could turn all your curves into pipes (changing in size) in one time?
And add the spheres later. I did a quick one. Also takes 1-2 minutes to resolve.
Go little steps, build test parts first to learn how it works.
Use this forum as much as you need, by. searching reading, rebuilding what others did.
Study especially Multipipe (some great examples around here, which changing diameter depending on distance to centre or height. etcetera. Also look at IsoPod (to get some ideas on what is possible).
regards, Eef