We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
Flora
Hydro
Mapping
Terrain
Utilities

Random Path

Calculates a random path (in 2 dimensions)

Inputs

NameIDDescriptionType
StartPThe initial starting point or points for the path(s)Point
Step SizeLThe distance to move forward for each step. If provided as a list a random option will be selected for each step.Number
Step CountCThe number of steps to take.Integer
Random SeedSThe random seed to be used for each of the path distance and angle choices. If set the same random results will be produced; if not set they will be different for each run.Integer
DirectionsDThe possible angles in which to move (as a list of numbers in degrees). If not set a random direction in a 360 degree range will be used.Number
BoundaryBA boundary (must be a closed planar curve) that the steps will not be allowed to crossCurve

Outputs

NameIDDescriptionType
PathPThe resulting random pathCurve

Site design © Robin Rodricks.   Groundhog and associated data © 2024 Philip Belesky.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service