0
votes

In PyVista, I have a mesh with a discretized distribution of points, not correlated to a function. The geometry is 3D but the mesh is a surface hexahedral mesh, where a discretized density distribution is defined. The details can be found here.

I need to carry out a random generation of spatial points, accordingly to the probability density distribution, where a single point corresponds to a specific position (x,y,z) inside a cell.

Considering the complexity of the mesh, I think that the solution is to find a way to generate the points for an arbitrary cell shape.

Any suggestions please? Thanks in advance for your time.