AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: drawCylinder

drawCylinder(r, h) draws a cylinder of radius r > 0 and height h > 0 in the current 3D visualization window. The cylinder will have the z-axis as its symmetry axis and will occupy the region z ∈ [0, h] around it.

drawCylinder(v, r, h) draws a cylinder of radius r > 0 and height h > 0 in the current 3D visualization window. The cylinder will be directed in the z axis and will have the midpoint of its bottom plane at v ∈ R^3, so that it will occupy the vertical region z ∈ [v_3, v_3 + h].

drawCylinder(v, r, h, s) draws a cylinder of radius r > 0 and height h > 0 in the current 3D visualization window. The cylinder will be directed in the z axis and will have the midpoint of its bottom plane at v ∈ R^3, so that it will occupy the vertical region z ∈ [v_3, v_3 + h]. The cylinder is draws using the style (CSS) s.

Example: drawCylinder(❨0, 0, 0❩, 3.00, 5, "colour:gray")
         drawCylinder(❨0, 0, 0❩, 3.01, 5, "colour:red")