Options
All
  • Public
  • Public/Protected
  • All
Menu

@thi.ng/geom-subdiv-curve

Index

Variables

Const SUBDIV_CHAIKIN_CLOSED

SUBDIV_CHAIKIN_CLOSED: SubdivKernel = ...

Chaikin subdivision scheme for closed curves.

Const SUBDIV_CHAIKIN_OPEN

SUBDIV_CHAIKIN_OPEN: SubdivKernel = ...

Chaikin subdivision scheme for open curves.

Const SUBDIV_CUBIC_CLOSED

SUBDIV_CUBIC_CLOSED: SubdivKernel = ...

Cubic bezier subdivision scheme for closed curves.

Const SUBDIV_MID_CLOSED

SUBDIV_MID_CLOSED: SubdivKernel = ...

Splits each curve / line segment into halves at midpoint. Version for closed curves.

Const SUBDIV_MID_OPEN

SUBDIV_MID_OPEN: SubdivKernel = ...

Splits each curve / line segment into halves at midpoint. Version for open curves.

Const SUBDIV_THIRDS_CLOSED

SUBDIV_THIRDS_CLOSED: SubdivKernel = ...

Splits each curve / line segment into 3 parts at 1/3 and 2/3. Version for open curves.

Const SUBDIV_THIRDS_OPEN

SUBDIV_THIRDS_OPEN: SubdivKernel = ...

Splits each curve / line segment into 3 parts at 1/3 and 2/3. Version for open curves.

Functions

Const kernel2

  • kernel2(__namedParameters: number[], __namedParameters: number[]): (__namedParameters: ReadonlyVec[]) => Vec[]
  • HOF subdiv kernel function for computing 2 split points from 2 source points, using weighted summation (thi.ng/vectors/addW2)

    Parameters

    • __namedParameters: number[]
    • __namedParameters: number[]

    Returns (__namedParameters: ReadonlyVec[]) => Vec[]

      • (__namedParameters: ReadonlyVec[]): Vec[]
      • Parameters

        • __namedParameters: ReadonlyVec[]

        Returns Vec[]

Const kernel3

  • kernel3(__namedParameters: number[], __namedParameters: number[]): (__namedParameters: ReadonlyVec[]) => Vec[]
  • HOF subdiv kernel function for computing 2 split points from 3 source points, using weighted summation (thi.ng/vectors/addW3)

    Parameters

    • __namedParameters: number[]
    • __namedParameters: number[]

    Returns (__namedParameters: ReadonlyVec[]) => Vec[]

      • (__namedParameters: ReadonlyVec[]): Vec[]
      • Parameters

        • __namedParameters: ReadonlyVec[]

        Returns Vec[]

Const kernel5

  • kernel5(__namedParameters: number[], __namedParameters: number[]): (__namedParameters: ReadonlyVec[]) => Vec[]
  • HOF subdiv kernel function for computing 2 split points from 5 source points, using weighted summation (thi.ng/vectors/addW5)

    Parameters

    • __namedParameters: number[]
    • __namedParameters: number[]

    Returns (__namedParameters: ReadonlyVec[]) => Vec[]

      • (__namedParameters: ReadonlyVec[]): Vec[]
      • Parameters

        • __namedParameters: ReadonlyVec[]

        Returns Vec[]

Const subdivide

  • subdivide(pts: ReadonlyVec[], __namedParameters: SubdivKernel, iter?: number): ReadonlyVec[]

Generated using TypeDoc