convertChildDetailToChainDetail MethodStatic

Given a parent chain, convert the corresponding child details in the specified pairs.

  • Converted details refer to the chain's global parameterization instead of the child's.
  • It is assumed that for all i >= index0, pairs[i].detailA.curve is a child of chainA (similarly for chainB).

convertChildDetailToChainDetail(pairs: CurveLocationDetailPair[], index0: number, chainA?: CurveChainWithDistanceIndex, chainB?: CurveChainWithDistanceIndex, compressAdjacent?: boolean): CurveLocationDetailPair[]

@returns the converted array

Parameter Type Description
pairs CurveLocationDetailPair[] array of pairs to convert in place
index0 number convert details of pairs in the tail of the array, starting at index0
chainA CurveChainWithDistanceIndex convert each specified detailA to the global parameterization of chainA
chainB CurveChainWithDistanceIndex convert each specified detailB to the global parameterization of chainB
compressAdjacent boolean whether to remove adjacent duplicate pairs after conversion

Returns - CurveLocationDetailPair[]

the converted array

Defined in

Last Updated: 29 April, 2026