rytheranderson / pyfracgen

Fractal images with Python
MIT License
21 stars 1 forks source link

Can I create a 3D point cloud from the random walk #1

Closed subramaniankarthik closed 1 year ago

subramaniankarthik commented 1 year ago

Can I leverage the random walk code to generate 3D point cloud points? If yes, what needs to change?

rytheranderson commented 1 year ago

Sort of, the random_walk function will return a fractal_result object where the image_array attribute is basically a pixellated 3D point cloud (if the depth > 1 is passed to random_walk). If you convert the pixels to coordinates according to the visitation count you would get a point cloud.

rytheranderson commented 1 year ago

Closing due to lack of activity.