Class PenroseTiling

java.lang.Object
micycle.pgs.commons.PenroseTiling

public class PenroseTiling extends Object
Generates a Penrose tiling of the plane.

A Java port of https://openprocessing.org/sketch/183715

Author:
Michael Carleton
  • Constructor Details

    • PenroseTiling

      public PenroseTiling(double centerX, double centerY, double radius, int divisions)
  • Method Details

    • getEdges

      public Set<PEdge> getEdges()
      Returns the edge work of the tiling.
    • getTriangles

      public processing.core.PShape getTriangles()
      Returns raw triangles from the penrose tiling. Note these are not collapsed (the tiling should consist of quadrangles).