jeudi 23 juin 2022

Random surface shape over a random point distribution in python

I have this random point distribution:


import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from random import shuffle

x0 = list(range(-100,100))
y0 = list(range(-100,100))
z0 = list(range(-100,100)) 


shuffle(x0)
shuffle(y0)
shuffle(z0)


figure = plt.figure()
axis = Axes3D(figure)

axis.scatter(x0,y0,z0)

I need to "cut" the distribution in randomly generated surfaces over this distrution, then save the points on the surface on an array or list and visualize the surface. I have tried to cut it with planes (as you can represent isolines in a 3D surface), but I need a rough surface

Thank you!




Aucun commentaire:

Enregistrer un commentaire