GithubHelp home page GithubHelp logo

blaschkesantalo's Introduction

Computing Blaschke Santalo Diagrams using Centroidal Voronoi Tessellations

Matlab Codes for generating Blaschke Santalo diagrams related to the paper: The numerical approximation of Blaschke-Santalo diagrams using Centroidal Voronoi Tessellations by B. Bogosel, G. Buttazzo and E. Oudet. If you use the code in your work, please give credit by citing the paper and this Github repository.

The library Geogram is needed to run the code. If possible, it should be compiled to use more than the default 6 digits of precision when writing to files. The file mesh_io.cpp needs to be modified accordingly. The Matlab routine fmincon is used, therefore the Matlab Optimization toolbox is required.

Make sure the correct path to the routine compute_RVD is set in VoronoiGeogram.m. Make sure the Matlab path contains the folder and the contents of the subfolders AlgebraicExample, GeometricExample. For example run addpath(genpath(pwd)) in the main folder. ` The main files of the toolbox are as follows:

  • VoronoiGeogram.m computes a restricted Voronoi diagram. A set of points and a polygon are given as inputs.
  • BlaschkeSantaloWeb.m is used for the algebraic examples
  • RunAPWweb.m is used for the geometric ones

Check the corresponding files for typical examples of usage. Typing help file_name will give you the instructions for the three files listed above.

The code is provided without any guarantee. Since the initialization is random, sometimes the Geogram library will not be able to compute the corresponding Voronoi diagram and the algorithm will crash. Simply restart the computation, it will work most of the time.

blaschkesantalo's People

Contributors

bbogo avatar

Watchers

 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.