Octave graphic add-on, Octaviz



česky

2.8 Hyperboloid(one-piece), hyperboloid2 (two-pieces), shell



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


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

Parameters of function:
Parameters m,n,p describe centre of one-piece hyperboloid in axes x,y,z.
Parameters a,b,c describe parameters of one-piece hyperboloid.
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:
hyperboloid([0 10],[0 0],[0 0],[3.5 2],[2.3 1.5],[4.3 3.8],[50 50]);





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


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

Parameters of function:
Parameters m,n,p describecentre of two-pieces hyperboloid in axces x,y,z.
Parameters a,b,c describe parameters of two-pieces hyperboloid.
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:
hyperboloid2([0 10],[0 0],[0 0],[3.5 2],[2.3 1.5],[4.3 3.8],[50 50]);





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


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

Parameters of function:
Parametry m,n,p describe centres of shell in axes x,y,z.
Parametr r describe parameter of shell.
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:
shell([0 12],[0 0],[0 0],[1.2 1.3],[30 30]);



download m-file



<<< 2.7 Hellipticparaboloid), hexaedron, horn 2.9 Sphere2, star, torus >>>

© 2008 David Prokop