![]() Home Overview FAQ Documentation Download Mailing List Geomview For Windows? Support Users Development Bug Reporting Contributing Contact Us Sponsors
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [ REQ 5097]: plsave.c
/* We don't really know the number of edges and it's a pain to count.
* Assume Euler number 2.
*/
fprintf(outf, "%s%s%sOFF\n%d %d %d\n",
&"C"[polylist->flags & PL_HASVCOL ? 0 : 1],
&"N"[polylist->flags & PL_HASVN ? 0 : 1],
&"4"[polylist->geomflags & VERT_4D ? 0 : 1],
polylist->n_verts, polylist->n_polys,
polylist->n_verts + polylist->n_polys - 2);
*giggle*! That's awful verbose, possibly
fprintf(outf, "%s%s%sOFF\n%d %d %d\n",
&"C"[!!(polylist->flags & PL_HASVCOL)],
&"N"[!!(polylist->flags & PL_HASVN )],
&"4"[!!(polylist->geomflags & VERT_4D )],
polylist->n_verts,
polylist->n_polys,
polylist->n_verts + polylist->n_polys - 2
);
was intended? :) That takes my personal "oddest C idiom of the week"
award, actually. Who wrote that one?
(There may be a missing '-' in the second comment line, too.)
|
||
|
Home | Overview | FAQ | Documentation | Support | Download | Mailing List Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors |
|||
|
site hosted by |
|||