Code covered by the BSD License  

Highlights from
sphere without poles

5.0

5.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 5.58 KB File ID: #25711
image thumbnail

sphere without poles

by Maxim Vedenyov

 

02 Nov 2009

works like sphere bult-in matlab function but result is sphere without poles.

| Watch this File

File Information
Description

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

Acknowledgements
This submission has inspired the following:
Global tsunami simulation GUI
MATLAB release MATLAB 7.8 (R2009a)
Other requirements Must work in older Matlabs
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
09 Sep 2011 Kevin Shaw

Works great. Easy to use and results look good. Thanks!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
sphere Maxim Vedenyov 02 Nov 2009 10:41:02
pole Maxim Vedenyov 02 Nov 2009 10:41:02
no poles Maxim Vedenyov 02 Nov 2009 10:41:02
sphere visuallization Maxim Vedenyov 02 Nov 2009 10:41:02
animation Maxim Vedenyov 02 Nov 2009 10:41:02

Contact us at files@mathworks.com