Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!decwrl!sgi!ciemo@bananapc.wpd.sgi.com From: ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) Newsgroups: comp.windows.news Subject: Re: How do you get rid of the current point Summary: ... or newpath Message-ID: <39601@sgi.SGI.COM> Date: 4 Aug 89 21:10:07 GMT References: <17344@bellcore.bellcore.com> <39596@sgi.SGI.COM> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 41 In article <39596@sgi.SGI.COM>, ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) writes: > In article <17344@bellcore.bellcore.com>, sjs@spectral.ctt.bellcore.com (Stan Switzer) writes: > > In PostScript, how do you nuke the current point, making no other > > changes to the graphics state? > > > > The situation is this: I have part of a path already constructed and > > I'd like to add an "arc" segment without the line leading from the > > current point to the arc. > > > > In NeWS, "closepath" (which I happened to need anyway) gets rid of the > > current point, but on a LaserWriter the current point seems to be > > unaffected. > > > > Any suggestions? > > > > Stan Switzer sjs@ctt.bellcore.com > > This seems so obvious I wonder if I'm missing something in the discussion. > Why not use the "moveto" operator? The red books says: > > [moveto] starts a new subpath of the currect path. moveto sets > the current point ... without adding any line segments to the > current path. > Thinking about it some more, it seems you want a single path, constructed of multiple, discontinuous subpaths. One of these subpaths is to be an arc. In the past, I've used "moveto" to position the currentpoint to the start of the arc to eliminate the leading line. The other option might be to have multiple paths and just issue a "newpath" before the "arc" operator. -- ------------------------------------------------------------------------------- Cosmo Ciemo, Silicon Valley Dude I was traipsing through the fields of my mind when I stepped in something that smelled rather ripe. -------------------------------------------------------------------------------