Created
May 2, 2011 12:50
-
-
Save andreaseger/951557 to your computer and use it in GitHub Desktop.
Puzzle Generator Temporary Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vector<vector<pair<int,int> > > Generator::makePuzzle(vector<Piece>& pieces, vector<Edge*>& edgelist, bool** matrix){ | |
vector<vector<pair<int,int> > > pids; | |
makePieceMesh(pids); | |
mesh2Matrix(pids,matrix); | |
makePieceList(pieces, pids); | |
create_edgelist(edgelist, pieces); | |
setEdgeValues(edgelist, matrix); | |
for(size_t j=0; j<pieces.size();j++) | |
for( int i = 0; i < 4; i++) | |
pieces[j].getEdge(i).setPiece(pieces[j]); | |
return pids; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment