public class Tetrahedron extends Model
2*sqrt(2)
, and with its vertices at corners
of the cube with vertices (±1, ±1, ±1)
.
Cube
,
Octahedron
,
Icosahedron
,
Dodecahedron
lineSegmentList, vertexList, visible
Constructor and Description |
---|
Tetrahedron()
Create a regular tetrahedron with its center at
the origin, having edge length
2*sqrt(2) ,
and with its vertices at corners of the cube with
vertices (±1, ±1, ±1) . |
Tetrahedron(boolean dual)
Create a regular tetrahedron or its dual tetrahedron
(the dual of a tetrahedron is another tetrahedron).
|
addLineSegment, addLineSegment, addVertex, setColor, setColorRandom, setRandomColors, setRandomLineSegmentColors, toString
public Tetrahedron()
2*sqrt(2)
,
and with its vertices at corners of the cube with
vertices (±1, ±1, ±1)
.public Tetrahedron(boolean dual)
https://en.wikipedia.org/wiki/Tetrahedron#Regular_tetrahedron
The combination of these two dual tetrahedrons is a stellated octahedron.
dual
- choose between the two dual tetrahedrons