Skip to main content

Function: getFloatsAffectedByLifting()

getFloatsAffectedByLifting(id, all_floats, wefts, warps, limit): number[]

Defined in: simulation/simulation.ts:557

This function will virtually "lift" the float specified. If this is a warp float, it will find any other warp floats or weft floats that cross over this warp in the range of limit (to the top/bottom) and mark them to be lifted. If it is a weft float, it will find any other weft floats or warp floats that cross over this weft and mark them to be lifted.

what happens, however, is as we start separating layers, the floats may "seem" farther apart because there are so many blanks in between. We need some way to 1 to be 1 nearest neighbors instead of 1 cell.

Parameters

id

number

all_floats

object[]

wefts

number

warps

number

limit

number

Returns

number[]