Skip to main content

Type Alias: CNFloat

CNFloat = object

Defined in: simulation/types.ts:33

a float represents a warp or weft float within the cloth. In code, a float is anchored by two ACNs id: a unique id to this float (also within the float array) left: the left side or top edge of the float. weft float left id's will be 0, warp float left ids will be 2 right: the right or bottom edge of the float. ids will be 1 for weft floats and 3 for warp floats. face: the side upon which this float (warp floats are true, weft is false) edge: not sure blocking: a reference to the id of the float id that restricts the movement of this float down the cloth.

Properties

blocking

blocking: number[]

Defined in: simulation/types.ts:39


edge

edge: boolean

Defined in: simulation/types.ts:38


face

face: boolean | null

Defined in: simulation/types.ts:37


id

id: number

Defined in: simulation/types.ts:34


left

left: CNIndex

Defined in: simulation/types.ts:35


right: CNIndex

Defined in: simulation/types.ts:36