voronoi structure in 3 dimensions
2 ビュー (過去 30 日間)
古いコメントを表示
Hi world,
i try to draw a 3D voronoi diagramm in a cube, as in: http://www.google.fr/imgres?um=1&rlz=1C1CHMO_frFR516FR516&hl=en&biw=1777&bih=820&tbm=isch&tbnid=ZJTGBy0R1txYXM:&imgrefurl=http://rquey.users.sourceforge.net/softwares.html&docid=CWU0SON2CwbUXM&imgurl=http://rquey.users.sourceforge.net/thumbs/neper-icon.png&w=143&h=154&ei=-DypUazWAYOLhQeZ6YGgAQ&zoom=1&iact=hc&vpx=1561&vpy=240&dur=1368&hovh=123&hovw=114&tx=123&ty=54&page=1&tbnh=108&tbnw=100&start=0&ndsp=37&ved=1t:429,r:8,s:0,i:105
but i don't understand how can i make this...
i have tried this code: clear all;close all;clc; X=[0 0 0;1 0 0;1 1 0;0 1 0;0 0 1;1 0 1;1 1 1;0 1 1]; [V,C] = voronoin(X,{'Qbb','QJ'}); K = convhulln(V,{'Qt','Pp'}); patch('faces', K, 'Vertices',V)
but i don't really understand...
can you
2 件のコメント
Chris Argy
2013 年 7 月 15 日
Its a bit more complicated than that. You need to bound the 3D Voronoi and that is done by reflecting the each surface and edge of the cube. Create some points inside your initial square in 2D. Reflect the points in respect to the square's edge. Finally you will have your initial points plus another 4 clusters around them. Then for all the points apply the command and that will bind the Voronoi.
Kalyan Bhattacharjee
2014 年 3 月 3 日
Hi Chris,
For 3D Voronoi...could you please elaborate on how to take reflection point set about the edge. I am trying to accomplish the above simulation pic given by 21did21 there.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Voronoi Diagram についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!