src/ldObject.cc

changeset 806
4240f47aa2d4
parent 805
d88c0354de97
child 835
268413885cb1
equal deleted inserted replaced
805:d88c0354de97 806:4240f47aa2d4
404 return null; 404 return null;
405 405
406 LDPolygon* data = new LDPolygon; 406 LDPolygon* data = new LDPolygon;
407 data->id = id(); 407 data->id = id();
408 data->num = num; 408 data->num = num;
409 data->color = color()->index(); 409 data->color = color().index();
410 410
411 for (int i = 0; i < data->numVertices(); ++i) 411 for (int i = 0; i < data->numVertices(); ++i)
412 data->vertices[i] = vertex (i); 412 data->vertices[i] = vertex (i);
413 413
414 return data; 414 return data;

mercurial