<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need some help in 2d in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74960#M33673</link>
    <description>Peter: CIRCLE has one, CIRCLE2 has 3 parameters. Mryan is right yet.&lt;BR /&gt;
&lt;BR /&gt;
Mryan: Your code is quiet good, but as so often it's more math than programming. You have to give us more informations about the defining of the circle. 1st the dioganal line may not cross the circle, but has the circle to fit inside the resulting triangle or may it be flexible in its radius. May it cross the box lines? It's possible to get more than one result, should all be displayed?&lt;BR /&gt;
&lt;BR /&gt;
What is it for?</description>
    <pubDate>Mon, 15 May 2006 22:29:29 GMT</pubDate>
    <dc:creator>Frank Beister</dc:creator>
    <dc:date>2006-05-15T22:29:29Z</dc:date>
    <item>
      <title>Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74958#M33671</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;In 2d I need to draw a box with a circle in it.  A line must connect the corners without going into the circle.  And the sizes of the box can change so it will not be equal sometimes.  I need some help.  I know this is very easy ... I just started w/ GDL. &lt;BR /&gt;
&lt;BR /&gt;
x= 5&lt;BR /&gt;
y = 9&lt;BR /&gt;
Rect2 0, 0, x, y&lt;BR /&gt;
circle2 x/2, y/2, 1&lt;BR /&gt;
line2 0, 0, x, y&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 May 2006 21:03:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74958#M33671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-15T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74959#M33672</link>
      <description>Mryan,&lt;BR /&gt;
Circle2 has only one parameter, the radius, not three.&lt;BR /&gt;
You probably got an error message.&lt;BR /&gt;
Could you post a drawing of what you want to code ?&lt;BR /&gt;
I am unsure of the figure you want to code for.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Mon, 15 May 2006 21:57:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74959#M33672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-15T21:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74960#M33673</link>
      <description>Peter: CIRCLE has one, CIRCLE2 has 3 parameters. Mryan is right yet.&lt;BR /&gt;
&lt;BR /&gt;
Mryan: Your code is quiet good, but as so often it's more math than programming. You have to give us more informations about the defining of the circle. 1st the dioganal line may not cross the circle, but has the circle to fit inside the resulting triangle or may it be flexible in its radius. May it cross the box lines? It's possible to get more than one result, should all be displayed?&lt;BR /&gt;
&lt;BR /&gt;
What is it for?</description>
      <pubDate>Mon, 15 May 2006 22:29:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74960#M33673</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-05-15T22:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74961#M33674</link>
      <description>For a square its very simple to do.... the solution is this (where x and y are equal)&lt;BR /&gt;
&lt;BR /&gt;
x= 12"&lt;BR /&gt;
y = 12" &lt;BR /&gt;
Rect2 (-.5 * x), (-.5 * y), (.5 * x), (.5 * y)&lt;BR /&gt;
circle2 0, 0, 0.90125"&lt;BR /&gt;
line2 (-.5 * x), (-.5 * y), -.6328", -.6328"&lt;BR /&gt;
line2 .6328", .6328", (.5 * x), (.5 * y)&lt;BR /&gt;
&lt;BR /&gt;
When x and y are not equal i don't know how to draw a line that runs from corner to the circle and then again from the other side of the circle to the corner&lt;BR /&gt;
&lt;BR /&gt;
x= 12"&lt;BR /&gt;
y = 24" &lt;BR /&gt;
Rect2 (-.5 * x), (-.5 * y), (.5 * x), (.5 * y)&lt;BR /&gt;
circle2 0, 0, 0.90125"&lt;BR /&gt;
line2 (-.5 * x), (-.5 * y), -.6328", -.6328"&lt;BR /&gt;
line2 .6328", .6328", (.5 * x), (.5 * y)</description>
      <pubDate>Mon, 15 May 2006 23:06:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74961#M33674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-15T23:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74962#M33675</link>
      <description>Your right Frank, I was thinking about the wrong circle.&lt;BR /&gt;
Mryan, I apologize.&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Mon, 15 May 2006 23:19:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74962#M33675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-15T23:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74963#M33676</link>
      <description>Try this:&lt;PRE&gt;!flex paras
r = 0.4
x = a/2
y = b/2

!calculated vars
r = MIN(x,y,r)
w = ATN(b/a)

RECT2 -x, -y, x, y
circle2 0, 0, r

LINE2 -x, -y, -r*COS(w), -r*SIN(w)
LINE2 -x,  y, -r*COS(w),  r*SIN(w)
LINE2  x,  y,  r*COS(w),  r*SIN(w)
LINE2  x, -y,  r*COS(w), -r*SIN(w)&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2006 00:07:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74963#M33676</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-05-16T00:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74964#M33677</link>
      <description>thank you very much &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Tue, 16 May 2006 19:13:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74964#M33677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-16T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74965#M33678</link>
      <description>Frank, your avatar is the best I've seen yet!</description>
      <pubDate>Tue, 16 May 2006 22:34:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74965#M33678</guid>
      <dc:creator>Thomas Holm</dc:creator>
      <dc:date>2006-05-16T22:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help in 2d</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74966#M33679</link>
      <description>Thanks. &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; Was a bit of work to get the animation into the file size limit. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Wed, 17 May 2006 06:14:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Need-some-help-in-2d/m-p/74966#M33679</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2006-05-17T06:14:53Z</dc:date>
    </item>
  </channel>
</rss>

