Mail Archives: geda-user/2013/01/16/16:42:26
--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> if (radius <=3D =
0) {</div><div> s_log_message(_("Found a zero or negative =
radius circle [ %c %d %d %d %d ]\n"),</div>
<div> =
type, x1, y1, radius, color);</div><div> s_log_message =
(_("Setting radius to 0\n"));</div><div> radius =3D =
0;</div><div> =
}</div><div><br></div><div><br></div><div> 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"> <span =
class=3D"Apple-converted-space"> </span><span =
class=3D"Apple-converted-tab"> <span =
class=3D"Apple-converted-space"> </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 -