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 allScope (7)
Graphics (4)
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:
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