pyransame

PYthon RAndom SAmpling for MEshes

MIT License

Downloads
102
Stars
12

pyransame

PYthon RAndom SAmpling for MEshes

Documentation

Utilities for choosing random samples of points within cells of PyVista meshes. This package does not choose random points that define the mesh itself, rather random points on 0D vertices, 1D lines, 2D surfaces or in 3D volumes are sampled.

All linear[^1] cells from vtk are supported, except for vtkConvexPointSet.

[^1]: Linear here means not inheriting from vtkNonLinearCell.

Random sampling on a 2D surface

Random sampling in a 3D volume