Octave graphic add-on, Octaviz



česky

2.9 Sphere2, star, torus



Function file: sphere2(m,n,p,r,q,prop,val)


This function plots a sphere. Definition:
  • 1 sphere - centre in [m,n,p], parameter "r" and quality "q"; all values are scalar
  • n-spheres - centres in [m,n,p], parameters "r" and qualities "q"; all values are vectors

Parameters of function:
Parameters m,n,p describe centres of the sphere in axes x,y,z.
Parameter r describe radius of the sphere.
Parameter q is for change compute points on objects, so it is quality of drawing object.
Parameters prop, val are using for change color or opacity. These parameters are optional.


Example:
sphere2([0 6 4],[0 6 3],[0 0 0.5],[3 1 2.5],[40 20 50],["c","o","c"],[[0 0.5 1],0.1,[1 0.3 0.2]]);



download m-file



Function file: star(m,n,p,a,b,c,q,prop,val)


This function plots a star. Definition:
  • 1 star - centre in [m,n,p], parameters "a","b","c" and quallity "q"; all values are scalar
  • n-stars - centres in [m,n,p], parameters "a","b","c" and qualities "q"; all values are vectors

Parameters of function:
Parametry m,n,p describe centre of the star in axes x,y,z.
Parametry a,b,c describe parameters of the star.
Parameter q is for change compute points on objects, so it is quality of drawing object.
Parameters prop, val are using for change color or opacity. These parameters are optional.


Example:
star([0 5],[0 0],[0 0],[3 2],[2 1],[4 3],[50 50]);





Function file: torus(m,n,p,a,b,c,q,prop,val)


This function plots a torus. Definition:
  • 1 torus - centre in [m,n,p], parameter "a","b","c" and quality "q"; all values are scalar
  • n-toruses - centres in [m,n,p], parameters "a","b","c" and qualities "q"; all values are vectors

Parameters:
Parametry m,n,p describe centre of the torus in axes x,y,z.
Parametry a,b,c describe parameters of the torus.
Parameter q is for change compute points on objects, so it is quality of drawing object.
Parameters prop, val are using for change color or opacity. These parameters are optional.


Example:
torus([0 7],[0 0],[0 0],[3 2],[2 1],[1 1.5],[50 50]);





<<< 2.8 Hyperboloid(one-piece), hyperboloid2 (two-pieces), shell 2.10 Toupie, trumpet >>>

© 2008 David Prokop