Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 3.57 KB

README.md

File metadata and controls

46 lines (32 loc) · 3.57 KB

unity-vectorfield

Unity-vectorfield is a vector field library, consisting of vector field generators on mesh and operators for them. It allows you to quick implementation of vector field algorithms on Unity, which is instantly applicable to game programming, media art creation, or physical simulation.

Features

This library is for designing various vector fields based on Halfedge structure and Discrete exterior calculus. Beware some of the original algorithms referred to here support some geometric representations, point cloud or voxel grid, but this library only supports triangulated closed surface with any genesis (meaning closed meshes with holes like torus. surface with boundaries will be supported soon). The main solvers are below, [] showing the reference number.

  • Hodge decomposition [1] - An implementation of Helmholtz-Hodge decomposition. An arbitrally tangent field is decomposed into the three orhogonal spaces. The discretization process is nicely explained in [7].

  • Trivial connections [2] - A vector transport method to compute the smoothest vector field with user input singularity points. Singularities can be placed anywhere as long as they satisfy Gauss-bonnet theorem.

  • Smooth vector field [3] -A parallel transport method. Unlike the trivial connection, this method puts globally optimal singularities automatically. Currently, the curvature-aligned fields is not implemented yet.

  • Scalar heat method [4] - A shortest distance computing method using the heat method for single or multiple-source on both flat and curved domains.

  • Vector heat method [5] - Another parallel transport using the heat method. Note that this library only implements the fundamental feature in the paper. A c++ version by the original author is here.

  • Killing vector filed [6] - A method computes an approximated version of Killig vector filed. This vector field becomes very important when you want to compute an isometric pattern on a surface.

Miscellaneous includes curvature calculation, vector field generator by solving Poisson equation on mesh, basis finder for harmonic component, basis finder for homology group, ribbon drawer, etc.

Installation

For installation, put the following address to UnitPackageManager.
https://github.com/komietty/unity-vectorfield.git?path=/Packages/VectorField

To check the samples under Assets/Samples, just clone this repo and run (tested on mac intel, apple silicon, and windows). Below are the images you will see in the samples.

References