Hi everybody!
I am excited to share that my first Python package geoparticle is released today.
Particles of specified geometries are typically created by the lattice command in LAMMPS, which can lead to rough surfaces when the particle spacing is not small enough. However, too small spacing can result in too many particles and thus increase the computational cost.

The case is the same when one creates atoms based on an external STL file (an example STL file exported by COMSOL is shown below):

To resolve this problem, I developed a Python package geoparticle for easy construction of geometries where smooth surfaces are required. Miscellaneous geometries are provided, including 1D geometries (lines and curves):

2D geometries (rectangles and circles):

3D geometries (blocks, cylinders, tori, and spheres):

all of which can be surface, thick shells, or filled bodies.
Diverse operations are also provided, including translation, mirror, rotation, stack, clipping, union, intersection, and subtraction.

Some utility functions are also provided.
I really hope this package will be useful to the community.
Useful links:
GitHub repository: GitHub - Jasmine969/geoparticle: A Python programme for particle-based geometry construction
PyPI page: geoparticle · PyPI
Regards,
Hong Zhu