algorithmic modeling for Rhino
Hi all,
I'm trying to follow this tutorial online but the logic is breaking down when I try it. could anyone point out why this is for me as I cant figure it out.
It breaks down when I change the Expression of D in the Offset component to -d?
Hopefully this is an easy one to solve for you.
I have attached the relevent files from rhino and GH, here is the tutorial URL: http://designreform.net/2009/07/rhino-grasshopper-parametric-truss/
Cheers people,
Dave
Tags:
Hi David,
The recent changes in RhinoCommon for Offset have caused a great deal of grief and I don't know what's being done or even what needs to do (I don't work for McNeel).
What I do know for sure is that the only reliable way to get the results you want from offset is to not use it (at the moment). Numerous work arounds have been suggested including offset on surface (processor hungry) of Offset both sides and then cull the unwanted object. This later one is of cause no use to you as the component is failing when you change direction (for this example).
I would suggest using a scaling component to offset the curve instead. You will need to calculate the distance required as a factor to scale by and you will also need a centroid of the polyline for the centre of scaling.
In order to keep the processing requirements lean I've used the Average component to get both the Centroid and A reference point to measure the offset distance against.
If you need to incorporate a direction for the offset then there is an optional Fx component that will change the factor for scaling instead of having it hard coded into the Scale Component. It does this through a boolean toggle on a Stream Filter Outside = True then the Function of the Fx component is 1+x; False then 1-x.
forgot to add the GHX
Cheers Danny.
Would you have any idea why I cant open the GHX you sent? When I click on it, I am forwarded to what looks like a page of computer code? I have tried to drop and drag it into the GH main screen, but that has no outcome? do you have any problems like this? or know of any solutions?
Thanks again for your help, Ill get onto that now.
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