Module dxf

Class Polygon

java.lang.Object
org.jagatoo.util.geometry.Polygon

public class Polygon extends Object
Simple class encapsulating a set of points which define the outline of a coplanar polygon. Usually this is a triagle or a quad.
Author:
David Yazel, Marvin Froehlich (aka Qudus) [code cleaning]
  • Constructor Details

    • Polygon

      public Polygon(List<float[]> vertices)
    • Polygon

      public Polygon()
  • Method Details

    • getVertices

      public List<float[]> getVertices()
    • add

      public void add(float[] v)
    • add

      public void add(float x, float y, float z)
    • contains

      public boolean contains(float[] point)
    • getAsTriangles

      public List<Polygon> getAsTriangles()
      Returns:
      a list of triangles
    • print

      public void print()