Polygon3D

Element

A polygon is a sequence of points connected by lines, with the last point connecting back to the first one. The points are given by:

  • a list of Point3D objects,
  • a list of coordinate arrays, or
  • a function returning a list of coordinate arrays.

Each two consecutive points of the list define a line.

JSXGraph does not require and does not check planarity of the polygon.

Usage (signatures)
board.create('polygon3d', [...vertices]);
Parameters
Name Type Attributes Description
vertices Point3DLike <repeatable>

The polygon's vertices.

Attributes

Own

none

Inherited

Members

Own

none

Inherited

Methods

Own

none

Inherited

Events

Own

none

Inherited

Throws

If the element cannot be constructed with the given parent objects an exception is thrown.

Type
Exception

Details

Type
JXG.Polygon3D
Source
3d/polygon3d.js, line 118

Extends