Creates a new instance of a named 3D solid.
solid(s, [a[, f[, d[, α]]]])
s is a string
a is a three-dimensional real vector
f is a three-dimensional real vector
d is a three-dimensional real vector
α is a real number
solid(s) creates a new instance of the named 3D solid
solid(s, a, f, d, α) translates the object by
a, scales it by
diag(f), aligns its axis with
d, and rotates it an amount
α about its axis.
a defaults to
❨0, 0, 0❩,
❨1, 1, 1❩,
❨0, 0, 1❩, and
The object is shown in the current scene and a reference to the object is returned.
AdjustVisual function can be used to adjust the appearance of the solid. See Visual settings for a list of applicable settings.
At least the following solids are available:
Some of these may offer parameters that can be set using
AdjustVisual. For instance, the cylinder can be customised with a positive inner radius (producing a hollow, solid tube with a finite wall thickness) and a sector angle.
s ≔ solid("teapot"); AdjustVisual(s, "color": "coral")