Coder Social home page Coder Social logo

voronoi.jl's Introduction

Build Status

Build status

Voronoi

A wrapper for the Boost Voronoi library, allowing creation of Voronoi diagrams for points and straight line segments.

The only function in the library is get_edges which takes a vector of Points and a vector of Segments with integer coordinates.

It returns Vector{Vertex}, Vector{Edge}. The vertices have Float64 coordinates.

Edge.start_index and Edge.end_index are indices into the vertex vector. They can be 0 if the edge is unbounded at that end.

Edge.site1 and Edge.site2 are indices into the array of points, followed by the array of segments. I.e. if there are 3 points and 5 segments, site1 = 6 means that the first Voronoi region of this edge belongs to the third segment.

Edge.is_primary specifies whether the edge is a boundary between two primary regions (points or segments). An edge that is not primary is a boundary between a segment and one of its own endpoints (See Voronoi basic tutorial).

License

Available under the Boost Software License - Version 1.0. See: LICENSE.md.

voronoi.jl's People

Contributors

jminardi avatar jonvoxel8 avatar maxvoxel8 avatar staticfloat avatar

Watchers

 avatar  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.