Coder Social home page Coder Social logo

unity-delaunay's Introduction

NOT MAINTAINED

The original code kept crashing Unity, revealed internal core bugs in Unity. I tried to get Unity corp to accept / fix these, but they refused, so ... I found a better library to work with.

Use Triangle.net, the open-source C# library that's higher performance with more features. It does delaunay and voronoi.

Fork of Unity-Delaunay

This fork exists to add:

  • Issue-tracking (missing from master project)
  • More interactivity in the demo project / add missing docs to source code

I hate forking projects - big waste of time - but with no issue-tracking on upstream, I really had no choice.

Current features

Upgrades compared to upstream:

  • NOW PACKAGED AS A SINGLE .DLL FILE YOU CAN DRAG/DROP INTO UNITY
  • Demo project lets you enable/disable rendering of individual features
  • Helps you understand the definitions (undocumented in source)
  • Helps you experiment with the data structures before embedding in your own projects
  • Usage instructions!

Instructions

Running the Demo

  • Open the "demo" folder in Unity as a new Project
  • Open the "Demo" scene inside Unity (otherwise nothing will happen when you run)
  • Select the "Extended demo" object
  • Click the "re-generate" button to make a new random Voronoi
  • in the Editor view you'll now see a coloured diagram of your data
  • also you now have tickboxes to show/hide various features of the output data

Including in your own game/app

  1. In the CSharpLibrary folder, there should be a subfolder: AS3DelaunayExtended/AS3DelaunayExtended/bin/Debug
  2. ...which contains the DLL: AS3DelaunayExtended.dll
  3. Drag/drop that DLL into your Unity3D project, and Unity will automatically load + add it
  4. You can now use all the classes and features in your project
  5. NB: this DLL does NOT include the Custom Editor classes (Unity requires two DLLs if you want that)
  6. NB: this means you lose the custom buttons for "Re-generate Voronoi"; you can use the function via script/code only!

Unity-Delaunay

Voronoi diagrams, Delaunay triangulation, minimum spanning graphs, convex hull and more. Ported to C# for use in the Unity game engine from https://github.com/nodename/as3delaunay.

Delaunay Triangulation Spanning Graph Example

Features:

MIT licensed, like the original. Check out the original project page here.

unity-delaunay's People

Contributors

jceipek avatar nodename avatar amitp avatar adamgit avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.