Cube

Cube[]

represents a regular cube centered at the origin with unit edge length.

Cube[l]

represents a cube with edge length l.

Cube[{θ,ϕ},]

represents a cube rotated by an angle θ with respect to the z axis and angle ϕ with respect to the y axis.

Cube[{x,y,z},]

represents a cube centered at {x,y,z}.

Details and Options

• Cube is also known as regular cube.
• Cube can be used as a geometric region and graphics primitive.
• Cube[] is equivalent to Cube[{0,0,0},1].
• Cube[l] is equivalent to Cube[{0,0,0},l].
• CanonicalizePolyhedron can be used to convert a cube to an explicit Polyhedron object.
• Cube can be used in Graphics3D.
• In graphics, the points and edge lengths can be Scaled and Dynamic expressions.
• Graphics rendering is affected by directives such as FaceForm, EdgeForm, Opacity, Texture and color.
• The following options and settings can be used in graphics:
•  VertexColors Automatic vertex colors to be interpolated VertexTextureCoordinates None coordinates for textures

Examples

open allclose all

Basic Examples(3)

A cube:

A styled cube:

Volume and centroid:

Scope(7)

Graphics(4)

A single cube:

Styling(3)

FaceForm and EdgeForm can be used to specify the styles of the faces and edges:

Apply a Texture to the faces:

Assign VertexColors to vertices:

Regions(3)

Embedding dimension is the dimension of the space in which the cube lives:

Geometric dimension is the dimension of the shape itself:

Centroid:

A cube is bounded:

Find its range:

Wolfram Research (2019), Cube, Wolfram Language function, https://reference.wolfram.com/language/ref/Cube.html.

Text

Wolfram Research (2019), Cube, Wolfram Language function, https://reference.wolfram.com/language/ref/Cube.html.

CMS

Wolfram Language. 2019. "Cube." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Cube.html.

APA

Wolfram Language. (2019). Cube. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Cube.html

BibTeX

@misc{reference.wolfram_2024_cube, author="Wolfram Research", title="{Cube}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Cube.html}", note=[Accessed: 12-September-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_cube, organization={Wolfram Research}, title={Cube}, year={2019}, url={https://reference.wolfram.com/language/ref/Cube.html}, note=[Accessed: 12-September-2024 ]}