Skip to content
Snippets Groups Projects
Commit 90078071 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

disabled PostScript Level 3 shading operator by default (and added a
new option to change it: Print.EpsPS3Shading)
parent 76679d65
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ public :
// print options
struct{
int format;
int eps_quality, eps_background, eps_font_size, eps_compress;
int eps_quality, eps_background, eps_font_size, eps_compress, eps_ps3shading;
int eps_occlusion_culling, eps_best_root;
char *eps_font;
double eps_line_width_factor, eps_point_size_factor;
......
......@@ -1053,6 +1053,8 @@ StringXNumber PrintOptions_Number[] = {
"Cull occluded primitives (to reduce PostScript/PDF file size)" },
{ F|O, "EpsPointSizeFactor" , opt_print_eps_point_size_factor , 1.0 ,
"Size factor for points in PostScript/PDF output" },
{ F|O, "EpsPS3Shading" , opt_print_eps_ps3shading , 0. ,
"Enable PostScript Level 3 shading" },
{ F|O, "EpsQuality" , opt_print_eps_quality , 1. ,
"PostScript/PDF quality (1=simple sort, 2=BSP tree sort)" },
......
// $Id: Options.cpp,v 1.139 2004-03-30 18:17:06 geuzaine Exp $
// $Id: Options.cpp,v 1.140 2004-04-08 18:12:10 geuzaine Exp $
//
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
//
......@@ -4754,6 +4754,13 @@ double opt_print_eps_compress(OPT_ARGS_NUM)
return CTX.print.eps_compress;
}
double opt_print_eps_ps3shading(OPT_ARGS_NUM)
{
if(action & GMSH_SET)
CTX.print.eps_ps3shading = (int)val;
return CTX.print.eps_ps3shading;
}
double opt_print_eps_quality(OPT_ARGS_NUM)
{
if(action & GMSH_SET)
......
......@@ -480,6 +480,7 @@ double opt_view_point_type(OPT_ARGS_NUM);
double opt_view_line_type(OPT_ARGS_NUM);
double opt_print_format(OPT_ARGS_NUM);
double opt_print_eps_compress(OPT_ARGS_NUM);
double opt_print_eps_ps3shading(OPT_ARGS_NUM);
double opt_print_eps_quality(OPT_ARGS_NUM);
double opt_print_eps_occlusion_culling(OPT_ARGS_NUM);
double opt_print_eps_best_root(OPT_ARGS_NUM);
......
// $Id: CreateFile.cpp,v 1.54 2004-03-06 00:19:19 geuzaine Exp $
// $Id: CreateFile.cpp,v 1.55 2004-04-08 18:12:10 geuzaine Exp $
//
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
//
......@@ -247,6 +247,7 @@ void CreateOutputFile(char *name, int format)
(CTX.print.eps_best_root ? GL2PS_BEST_ROOT : 0) |
(CTX.print.eps_background ? GL2PS_DRAW_BACKGROUND : 0) |
(CTX.print.eps_compress ? GL2PS_COMPRESS : 0) |
(CTX.print.eps_ps3shading ? 0 : GL2PS_NO_PS3_SHADING) |
(format == FORMAT_EPSTEX ? GL2PS_NO_TEXT : 0) |
(format == FORMAT_PDFTEX ? GL2PS_NO_TEXT : 0) |
(format == FORMAT_EPSTEX_RASTER ? GL2PS_NO_TEXT : 0) |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment