Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Build

Contains methods to build specific polytopes.

Index

Functions

Const cross

Const cuploid

Const cupola

Const cupolaicBlend

  • cupolaicBlend(n: number, d?: number): PolytopeB

Const dyad

Const extrudeToPyramid

Const hypercube

Const nullitope

Const point

Const polygon

Const recticross

  • Builds a rectified cross-polytope with the specified amount of dimensions. Positioned in the standard orientation with edge length 1.

    Parameters

    • n: number

      The number of dimensions.

    Returns PolytopeB

    The resulting polytope.

Const regularPolygon

  • regularPolygon(n: number, d?: undefined | number): PolytopeB
  • Builds a regular polygon with a given edge length.

    Parameters

    • n: number

      The number of sides of the regular polygon.

    • Optional d: undefined | number

      The winding number of the regluar polygon.

    Returns PolytopeB

    The regular polygon.

Const regularPolygonG

  • regularPolygonG(n: number, d?: undefined | number): PolytopeB
  • Builds a Grünbaumian n/d star.

    todo

    Replace it by the PolytopeS version.

    Parameters

    • n: number

      The number of sides of the polygon.

    • Optional d: undefined | number

      The winding number of the polygon.

    Returns PolytopeB

    The resulting polygon.

Const semiregularPolygon

  • semiregularPolygon(n: number, d?: number, a?: number, b?: number): PolytopeB
  • Builds a semiregular polygon with n sides and "absolute turning number" d with some given edge lengths. The absolute turning number is the number d such that the sum of the angles of the polygon is π(n - 2d). The bowtie is generated by the special case of n = 4, d = 0, for lack of better parameters.

    Parameters

    • n: number

      The number of sides of the semiuniform polygon.

    • Default value d: number = 1

      The "absolute turning number", as defined above.

    • Default value a: number = 1

      The first edge length of the polygon.

    • Default value b: number = 1

      The second edge length of the polygon.

    Returns PolytopeB

    The resulting semiregular polygon.

Const simplex

Const uniformAntiprism

  • uniformAntiprism(n: number, d?: number): PolytopeB

Const verfLength

  • verfLength(n: number, d?: undefined | number): number
  • Simple auxiliary function to get the length of a regular polygon's verf.

    Parameters

    • n: number

      The number of sides of the polygon.

    • Optional d: undefined | number

      The winding number of the polygon.

    Returns number

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