algorithmic modeling for Rhino
Hello, I need some help.
I'm starting to use grashopper now, so this is probably a newbie question.
I'm trying to relax the mesh that makes the sitting region of this chaise longue so it behaves like a cloth.
But I'm getting this error:
1. Solution exception:Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
The error occurs when I start the simulation.
Is anyone getting this same error?
Here's the code and a image of the model:
I've also attached the whole code as an image.
Tags:
This is probably caused by the culling of the lines.
The geometry input of Kangaroo allows you to attach point based objects (such as meshes or lines) to the particles of the simulation. However, if a point has not been initialized by a force, then it cannot have geometry attached to it, and it will give the error message you mention.
When you cull the line segments before turning them into springs, you remove some points from the simulation, but they still exist in the geometry input.
Are you culling them because of some very short segments that were causing problems ?
An alternative way of fixing this is to use the "AlignMeshVertices" command in Rhino first to combine points closer than some threshold.
Another solution could be to set a threshold face side length in mesh options so you will not get faces smaller than that threshold.
It looks very comfortable by the way ;-)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by