Cuboid
✖
Cuboid
Details and Options

- Cuboid is also known as interval, rectangle, square, cube, rectangular parallelepiped, tesseract, hypercube, orthotope, hyperrectangle, and box.
- Cuboid represents the region
where
and
.
- Cuboid[] is equivalent to Cuboid[{0,0,0}].
- CanonicalizePolyhedron can be used to convert a cuboid to an explicit Polyhedron object.
- Cuboid can be used in Graphics and Graphics3D.
- In graphics, the points pmin and pmax can be Scaled, ImageScaled, Offset, and Dynamic expressions.
- Graphics rendering is affected by directives such as FaceForm, EdgeForm, Opacity, and color.

Examples
open allclose allBasic Examples (5)Summary of the most common use cases

https://wolfram.com/xid/0bdo648n1-poi6w


https://wolfram.com/xid/0bdo648n1-xi5uq


https://wolfram.com/xid/0bdo648n1-kpxblr


https://wolfram.com/xid/0bdo648n1-84fmk


https://wolfram.com/xid/0bdo648n1-jnnwyy


https://wolfram.com/xid/0bdo648n1-errv1m

Scope (21)Survey of the scope of standard use cases
Graphics (11)
Specification (3)

https://wolfram.com/xid/0bdo648n1-jeocjz


https://wolfram.com/xid/0bdo648n1-v9245o

A cuboid parallel to each axis:

https://wolfram.com/xid/0bdo648n1-g4ux8r

Short form for a unit cube cornered at the origin:

https://wolfram.com/xid/0bdo648n1-gsjlwb

Styling (5)
Color directives specify the face colors of cuboids:

https://wolfram.com/xid/0bdo648n1-bi6d9l

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

https://wolfram.com/xid/0bdo648n1-cjf4xd

Different properties can be specified for the front and back of faces using FaceForm:

https://wolfram.com/xid/0bdo648n1-sa7ne

Cuboid with different specular exponents:

https://wolfram.com/xid/0bdo648n1-d1tyd0


https://wolfram.com/xid/0bdo648n1-ca9zt

Opacity specifies the face opacity:

https://wolfram.com/xid/0bdo648n1-v6995

Regions (10)
Embedding dimension is the dimension of the space in which the cuboid lives:

https://wolfram.com/xid/0bdo648n1-y220

Geometric dimension is the dimension of the shape itself:

https://wolfram.com/xid/0bdo648n1-bx9tom


https://wolfram.com/xid/0bdo648n1-c7lq97

https://wolfram.com/xid/0bdo648n1-f70gib

Get conditions for point membership:

https://wolfram.com/xid/0bdo648n1-2p4iz


https://wolfram.com/xid/0bdo648n1-se0twe

https://wolfram.com/xid/0bdo648n1-e06l44


https://wolfram.com/xid/0bdo648n1-gwq4b4


https://wolfram.com/xid/0bdo648n1-oknxhk


https://wolfram.com/xid/0bdo648n1-oc6hy

https://wolfram.com/xid/0bdo648n1-bruj1e

The equidistance contours for a cuboid:

https://wolfram.com/xid/0bdo648n1-lk4lze


https://wolfram.com/xid/0bdo648n1-cybvpc

https://wolfram.com/xid/0bdo648n1-b7y6q0


https://wolfram.com/xid/0bdo648n1-d7g53y

https://wolfram.com/xid/0bdo648n1-mtue

Nearest points to an enclosing sphere:

https://wolfram.com/xid/0bdo648n1-e29k5d

https://wolfram.com/xid/0bdo648n1-5ksoo8

https://wolfram.com/xid/0bdo648n1-uv1cfm


https://wolfram.com/xid/0bdo648n1-hycz8p


https://wolfram.com/xid/0bdo648n1-dym4fu

https://wolfram.com/xid/0bdo648n1-i3tfrr


https://wolfram.com/xid/0bdo648n1-l3exhn

Integrate over a cuboid region:

https://wolfram.com/xid/0bdo648n1-fivgav

https://wolfram.com/xid/0bdo648n1-banwkr

Optimize over a cuboid region:

https://wolfram.com/xid/0bdo648n1-nf9ton

https://wolfram.com/xid/0bdo648n1-hyz4dq

Solve equations in a cuboid region:

https://wolfram.com/xid/0bdo648n1-bximqe

https://wolfram.com/xid/0bdo648n1-cn6ygq

Applications (8)Sample problems that can be solved with this function
Define a cuboid region by length, width, and height:

https://wolfram.com/xid/0bdo648n1-cep5j8

https://wolfram.com/xid/0bdo648n1-8j3mws


https://wolfram.com/xid/0bdo648n1-6yafj7

Total mass for a cuboid region with density given by :

https://wolfram.com/xid/0bdo648n1-h2ora

https://wolfram.com/xid/0bdo648n1-p48pf6

Find the mass of ethanol in a cuboid:

https://wolfram.com/xid/0bdo648n1-u48x65

https://wolfram.com/xid/0bdo648n1-6bgb0m


https://wolfram.com/xid/0bdo648n1-6fqwu0

Mass of ethanol in the cuboid:

https://wolfram.com/xid/0bdo648n1-8she50

Create a bounding box from RegionBounds:

https://wolfram.com/xid/0bdo648n1-qi3v3e

https://wolfram.com/xid/0bdo648n1-xtn5yp

https://wolfram.com/xid/0bdo648n1-e0g9la
Compute the difference in Volume:

https://wolfram.com/xid/0bdo648n1-na8g4o


https://wolfram.com/xid/0bdo648n1-gf19ex


https://wolfram.com/xid/0bdo648n1-hjiwd

https://wolfram.com/xid/0bdo648n1-89fpz

Show a sequence of steps in the evolution of a 3D cellular automaton:

https://wolfram.com/xid/0bdo648n1-ohujb

Use as a simple way to visualize volumes:

https://wolfram.com/xid/0bdo648n1-gyp148

https://wolfram.com/xid/0bdo648n1-h3vc45


https://wolfram.com/xid/0bdo648n1-j04i9t

Properties & Relations (8)Properties of the function, and connections to other functions
Use Transpose to convert Cuboid to a range specification:

https://wolfram.com/xid/0bdo648n1-85p26m

And conversely, a range specification to a Cuboid specification:

https://wolfram.com/xid/0bdo648n1-c74hf9


https://wolfram.com/xid/0bdo648n1-oi7uuo

Use Rotate to get all possible cuboids in Graphics3D:

https://wolfram.com/xid/0bdo648n1-7nna6

Polygon is a generalization of Cuboid in 2D:

https://wolfram.com/xid/0bdo648n1-qrw1uh

https://wolfram.com/xid/0bdo648n1-md2497

Rectangle is a special case of Cuboid:

https://wolfram.com/xid/0bdo648n1-nqjym6

https://wolfram.com/xid/0bdo648n1-zonlw2

Hexahedron is a generalization of Cuboid:

https://wolfram.com/xid/0bdo648n1-c1q2ki

https://wolfram.com/xid/0bdo648n1-zr79nf

ImplicitRegion can represent any Cuboid:

https://wolfram.com/xid/0bdo648n1-hw5ae3

https://wolfram.com/xid/0bdo648n1-pgs8le

Parallelepiped can represent any Cuboid:

https://wolfram.com/xid/0bdo648n1-ibvi4f

https://wolfram.com/xid/0bdo648n1-0zx4zc

Cuboid is a norm ball for the -norm:

https://wolfram.com/xid/0bdo648n1-mysp6a

https://wolfram.com/xid/0bdo648n1-b56hh2

Neat Examples (3)Surprising or curious use cases
Wolfram Research (1991), Cuboid, Wolfram Language function, https://reference.wolfram.com/language/ref/Cuboid.html (updated 2019).
Text
Wolfram Research (1991), Cuboid, Wolfram Language function, https://reference.wolfram.com/language/ref/Cuboid.html (updated 2019).
Wolfram Research (1991), Cuboid, Wolfram Language function, https://reference.wolfram.com/language/ref/Cuboid.html (updated 2019).
CMS
Wolfram Language. 1991. "Cuboid." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Cuboid.html.
Wolfram Language. 1991. "Cuboid." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Cuboid.html.
APA
Wolfram Language. (1991). Cuboid. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Cuboid.html
Wolfram Language. (1991). Cuboid. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Cuboid.html
BibTeX
@misc{reference.wolfram_2025_cuboid, author="Wolfram Research", title="{Cuboid}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Cuboid.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_cuboid, organization={Wolfram Research}, title={Cuboid}, year={2019}, url={https://reference.wolfram.com/language/ref/Cuboid.html}, note=[Accessed: 25-March-2025
]}