Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "get-branches"

Index

Functions

Functions

getBranches

  • getBranches(cpNode: CpNode, tolerance?: number): CpNode[][]
  • Traverses all edges (depth first) of the given MAT tree starting at the given vertex (represented by a CpNode). Returns the result as an array of smooth branches, where smoothness is total or within a given tolerance.

    Parameters

    • cpNode: CpNode

      Any CpNode representing the start vertex.

    • Default value tolerance: number = defaultTolerance

      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.

    Returns CpNode[][]

Generated using TypeDoc