cube

FV = cube(r=1.0; radius=1.0, origin=(0.0, 0.0, 0.0))::GMTfv

Create a cube mesh with radius r.

Args

  • r: the radius of the enclosing sphere.

Kwargs

  • radius: the keyword radius is an alternative to the positional argument r.

  • origin: A tuple of three numbers defining the origin of the body. Default is (0.0, 0.0, 0.0).

Returns

A GMTfv FacesVertices object.

Example

Create a cube using the default values.

using GMT

FV = cube();
viz(FV)

See Also

dodecahedron, icosahedron, octahedron, replicant, sphere, tetrahedron, torus,