Creating material points for a given geometry can be done using MaterialPoints.jl package. Please see the package documentation and examples.