Primitive and advanced mesh generators for the pex library