Add prim_type argument to Mesh::from
Add prim_type argument to create_mesh

I think rendering different primitive types is common enough to justify
adding this argument to create_mesh. This has the added benefit of
clearly showing users that learn from the examples how the primitive
type can be set.