Skip to main content

Function: computeSimulationData()

computeSimulationData(draft, simVars, topo?, floats?, wefts?, warps?): Promise<SimulationData>

Defined in: simulation/simulation.ts:19

Generates all of the data required to simulate this draft.

Parameters

draft

Draft

required - the draft we are going to generate a simulatation from

simVars

SimulationVars

required - the variables that will control the simulation

topo?

ContactNeighborhood[]

optional - if we need not recompute the topo, you can supply it.

floats?

CNFloat[]

wefts?

WeftPath[]

optional - if we need not recompute the wefts, you can supply it.

warps?

WarpPath[]

optional - if we need not recompute the warps, you can supply it.

Returns

Promise<SimulationData>