Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a convex polygon. The vertices used to initialize a polygon must be coplanar and form a convex loop.

Each convex polygon has a shared property, which is shared between all polygons that are clones of each other or were split from the same polygon. This can be used to define per-polygon properties (such as surface color)

Hierarchy

  • Polygon

Index

Constructors

Properties

Methods

Constructors

  • Initializes the polygon

    Parameters

    • vertices: Vertex[]

      The vertices of the polygon

    • shared: any

      The properties shared across all polygons

    Returns Polygon

Properties

plane: Plane

A plane formed from the vertices of the polygon

shared: any

Properties that are shared across all polygons

vertices: Vertex[]

Vertices of the polygon

Methods

  • Clones, or makes a deep copy, or the polygon

    Returns Polygon

  • flip(): void
  • Flips the faces of the polygon

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme