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

I spent my last week looking for a mesh generator that, given the vertices of a 3 dimensional polygon (

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743745858a4499992.html

相关推荐

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

    I spent my last week looking for a mesh generator that, given the vertices of a 3 dimensional polygon (

    6天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信