Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "find-mats"

Index

Variables

Private _debug_

_debug_: MatDebug

Functions

Private ascendingByTopmostPoint

  • ascendingByTopmostPoint(loopA: Loop, loopB: Loop): number

findMats

  • findMats(bezierLoops: number[][][][], additionalPointCount?: number): Mat[]
  • Find the Medial Axis Transforms (MATs) from the given array of bezier loops representing shape boundaries.

    Parameters

    • bezierLoops: number[][][][]

      An array of (possibly intersecting) loops with each loop representing one or more piecewise smooth closed curves (i.e. shapes). Each loop consists of an array of beziers represented by an array of control points with 2,3 or 4 elements corresponding to linear, quadratic and cubic beziers respectively. Each point is a two-element array (ordered pair), the first of which is the x-coordinate and the second the y-coordinate.

    • Default value additionalPointCount: number = 3

      Additional points per bezier where a MAT circle will be added. Defaults to 3.

    Returns Mat[]

Private findPartialMat

  • findPartialMat(loops: Loop[], xMap: Map<number[][], object>, additionalPointCount?: number): Mat
  • Parameters

    • loops: Loop[]
    • xMap: Map<number[][], object>
    • Default value additionalPointCount: number = 3

    Returns Mat

Generated using TypeDoc