Hi,
I have a curve on a hyperboloïd, and I want to divide the curve in 4 straight lines with the same lenght. With the command divide, I can only divide the curve in 4 same lenghts. I found a plugin that has the command to do this, but it is for Rhino 4, and I tried it, but it doesn’t want to install on Rhino 5. There is an explanation in the link how the plugin would be for Rhino 5, but I have no idea how i can use it.
This is the link: https://wiki.mcneel.com/developer/sdksamples/dividecurvestraight
hi, thanks for the pythonscript. I tried it, and it divides the curve in many points. I am looking for the points, on the curve, so that the straight lenghts between them are the same. I should be able to tell Rhino I need 4 parts of the curve.
@StructureEmma, I changed the inputs a little to make it clearer (I hope) and updated the file. I also added a polyline as the output, which is what I think you want…
I tested this in V6 on Windows, so I am not 100% sure (just noticed we’re on the Mac forum) if that is compatible with the GH you have but I would expect that it is.(btw, I added a polyline as output to the GH file above, so, re-download if you want that.)
Kangaroo installing went well :)
Can it be the file is heavy to run? When I open the gh now, my Rhino seems to ‘stop working’ (and i have a powerful computer )
Thanks!
Equalize is the button component, renamed
Divisions is an Integer component, renamed
Crv is a Curve component.
Then I added a Polyline component at the far end.
I think everything else is the same.
If I can annoy you with another question? Now my line is divided with grasshopper in points and lines, is there a way to ‘snap’ on the lines in Rhino? So I can continue drawing in Rhino without gh?
You can ‘Bake’ the lines and or points into the Rhino doc then use these to snap to. If you add a polyline component as I did, you can Bake the polyline directly, with no drawing in Rhino needed. Right-click on a component to bake.
Yes, I have the same model as you - except the division component, I just filled in the number at the divide component- and this is working. Could it be Mac can not open properly a windows saved version?
I noticed something while drawing with this method. My model should be exaclty symmetric on some places, and it isn’t. While zooming in the corners, you can see that the division doesn’t go exactly until the corner…
This is an image from 3 curves I divide in 4 parts.
Can I do something to fix that in the grashopper file?
When I draw a line, or arc to divide, i don’t have this problem… This is a projected line on a hyperboloïd surface. @pascal, do you have this also on windows, that the division doesn’t go till the end of the curve? (I can give you my file to try with my curve to see what it gives…?)