represents a regular octahedron centered at the origin with unit edge length.
Octahedron[l]
represents an octahedron with edge length l.
Octahedron[{θ,ϕ},…]
represents an octahedron rotated by an angle θ with respect to the z axis and angle ϕ with respect to the y axis.
Octahedron[{x,y,z},…]
represents an octahedron centered at {x,y,z}.
Octahedron
represents a regular octahedron centered at the origin with unit edge length.
Octahedron[l]
represents an octahedron with edge length l.
Octahedron[{θ,ϕ},…]
represents an octahedron rotated by an angle θ with respect to the z axis and angle ϕ with respect to the y axis.
Octahedron[{x,y,z},…]
represents an octahedron centered at {x,y,z}.
Details and Options
- Octahedron is also known as regular octahedron.
- Octahedron can be used as a geometric region and graphics primitive.
- Octahedron[] is equivalent to Octahedron[{0,0,0},1].
- Octahedron[l] is equivalent to Octahedron[{0,0,0},l].
- CanonicalizePolyhedron can be used to convert a octahedron to an explicit Polyhedron object.
- Octahedron 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 VertexNormals Automatic effective vertex normals for shading VertexTextureCoordinates None coordinates for textures
Examples
open all close allBasic Examples (3)
Graphics3D[Octahedron[]]ℛ = Octahedron[];{Graphics3D[{Pink, ℛ}], Graphics3D[{EdgeForm[Thick], ℛ}], Graphics3D[{EdgeForm[Dashed], ℛ}], Graphics3D[{EdgeForm[Directive[Thick, Dashed, Blue]], Pink, ℛ}]}ℛ = Octahedron[{1, 2, 3}, 2];Volume[ℛ]RegionCentroid[ℛ]Scope (9)
Graphics (7)
Specification (4)
Graphics3D[Octahedron[]]A unit octahedron with explicitly specified edge length:
Graphics3D[Octahedron[1], PlotRange -> 2]An octahedron with edge length 2:
Graphics3D[Octahedron[2], PlotRange -> 2]An octahedron with edge length 1/2 centered at (1/2, 1/2, 1/2):
Graphics3D[Octahedron[{1, 1, 1} / 2, 1 / 2], PlotRange -> 1.1]A unit octahedron rotated by 45° around the
axis:
Graphics3D[Octahedron[{45°, 0}], PlotRange -> 1]A unit octahedron rotated by 45° around the
axis:
Graphics3D[Octahedron[{0, 45°}], PlotRange -> 1]An octahedron of edge length 2 rotated by 45° around the
axis and 45° around the
axis:
Graphics3D[Octahedron[{45°, 45°}, 2], PlotRange -> 2]An octahedron of edge length 1 centered at (1/2, 1/2, 1/2) rotated by 45° around the
axis and 45° around the
axis:
Graphics3D[Octahedron[{1, 1, 1} / 2, {45°, 45°}, 1], PlotRange -> 2]Styling (3)
FaceForm and EdgeForm can be used to specify the styles of the faces and edges:
ℛ = Octahedron[];Graphics3D[{EdgeForm[{Thick, Dashed, Blue}], FaceForm[{Pink, Opacity[0.7]}], ℛ}, Boxed -> False]Apply a Texture to the faces:
ℛ = Octahedron[{0, 0, 0}, VertexTextureCoordinates -> Flatten[Table[{j, i / 2}, {i, 0, 1}, {j, 0, 2}], 1]];Graphics3D[{Texture[[image]], ℛ}, Lighting -> "Neutral"]Assign VertexColors to vertices:
ℛ = Octahedron[{0, 0, 0}, VertexColors -> ColorData["HTML", "ColorList"]];Graphics3D[ℛ, Lighting -> "Neutral"]Regions (2)
Embedding dimension is the dimension of the space in which the octahedron lives:
ℛ = Octahedron[];RegionEmbeddingDimension[ℛ]Geometric dimension is the dimension of the shape itself:
RegionDimension[ℛ]ℛ = Octahedron[];BoundedRegionQ[ℛ]r = RegionBounds[ℛ]Graphics3D[{{EdgeForm[White], Opacity[0.2, Yellow], Cuboid@@Transpose[r]}, ℛ},
Boxed -> False]Related Guides
History
Text
Wolfram Research (2019), Octahedron, Wolfram Language function, https://reference.wolfram.com/language/ref/Octahedron.html.
CMS
Wolfram Language. 2019. "Octahedron." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Octahedron.html.
APA
Wolfram Language. (2019). Octahedron. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Octahedron.html
BibTeX
@misc{reference.wolfram_2026_octahedron, author="Wolfram Research", title="{Octahedron}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Octahedron.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_octahedron, organization={Wolfram Research}, title={Octahedron}, year={2019}, url={https://reference.wolfram.com/language/ref/Octahedron.html}, note=[Accessed: 12-June-2026]}