Module dxf

Class 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.
    David Yazel, Marvin Froehlich (aka Qudus) [code cleaning]
    • Constructor Detail

      • Polygon

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

        public Polygon()
    • Method Detail

      • 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()
        a list of triangles
      • print

        public void print()