| 查看: 384 | 回复: 2 | |||
[交流]
如何对一堆点进行delauney三角形分析,但不用Matlab自带的函数delauney?
|
|
大家好,我现在初学MatlAB,有个问题难以解决,还请大家指教。 如何对一堆点进行delauney三角形分析,但不用Matlab自带的函数delauney? 之前的取点过程我已经做了 s=20; sx=s; sy=s; sz=s; dmin=1; n=1000; points=[rand(1,3).*[sx sy sz]]; d2=dmin^2; while (size(points,1)<n) point=rand(1,3).*[sx sy sz]; dist2=sum((points-repmat(point,size(points,1),1)).^2,2); if (all(dist2>d2)) points=[points;point]; end end plot3(points(:,1), points(:,2),points(:,3),'*') |
» 猜你喜欢
中国科学院物理研究所谌志国研究员团队招收2027年博士研究生
已经有6人回复
2026年中德博士后交流项目 - 新型量子和磁性材料:材料制备表征和中子散射研究
已经有12人回复
物理学I论文润色/翻译怎么收费?
已经有103人回复
26申博推荐:南京航空航天大学国际前沿院光学方向招收博士生!
已经有1人回复
如何从铁电相到顺电相。
已经有1人回复
各位大佬,求一份最新Wien2k版本作为学习用途
已经有0人回复
南科大活性流体和软物质课题组诚招2027级博士、硕士研究生和博后
已经有23人回复
瑞典林雪平大学博士后招聘|PEC Water Splitting 方向
已经有22人回复
|
谁能算出2D就万分感谢了 大家好,我现在初学MatlAB,有个问题难以解决,还请大家指教。 如何对一堆点进行delauney三角形分析,但不用Matlab自带的函数delauney? 之前的取点过程我已经做了 s=20; sx=s; sy=s; dmin=1; n=1000; points=[rand(1,2).*[sx sy]]; d2=dmin^2; while (size(points,1)<n) point=rand(1,2).*[sx sy]; dist2=sum((points-repmat(point,size(points,1),1)).^2,2); if (all(dist2>d2)) points=[points;point]; end end plot3(points(:,1), points(:,2),'*') |
2楼2017-11-09 05:53:51
3楼2017-11-16 01:41:33











回复此楼