xw0 / spherical_voronoi_core Goto Github PK
View Code? Open in Web Editor NEWCreate Voronoi tessellation on surface of a sphere
License: MIT License
Create Voronoi tessellation on surface of a sphere
License: MIT License
Hi! Can you provide a simple test / example file on how to use this?
Thanks!
Hi,
Cool code! But is svMath.h missing?
It's included in svVoronoiCore.h but isn't in the file listing.
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
svprefix.h, svmath.h both missing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.