Class TriangularGeometry


public class TriangularGeometry extends AbstractLattice
Triangular (hexagonal) lattice geometry supporting periodic or fixed boundaries.
  • Constructor Details

    • TriangularGeometry

      public TriangularGeometry(EvoLudo engine)
      Create a triangular (hexagonal tiling) geometry linked to the given engine.
      Parameters:
      engine - EvoLudo pacemaker
  • Method Details

    • parse

      public boolean parse(String arg)
      Configure the triangular geometry. Supports boundary flags and optional explicit connectivity (defaults to 3).
      Overrides:
      parse in class AbstractGeometry
      Parameters:
      arg - the argument string without the geometry key
      Returns:
      true if parsing succeeded, false if invalid
    • init

      public void init()
      Generates a triangular regular lattice (degree \(3\))—sometimes called a hexagonal tiling when interpreted as dual to the honeycomb lattice. Supports optional self-links (connectivity 1) and fixed boundaries.
      Specified by:
      init in class AbstractGeometry
    • checkSettings

      protected boolean checkSettings()
      Description copied from class: AbstractGeometry
      Hook for subclasses to implement geometry specific checks.
      Overrides:
      checkSettings in class AbstractGeometry
      Returns:
      true if adjustments require a reset