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: 2 months ago
JSON representation
Primitive mesh builder for Unity.
- Host: GitHub
- URL: https://github.com/mattatz/unity-mesh-builder
- Owner: mattatz
- License: mit
- Created: 2016-11-17T10:21:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-26T13:06:31.000Z (almost 4 years ago)
- Last Synced: 2024-10-23T07:54:33.294Z (3 months ago)
- Language: C#
- Homepage:
- Size: 3.21 MB
- Stars: 111
- Watchers: 11
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity3d - unity-mesh-builder - Primitive mesh builder for Unity. (Open Source Repositories / Meshes)
- awesome-unity-open-source-on-github - unity-mesh-builder - Primitive mesh builder (Builder)
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
- RingAnother 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