Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "simplify-mat"

Index

Functions

getTotalHausdorffDistance

  • getTotalHausdorffDistance(i: number, j: number, branch: CpNode[], hausdorffSpacing: number): number

simplifyMat

  • simplifyMat(mat: Mat, anlgeTolerance?: number, hausdorffTolerance?: number, hausdorffSpacing?: number): Mat
  • Simplifies the given MAT by replacing the piecewise quad beziers composing the MAT with fewer ones to within a given tolerance.

    Parameters

    • mat: Mat
    • Default value anlgeTolerance: number = 15

      Tolerance given as the degrees difference of the unit direction vectors at the interface between curves. A tolerance of zero means perfect smoothness is required - defaults to 15.

    • Default value hausdorffTolerance: number = 0.1

      The approximate maximum Hausdorff Distance tolerance - defaults to 0.1

    • Default value hausdorffSpacing: number = 1

      The spacing on the curves used to calculate the Hausdorff Distance - defaults to 1

    Returns Mat

Generated using TypeDoc