ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: drawCone

drawCone(r, h) draws a cone of radius r > 0 and height h > 0 with the z-axis as its symmetry axis and occupying the region z ∈ [0, h] in the current 3D visualization window.

drawCone(r1, r2, h) draws a truncated cone of bottom radius r1 > 0, top radius r2 > 0, and height h > 0 with the z-axis as its symmetry axis and occupying the region z ∈ [0, h] in the current 3D visualization window.

drawCone(v, r1, r2, h) draws a truncated cone of bottom radius r1 > 0, top radius r2 > 0, and height h > 0. The midpoint of the bottom plane is v ∈ R^3, so that it occupies the vertical region z ∈ [v_3, v_3 + h].

drawCone(v, r1, r2, h, s) draws a truncated cone of bottom radius r1 > 0, top radius r2 > 0, and height h > 0. The midpoint of the bottom plane is v ∈ R^3, so that it occupies the vertical region z ∈ [v_3, v_3 + h]. s is the style (CSS) used to render the object.