Octave graphic add-on, Octaviz



česky

2.10 Toupie, trumpet



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


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

Parameters of function:
Parameters m,n,p describe centres of toupie in axes x,y,z.
Parameter r describe parameter of toupie.
Parameter q is number of count points of cylinder, so quality of drawing objects.
Parameters prop, val are using for change color or opacity. These parameters are optional.


Example:
toupie([0 3],[0 0],[0 0],[1.5 1],[50 50]);



download m-file



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


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

Parameters of function:
Parameters m,n,p describe centre of the trumpet in axes x,y,z.
Parameter r describe parameter of the trumpet.
Parameter q is number of count points of cylinder, so quality of drawing objects.
Parameters prop, val are using for change color or opacity. These parameters are optional.


Example:
trumpet([0 3],[0 0],[0 0],[1.5 1],[50 50]);







<<< 2.9 Sphere2, star, torus 2.11 More function at once >>>

© 2008 David Prokop