Class Polygon

All Implemented Interfaces:
IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw
Direct Known Subclasses:
ColoredWireframePolygon, PickablePolygon, Quad, SimplePolygon

public class Polygon extends Geometry
Supports additional settings
Author:
Martin Pernollet
  • Constructor Details

    • Polygon

      public Polygon()
      Initializes an empty Polygon with face status defaulting to true, and wireframe status defaulting to false.
    • Polygon

      public Polygon(Point... points)
    • Polygon

      public Polygon(List<Point> points)
    • Polygon

      public Polygon(Color wire, Point... points)
    • Polygon

      public Polygon(Color wire, boolean wireDisplayed, Point... points)
    • Polygon

      public Polygon(Color wire, Color face, Coord3d... points)
    • Polygon

      public Polygon(Color wire, Color face)
  • Method Details

    • begin

      protected void begin(IPainter painter)
      Description copied from class: Geometry
      Invoke GL begin with the actual geometry type
      invalid @link
      GL#GL_POINTS
      ,
      invalid @link
      GL#GL_LINES
      ,
      invalid @link
      GL#GL_TRIANGLES
      ,
      invalid @link
      GL2#GL_POLYGON
      ...
      Specified by:
      begin in class Geometry