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.
Merge pull request #250 from hannobraun/primitive-arg

Expose primitive type through create_mesh