Algosim documentation: cone

cone

Creates a new cone.

Syntax

Description

cone() creates a circular cone (quadratic surface) with radius 1 and height 1 parallel to the z axis, extending from z = 0 (apex) to z = 1.

cone(a, f, d, α) translates the cone by a, scales it by diag(f), aligns it with d, and rotates it an amount α about its axis.

Hence,

If omitted, a defaults to ❨0, 0, 0❩, f to ❨1, 1, 1❩, d to ❨0, 0, 1❩, and α to 0.

The object is shown in the current scene and a reference to the object is returned.

The AdjustVisual function can be used to adjust the appearance of the cone. See Visual settings for a list of applicable settings.

Examples

cone()

Image 1

cone(❨2, 2, 0❩, ❨1, 1, 2❩)

Image 2

cone(❨5, 5, 0❩, ❨1, 1, 5❩, ❨−1, −1, 0❩)

Image 3

Notes

To create a solid cone, use solid("cone") instead.

See also