Awesome
unity-mesh-builder
Primitive mesh builders for Unity.
Usage
Mesh mesh = PlaneBuilder.Build(
5f, // width
10f, // height
2, // width segments
4 // height segments
);
Primitives
- Plane (Parametric)
- Cube
- Cylinder
- Sphere
- Icosphere (Icohedron)
- Octahedron
- Frustum
- Cone
- Torus
- Ring
Another primitives are in progress ...
Sources
- three.js - https://threejs.org/
- ProceduralPrimitives - Unity Community Wiki - http://wiki.unity3d.com/index.php/ProceduralPrimitives
- Viewports and Clipping - https://msdn.microsoft.com/en-us/library/windows/desktop/bb206341
- mattatz/Cone.cs - https://gist.github.com/mattatz/aba0d06fa56ef65e45e2