Rev 17613 | Rev 17618 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17613 | Rev 17614 | ||
---|---|---|---|
Line 392... | Line 392... | ||
392 | scale(pm->pd,pm->p,cnt); |
392 | scale(pm->pd,pm->p,cnt); |
393 | if(pm->fill) |
393 | if(pm->fill) |
394 | gdImageFilledPolygon(image,(gdPointPtr) pm->p,cnt,pm->color[0]); |
394 | gdImageFilledPolygon(image,(gdPointPtr) pm->p,cnt,pm->color[0]); |
395 | else |
395 | else |
396 | gdImagePolygon(image,(gdPointPtr) pm->p,cnt,pm->color[0]); |
396 | gdImagePolygon(image,(gdPointPtr) pm->p,cnt,pm->color[0]); |
397 | if(tikz_file) |
397 | if(tikz_file){ |
- | 398 | fprintf(tikz_file,"\\draw\[%s] (%i,%i) --",tikz_options(pm->color[0],pm->fill),pm->p[0],flip(pm->p[1])); |
|
398 |
|
399 | for (i= 1; i<cnt; i++) |
399 | fprintf(tikz_file," |
400 | fprintf(tikz_file,"(%i,%i)--", pm->p[2*i],flip(pm->p[2*i+1])); |
400 | tikz_options(pm->color[0],pm->fill), |
- | |
401 |
|
401 | fprintf(tikz_file," cycle;\n"); |
402 | pm->p[2*((i+1)%cnt)],flip(pm->p[2*((i+1)%cnt)+1])); |
- | |
- | 402 | } |
|
403 | if(vimg_enable) vimg_polyline(scale_buf,cnt,1); |
403 | if(vimg_enable) vimg_polyline(scale_buf,cnt,1); |
404 | } |
404 | } |
405 | 405 | ||
406 | /* rays */ |
406 | /* rays */ |
407 | void obj_rays(objparm *pm) |
407 | void obj_rays(objparm *pm) |