Code Monkey home page Code Monkey logo

spherical_voronoi_core's Introduction

spherical_voronoi_core's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spherical_voronoi_core's Issues

assertion error on indHalfEdgesToCells

I've managed to compile and run your code and generate the Voroni Sphere. It is incredibly fast compared to other algorithms! Good job! Really nice implementation of the related paper.

I'm having some errors though.

indHalfEdgesToCells
Assertion failed: (common.size() == 2), function bindHalfEdgesToCells,

I've made many tests and I'm still trying to figure the problem.

I've replace the glm functions and operators but everything seems to work fine until I reach 240 sites.

Mostly I get this assertion error at:

        vector<cell_ptr> common;
        set_intersection(e->start->cells.begin(), e->start->cells.end(), e->end->cells.begin(), e->end->cells.end(), back_inserter(common));
        assert(common.size() == 2);   <---------------

but sometimes a EXC_BAD_ACCESS is happening at:

        while (potentialEdges.size() > 0)
        {
            c->halfEdges.push_back(e);
            potentialEdges.erase(find(potentialEdges.begin(), potentialEdges.end(), e)); <---------------
            e = e->next;
        }

I'm going to still try to figure that out what going on but, if you crossed a problem similar to this since you first posted the file, any help or insight would be appreciated.

Thanks

svMath missing

Hi,

Cool code! But is svMath.h missing?

It's included in svVoronoiCore.h but isn't in the file listing.

Example / test file

Hi! Can you provide a simple test / example file on how to use this?
Thanks!

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.