Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 1.22 KB

GenerationSpace_Collapse().md

File metadata and controls

13 lines (12 loc) · 1.22 KB

GenerationSpace.Collapse() Method

Run the WFC algorithm to completion on the Generation Space.
This method will keep on collapsing the slot with the lowest entropy until all slots have been collapsed to a single module possibility.

This method may take a long time to complete if the Generation Space is large. You should interweave the resulting progress set with a Coroutine with render frames.

public System.Collections.Generic.IEnumerable<BrewedInk.WFC.WFCProgress> Collapse();

Returns

System.Collections.Generic.IEnumerable<WFCProgress>
A sequence of WFCProgress representing the completion of the collapse operation. The entire sequence must be enumerated or the collapse won't finish.