GithubHelp home page GithubHelp logo

lukas-toenne / voronoi_tools Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 14.53 MB

Experimental Blender addon for generating Delaunay triangulation and Voronoi meshes on spheres

License: MIT License

Python 100.00%

voronoi_tools's People

Contributors

lukas-toenne avatar lukastoennems avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

voronoi_tools's Issues

Implement alembic export operator for mesh sequences

Write mesh data to alembic files instead of creating a mesh object directly. This allows longer mesh sequences without requiring a new data block for each mesh. Alembic file can then be re-imported through the standard modifier for playback.

Should be possible by using the existing alembic export operator:

  1. Create a depsgraph update or frame change handler that runs after scene changes, but before the abc operator.
    https://docs.blender.org/api/2.82/bpy.ops.wm.html#bpy.ops.wm.alembic_export
  2. In the handler: Create mesh data in the exported object with the triangulator, based on point data for the current frame.
  3. Run standard alembic operator over a frame range.

Implement point repetition more efficiently

Currently the triangulator duplicates points for creating tileable patterns, which creates 9x the amount of points. Tileability can be ensured more efficiently by wrapping the point set when reaching the boundary:

  1. Sweep-hull would create a sorted list including repeated points, mapping each to the original point index and storing the distance. Convex hull is only extended to positive-repetition points and then stops. Vertices are created on-the-fly when extending the convex hull to avoid adding unused vertices.
  2. Edge-flipping edges also takes wrapped geometry into account. Boundary edges can now be flipped, possibly adding a new vertex in positive repetition. Affected edges also apply to the original data by wrapping.
  3. Voronoi cells take wrapped triangles into account for creating loops on boundary verts.

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.