Navigation
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 keywordradius
is an alternative to the positional argumentr
.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,
© GMT.jl. Last modified: March 07, 2025. Website built with Franklin.jl and the Julia programming language.
These docs were autogenerated using GMT: v1.27.1