Octahedron

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

Examples

open all close all

Basic Examples  (3)

An octahedron:

In[1]:=
Click for copyable input
Out[1]=

A styled octahedron:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Volume and centroid:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Scope  (6)

Introduced in 2019
(12.0)