[gl2ps] Allowing line join/cap to be controlled

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sat Sep 3 12:54:49 CEST 2016


Pantxo - Thanks for the patch: it's been merged in SVN.

Christophe

> On 02 Sep 2016, at 11:30, Pantxo Diribarne <pantxo.diribarne at gmail.com> wrote:
> 
> Hi,
> 
> Here is a new patch that I think works for all terminals even though PGF doesn't seam to handle line strip so that line join doesn't work.
> The change log is as follows:
> * gl2ps.c:
> ** #define GL2PS_LINE_CAP_TOKEN and GL2PS_LINE_JOIN_TOKEN
> ** add linecap and linejoin fields to primitive structure
> ** add lastlinecap and lastlinejoin fields to gl2ps context structure
> ** gl2psResetLineProperties: new static function to reset line width, cap and 
>    join
> ** gl2psLineCap/Join: new public functions that pass through the requested 
>    values,
> ** gl2psParseFeedbackBuffer: add two new cases for GL2PS_LINE_CAP_TOKEN and 
>    GL2PS_LINE_JOIN_TOKEN.
> 
> * gl2ps.h: 
> ** #define allowed values for linecap and linejoin
> ** declare gl2psLineCap/Join
> ** gl2psAddPolyPrimitive: change signature to include linecap and linejoin
> 
> * gl2psTestSimple.c: add a usage example for line cap and line width
> * gl2ps.tex: document the two new public functions in the same section as 
>   gl2psLineWidth
> 
> Pantxo
> 
> 2016-08-30 10:35 GMT+02:00 Pantxo Diribarne <pantxo.diribarne at gmail.com>:
> 
> 
> 2016-08-30 8:25 GMT+02:00 Christophe Geuzaine <cgeuzaine at ulg.ac.be>:
> 
> Hi Pantxo - Yes, this is a good idea! (I thought you wanted to work some more on the patch?)
> 
> 
> Sure, I just wanted to ensure I wouldn't work for a patch that had no chance to make it into gl2ps :-). I'll work on this in the coming days.
> 
> Pantxo 
> 
> <linecap_join.patch>

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info