Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/mattatz/unity-mesh-builder

Primitive mesh builder for Unity.
https://github.com/mattatz/unity-mesh-builder

Last synced: 3 months ago
JSON representation

Primitive mesh builder for Unity.

Lists

README

        

unity-mesh-builder
=====================

Primitive mesh builders for Unity.

![Demo](https://raw.githubusercontent.com/mattatz/unity-mesh-builder/master/Captures/Demo.png)

## Usage

```cs
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