PoD wrote:
> I was playing around with generating geometric shapes using random
> numbers constrained by certain conditions.
>
> This one uses the following algorithm
>
> start with a point in space
> while n < some_number
> add plus or minus one to one of x,y or z
> if the new point is within a certain volume ( in this case, near
> the surface of a sphere)
> add the new point and a cylinder connecting this and the previous
> point
Do you have other constraints - like the number of times a point may be
visited? It would be interesting to see if it could fill much of the
volume if you only let it visit each point once.
Post a reply to this message
|