delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/01/16/16:42:26

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
From: John Doty <jpd AT noqsi DOT com>
Mime-Version: 1.0 (Apple Message framework v1085)
Subject: Re: [geda-user] libgeda circle parsing
Date: Wed, 16 Jan 2013 14:41:43 -0700
In-Reply-To: <CAFfN_23UzAVVk0-TSZyVZihFmq1-0v0gpB7o4uxe3KgxDFDG0w@mail.gmail.com>
To: geda-user AT delorie DOT com
References: <CAFfN_23UzAVVk0-TSZyVZihFmq1-0v0gpB7o4uxe3KgxDFDG0w AT mail DOT gmail DOT com>
Message-Id: <57B44348-7A53-4743-8A60-7C9D31EFD1ED@noqsi.com>
X-Mailer: Apple Mail (2.1085)
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--Apple-Mail-117--39302502
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


On Jan 16, 2013, at 1:23 PM, Antonio Todo Bom =E2=9C=88 wrote:

> I don't know if I'm right, but analysing the code at o_circle_basic.c, =
I found:
>=20
>=20
>   if (radius <=3D 0) {
>     s_log_message(_("Found a zero or negative radius circle [ %c %d %d =
%d %d ]\n"),
>                   type, x1, y1, radius, color);
>     s_log_message (_("Setting radius to 0\n"));
>     radius =3D 0;
>   }
>=20
>=20
>   If the routine certifies that circle has not a null or negative =
radius, why it adjusts it to zero? Couldn't be better to adjust to any =
non zero standard value, to turn the object more visible at the design?

Well, for consistency a zero radius circle should render as a point at =
display resolution, since for larger radii it renders as a curve at =
display resolution. Unfortunately, that doesn't seem to happen. But what =
if the user actually wants to draw a point?

Other objects of zero size are more useful, even though gEDA complains =
about them. Why should a script that generates invisible attributes have =
to fill in a size? A zero length pin allows the user to express =
connections without associated straight lines, e.g. as a circle with a =
connecting point at the center.

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



--Apple-Mail-117--39302502
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><br><div><div>On Jan 16, 2013, at 1:23 PM, Antonio Todo Bom =E2=9C=88 =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div dir=3D"ltr">I don't know if I'm right, but analysing =
the code at o_circle_basic.c, I =
found:<div><br></div><div><div><br></div><div>&nbsp; if (radius &lt;=3D =
0) {</div><div>&nbsp; &nbsp; s_log_message(_("Found a zero or negative =
radius circle [ %c %d %d %d %d ]\n"),</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
type, x1, y1, radius, color);</div><div>&nbsp; &nbsp; s_log_message =
(_("Setting radius to 0\n"));</div><div>&nbsp; &nbsp; radius =3D =
0;</div><div>&nbsp; =
}</div><div><br></div><div><br></div><div>&nbsp;&nbsp;If the routine =
certifies that circle has not a null or negative radius, why it adjusts =
it to zero? Couldn't be better to adjust to any non zero standard value, =
to turn the object more visible at the design?</div>
</div></div></blockquote><br></div><div>Well, for consistency a zero =
radius circle should render as a point at display resolution, since for =
larger radii it renders as a curve at display resolution. Unfortunately, =
that doesn't seem to happen. But what if the user actually wants to draw =
a point?</div><div><br></div><div>Other objects of zero size are more =
useful, even though gEDA complains about them. Why should a script that =
generates invisible attributes have to fill in a size? A zero length pin =
allows the user to express connections without associated straight =
lines, e.g. as a circle with a connecting point at the =
center.</div><br><div>
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><p style=3D"margin: =
0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica">John Doty<span =
class=3D"Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span><span =
class=3D"Apple-converted-tab">&nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span></span>Noqsi =
Aerospace, Ltd.</font></p><p style=3D"margin: 0.0px 0.0px 0.0px =
0.0px"><a href=3D"http://www.noqsi.com/">http://www.noqsi.com/</a></p><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica"><a =
href=3D"mailto:jpd AT noqsi DOT com">jpd AT noqsi DOT com</a></font></p><br =
class=3D"Apple-interchange-newline"></span></span>
</div>
<br></body></html>=

--Apple-Mail-117--39302502--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019