Class Tetrahedron

    • Constructor Detail

      • Tetrahedron

        public 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

        public Tetrahedron​(int n1,
                           int n2)
        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).

        Add line segments fanning out from each vertex to its opposite edge.

        Parameters:
        n1 - number of lines fanning out from v0 and v1 towards the edge (v2, v3)
        n2 - number of lines fanning out from v2 and v3 towards the edge (v0, v1)
        Throws:
        IllegalArgumentException - if n1 is less than 0
        IllegalArgumentException - if n2 is less than 0
      • Tetrahedron

        public Tetrahedron​(int m0,
                           int m1,
                           int m2,
                           int m3)
        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).

        Add line segments fanning out from each vertex onto its three adjacent sides.

        Parameters:
        m0 - number of lines fanning out from v0 onto each adjacent side of the tetrahedron
        m1 - number of lines fanning out from v1 onto each adjacent side of the tetrahedron
        m2 - number of lines fanning out from v2 onto each adjacent side of the tetrahedron
        m3 - number of lines fanning out from v3 onto each adjacent side of the tetrahedron
        Throws:
        IllegalArgumentException - if m0 is less than 0
        IllegalArgumentException - if m1 is less than 0
        IllegalArgumentException - if m2 is less than 0
        IllegalArgumentException - if m3 is less than 0
    • Method Detail

      • remake

        public Tetrahedron remake​(int n,
                                  int k)
        Description copied from interface: MeshMaker
        Build an instance of the Model with new values for the number of lines of latitude and longitude while keeping all the other model parameters the same.
        Specified by:
        remake in interface MeshMaker
        Parameters:
        n - number of lines of latitude for the returned Model
        k - number of lines of longitude for the returned Model
        Returns:
        a new instance of the Model with the updated parameters