octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet Another Plotting System for Octave: 0.3.0


From: Shai Ayal
Subject: Re: Yet Another Plotting System for Octave: 0.3.0
Date: Mon, 8 Oct 2007 06:03:13 +0200

On 10/7/07, Alexander Barth <address@hidden> wrote:
>
>
>
> On 10/7/07, Shai Ayal <address@hidden> wrote:
> > On 10/7/07, Alexander Barth <address@hidden> wrote:
> > >
> > >
> > > On 10/7/07, Shai Ayal <address@hidden> wrote:
> > > > On 10/6/07, Alexander Barth <address@hidden> wrote:
> > > > > From the gl2ps web site, gl2ps should use by default "Miler Join". I
> > > > > found here an explanation of different joint styles:
> > > > >
> > >
> http://www.bluevoid.com/opengl/sig00/advanced00/notes/node290.html
> > > > >
> > > > > However, it seems that gl2ps does not use this type of join. Maybe
> it
> > > > > needs to be enabled somewhere?
> > > > >
> > > > > Alex
> > > >
> > > > I think some of the problems arise from gl2ps not knowing which lines
> > > > should be joined -- You can give it  a hint by using GL_LINE_STRIP and
> > > > GL_LINE_LOOP when drawing connected lines, but I think even then it
> > > > doesn't do it right on some circumstances. Agagin, this is a
> > > > shortcoming of OpenGL, not gl2ps
> > >
> > > Thanks for your reply. I'm actually using GL_LINE_STRIP and
> GL_LINE_LOOP. In
> > > very simple cases, gl2ps makes indeed a Miter join. But if the figure
> get
> > > more complex, all lines are drawn seperatly in the eps export (and thus
> no
> > > line join). On the screen, there is no line join at all.
> > > Perhaps, a line join must be coded explicitly in opengl.
> >
> > How do you do that? I am not aware of any OpenGL method for joining
> > lines other than GL_LINE_STRIP and GL_LINE_LOOP. Do you have anything
> > in mind?
>
> You could explicitly draw a triangle of the appropriate size for a Miter
> join. But it would not be easy to get the correct size of this triangle.

I'm not sure you could make this triangle join the line nicely

> When I have time, maybe I will look how the line joins are implemented in
> the glitz back-end
>
> Alex
>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]