import type { Loop } from 'flo-boolean'; import type { PrePointOnShape } from '../point-on-shape/point-on-shape.js'; import { getCurvatureExtremaDd, controlPointLinesLength } from 'flo-bezier3'; import { toP } from '../point-on-shape/to-p.js'; /** * Get points of maximum curvature. * * @param loop * * @internal */ function getFor1ProngsOnLoop( minBezLength: number) { return function(loop: Loop) { const poss: PrePointOnShape[] = []; for (let i=0; i { const pDd = toP(ps, t); const p = pDd.map(c => c[0] + c[1]); return { curve, t, isSource: true, p, pDd } })); } return poss // keep away from edges .filter(pos => pos.t > 2**-20 && pos.t < 2**-20); } } export { getFor1ProngsOnLoop }