Hi Guys
I would like to have a perpendicular line that flows between 2 parallel lines. My approach is wrong because 2 points aren't parallels. Is there anyone that could help me?
Grasshopper Definition creating a series of bridges from a single line . . . maybe more like a sort of boardwalk. Ribs will all be different at bench locati...
ws in time, meaning the diagram is changed in more than one place at once. My algorithm works one line at a time.
The component takes a list of angles, you only supplied one, but it's possible to provide more. Each angle will result in a seeding line at that angle. This is the first step of the algorithm.
Once the seedlines have been inserted, one is picked at random and a perpendicular line is created from a random point along that line. This perpendicular line is then rotated with a random angle from 0.0 to Deviation. If you want all your lines to be perpendicular to each other, make sure the deviation is zero.
This new line is then 'shot' into the diagram until it intersects another line or the boundary.
Repeat until the required number of lines have been inserted.
I attached a modified file which shows the options a bit more clearly.
---------------------------------------------------------
The component does not give control over exactly where the seed-lines are positioned. Nor does it allow you to weigh the probability of randomly picked lines/randomly picked points for the diagram growth. All lines are equally likely to be picked, which means that already dense areas tend to get more dense over time.…
ts of the GHPython component; however, here I am just trying to move the point created within the script to have a line then connecting them (I'd much rather implement something more like a Line SDL component method but I can't seem to figure out how to do that in a rhinoscriptsyntax context).
Please find attached the GH file, and the problem I am referring to happens in the end in the line that I am declaring the variable "endPt".
Error copied here:
Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid Traceback: line 495, in coerceguid, "C:\Users\user\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py" line 1140, in TransformObjects, "C:\Users\user\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py" line 405, in MoveObjects, "C:\Users\user\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py" line 391, in MoveObject, "C:\Users\user\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\object.py" line 34, in script
Thanks a lot for the help,
Tim…