Options
All
  • Public
  • Public/Protected
  • All
Menu

Stores a polytope in its "combinatorial" representation: as an array of elements sorted by rank. The first entry is the array of Points, subsequent entries store the elements as the sets of the indices their facets are stored in. This representation mirrors closely the OFF file format.

Hierarchy

Index

Constructors

constructor

Properties

construction

construction: ConstructionNode<unknown>

dimensions

dimensions: number

elementList

elementList: ElementList

spaceDimensions

spaceDimensions: number

Readonly type

type: PolytopeType = PolytopeType.C

Methods

circumcenter

  • circumcenter(): Point | null
  • Calculates the circumcenter of the polytope.

    Returns Point | null

    Either the circumcenter of the polytope, or null if it doesn't exist.

circumradius

  • circumradius(): number

faceToVertices

  • faceToVertices(i: number): number[]
  • Converts the edge representation of the i-th face to an ordered array of vertices.

    Parameters

    • i: number

      The selected face's index.

    Returns number[]

    An array with the indices of the vertices of the i-th face in order.

getName

  • getName(): string

gravicenter

move

recenter

scale

setConstruction

setSpaceDimensions

  • setSpaceDimensions(dim: number): void
  • Makes every vertex have a set number of coordinates either by adding zeros or removing numbers.

    Parameters

    • dim: number

      The new number of coordinates for each vertex.

    Returns void

toPolytopeC

Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM