sphere without poles

版本 1.0.0.0 (5.6 KB) 作者: Maxim Vedenyov
works like sphere bult-in matlab function but result is sphere without poles.
1.1K 次下载
更新时间 2009/11/2

查看许可证

http://simulations.narod.ru/

Main function is sphere_wp.m . Without any parameters it will plot sphere with default parameters. sphere_wp.m use only random_unit_vector.m. Other m-files not need, it is tests:
compare_spheres.m - compare to functions sphere_wp and sphere
animation_example.m - show how to use sphere_wp.m for animation
sphere_wp_movie.m - makes movie that show iteration process.

also sphere_wp use convhulln bult-in matlab function to make triangles.

type help sphere_wp to see sphere_wp usage.

sphere_wp - plot sphere or return geometry info
use as matlab built in function "shere"
it makes sphere without poles
shere consist of triangles

sphere_wp is better then sphere because it has uniformly distributed vertecies see screenshot here or run compare_spheres.m you can see that sphere gives poles you can see it as some point. Also there are two reflections of two lights and spheres gives different reflections spots. sphere_wp does not have this disadvantages, both spots same.

sphere_wp genretes random vertecies on unit sfere then use iterations to makes uniform distribution of vertecies, see iteration process:
http://www.youtube.com/watch?v=NRletxzxGB8

引用格式

Maxim Vedenyov (2024). sphere without poles (https://www.mathworks.com/matlabcentral/fileexchange/25711-sphere-without-poles), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Animation 的更多信息
致谢

参考作品: random unit vector generator

启发作品: Global tsunami simulation GUI

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0