Live data from Hacker News

Circles do not exist

nibblestew.blogspot.com

1–10 of 217 posts

Re: Circles do not exist

#5
post #2

Doesn't PS have "arc"?

I was curious, so I looked up arc in the PostScript Language Reference [1]. It contains the following (p. 530):

> The arc is represented internally by one or more cubic Bézier curves (see curveto) approximating the required shape. This is done with sufficient accuracy to produce a faithful rendition of the required arc. However, a program that reads the constructed path using pathforall will encounter curveto segments where arcs were specified originally.

[1] https://www.adobe.com/jp/print/postscript/pdfs/PLRM.pdf

Re: Circles do not exist

#7
"The only primitives they have are straight line segments, rectangles and Bézier curves. The only way to create a proper circle is to have a raster image like the one above."

Is this really an accurate conclusion? Just because there are no primitives for a circle – postscript is still a programming language so you can also plot a proper circle with trigonometry?

Re: Circles do not exist

#9
For 3d printing.

Lathes do circles all the time. But it would be difficult to rotate either the head or the bed around an arbitrary axis in order to print a proper circle.

Re: Circles do not exist

#10
post #7

"The only primitives they have are straight line segments, rectangles and Bézier curves. The only way to create a proper circle is to have a raster image like the one above." Is this really an accurate conclusion? Just because there are no primitives for a circle – postscript is still a programming language so you can also plot a proper circle with trigonometry?

> Just because there are no primitives for a circle…

Is a 360° arc not a circle?

  %!PS
  /newpath
  100 100 50 0 360 arc
  stroke
  showpage
Post reply on HN