Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 518 Bytes

File metadata and controls

1 lines (1 loc) · 518 Bytes

In this code, we first define the radius and height of the inverted cone. Then we generate random points within the boundary of the inverted cone using a uniform distribution. Next, we invert the z coordinates by subtracting them from the height of the cone. Finally, we filter out the points that are outside the inverted cone by checking if the radial distance from the center of the base is less than or equal to the radius at that height. We then visualize the distribution of particles using a 3D scatter plot.