WOLFRAM

Cuboid[pmin]

represents a unit hypercube with its lower corner at pmin.

Cuboid[pmin,pmax]

represents an axis-aligned filled cuboid with lower corner pmin and upper corner pmax.

Details and Options

Examples

open allclose all

Basic Examples  (5)Summary of the most common use cases

A unit cuboid:

Out[1]=1

Two unit cuboids:

Out[1]=1

Cuboids with different sizes:

Out[1]=1

Differently styled cuboids:

Out[1]=1

Volume and centroid:

Out[1]=1
Out[2]=2

Scope  (21)Survey of the scope of standard use cases

Graphics  (11)

Specification  (3)

A unit cube:

Out[2]=2

A unit square:

Out[2]=2

A cuboid parallel to each axis:

Out[1]=1

Short form for a unit cube cornered at the origin:

Out[1]=1

Styling  (5)

Color directives specify the face colors of cuboids:

Out[1]=1

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

Out[1]=1

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

Out[1]=1

Cuboid with different specular exponents:

Out[1]=1

White cuboid that glows red:

Out[2]=2

Opacity specifies the face opacity:

Out[1]=1

Coordinates  (3)

Use Scaled coordinates:

Out[1]=1

Specify scaled offsets from the ordinary coordinates:

Out[1]=1

Points can be Dynamic:

Out[1]=1

Regions  (10)

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

Out[1]=1

Geometric dimension is the dimension of the shape itself:

Out[2]=2

Membership testing:

Out[2]=2

Get conditions for point membership:

Out[3]=3

Volume:

Out[2]=2

Centroid:

Out[3]=3
Out[4]=4

Distance from a point:

Out[2]=2

The equidistance contours for a cuboid:

Out[3]=3

Signed distance from a point:

Out[2]=2

Nearest point in the region:

Out[2]=2

Nearest points to an enclosing sphere:

Out[5]=5

A cuboid is bounded:

Out[1]=1
Out[3]=3

Find its range:

Out[4]=4

Integrate over a cuboid region:

Out[2]=2

Optimize over a cuboid region:

Out[2]=2

Solve equations in a cuboid region:

Out[2]=2

Applications  (8)Sample problems that can be solved with this function

Define a cuboid region by length, width, and height:

Compute its volume:

Out[2]=2

Visualize some instances:

Out[3]=3

Total mass for a cuboid region with density given by :

Out[2]=2

Find the mass of ethanol in a cuboid:

Density of ethanol:

Out[2]=2

Volume of cuboid:

Out[3]=3

Mass of ethanol in the cuboid:

Out[4]=4

Create a bounding box from RegionBounds:

Compute the bounding box:

Compute the difference in Volume:

Out[4]=4

Visualize the bounding box:

Out[5]=5

A simple 3D bar chart:

Out[2]=2

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

Out[1]=1

Use as a simple way to visualize volumes:

Out[2]=2

Hyperboloids:

Out[1]=1

Properties & Relations  (8)Properties of the function, and connections to other functions

Use Transpose to convert Cuboid to a range specification:

Out[1]=1

And conversely, a range specification to a Cuboid specification:

Out[2]=2
Out[3]=3

Use Rotate to get all possible cuboids in Graphics3D:

Out[1]=1

Polygon is a generalization of Cuboid in 2D:

Out[2]=2

Rectangle is a special case of Cuboid:

Out[2]=2

Hexahedron is a generalization of Cuboid:

Out[2]=2

ImplicitRegion can represent any Cuboid:

Out[2]=2

Parallelepiped can represent any Cuboid:

Out[2]=2

Cuboid is a norm ball for the -norm:

Out[2]=2

Neat Examples  (3)Surprising or curious use cases

Random cuboid collections:

Out[1]=1

Sweep a cuboid around an axis:

Out[1]=1

A pyramid with random color cubes:

Out[1]=1
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).

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 ]}

@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 ]}

@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 ]}