最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

matlab - Voronoi mesh for a 3D polygon - Stack Overflow

programmeradmin1浏览0评论

I spent my last week looking for a mesh generator that, given the vertices of a 3 dimensional polygon (such as a cube or a tetrahedron or a dodecahedron and so on) and the number of points (internal to the polygon) creates a voronoi decomposition of the polygon and in outut it gives the vertices of the voronoi cells and a matrix that contains the vertex indices of every cell (i.e. on the i-th row there are listed the indices of the vertices of the i-th voronoi cell).

I know that there exists the library voro++ that can be used for this porpouse, the problem is that I really have zero exerience in C++ and gnuplot, so that would not be the most suitable choice for me. Moreover I am currently working on MATLAB.

In MATLAB I found the following add-on which can generate a voronoi mesh of a cube, of a sphere and a cylinder, but does not work really well, especially when trying to generate a sequence of meshes with the parameter edgeSize that is decreasing (look at the example for the function createVoronoi3dFromMesh).

In Python, there is the pyvoro repository that, since it's based on voro++, should be able to do what I need, but I am unable to use it on Google Colab.

Moreover, it looks like there are lots of packages for generating the voronoi cells inside a cuboid but not for a general polygon. So I wanna ask if someone has a package or functions or software that can help me.

发布评论

评论列表(0)

  1. 暂无评论