Octave graphic add-on, Octaviz



česky

2.3 Cylinder, sphere



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


This function plots a cylinder.Definition:
  • 1 cylinder - centre in [m,n,p], radius "r", high "v" a kvalita "q"; všechny veličiny jsou skalární
  • n-cylinders - centres in [m,n,p], radiuses "r" and highs "v" and qualities "q"; all values are vectors

Parameters of function:
Parameters m,n,p describe centre of the cylinder in axes x,y,z.
Parameter r describe radius of the cylinder.
Parameter v describe high of the cylinder.
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:
cylinder([0,2],[0,3.2],[0,-1.2],[2,3],[4,5],[40,50],["c","o"],[[1 0.5 0.5],0.5]);



download m-file



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


This function plots a sphere. Definition:
  • 1 koule - centre in [m,n,p], radius "r" and quality "q1" a "q2"; all values are scalar
  • n- koulí - centres in [m,n,p], radiuses "r" and qualities "q1" a "q2"; all values are vectors

Parameters of function::
Parametry m,n,p describe centre of the sphere in axes x,y,z.
Parametr r describe radius of the sphere.
Parametry q,q2 is for change compute points generating circle - q and number of generating circles - q2, so it is quality of drawing object object.
Parameters prop, val are using for change color or opacity. These parameters are optional.


Example:
sphere([0,2],[0,3.2],[0,-1.2],[2,3],[120,150],[40,50],["c","o"],[[1 0.5 0.5],0.5]);







<<< 2.2 Pyramid, pyramid2(n-sides), frustum_pyramid 2.4 Cone, Frustum_cone >>>

© 2008 David Prokop