<?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: Segmental Arc Trigonometry in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76431#M32772</link>
    <description>Hello LiHigh,&lt;BR /&gt;
Thank you very much for posting back.&lt;BR /&gt;
I will certainly try your code and much more importantly&lt;BR /&gt;
try to understand it.&lt;BR /&gt;
It is a little late now, my time, so I will wait till tomorrow&lt;BR /&gt;
to study it.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
    <pubDate>Tue, 05 Sep 2006 03:57:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-05T03:57:33Z</dc:date>
    <item>
      <title>Segmental Arc Trigonometry</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76428#M32769</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
I am trying to define the trigonometry for a segmental arc&lt;BR /&gt;
to be used ultimately in a MASS command object.&lt;BR /&gt;
Therefor, I have to define the arc as straight segments&lt;BR /&gt;
rather than using additional status codes.&lt;BR /&gt;
The FOR loop that puts values into the buffer works only&lt;BR /&gt;
for an arc with a subtended angle of 180° or a half circle.&lt;BR /&gt;
Any other subtended angle makes a figure that has an arc&lt;BR /&gt;
as part of it but it is distorted and the only thing&lt;BR /&gt;
I can do is fill in arbitrary values in the line,&lt;BR /&gt;
for i=1 to nf+1-1 step 1.&lt;BR /&gt;
As an example, if A is set to 3'-11" &lt;BR /&gt;
and the resolution is set to 72 &lt;BR /&gt;
and the sagetta is set to 1'-0", &lt;BR /&gt;
then I have to change the line to read&lt;BR /&gt;
for i=8 to nf+8-1 step 1.&lt;BR /&gt;
I have to do this to get the arc to start at the point &lt;BR /&gt;
a/2,b  and end up at -a/2,b .&lt;BR /&gt;
&lt;BR /&gt;
The problem is I do not know how to write a formula&lt;BR /&gt;
that computes these values for any arc of any included angle&lt;BR /&gt;
up to 180° for any value of sagetta between eps and a/2.&lt;BR /&gt;
I need this to put into the FOR expression.&lt;BR /&gt;
&lt;BR /&gt;
The attachment shows the derivation of the basic variables&lt;BR /&gt;
and the 2D script as I have it so far.&lt;BR /&gt;
&lt;BR /&gt;
Any insights, suggestions, hints would be greatly appreciated.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/74138iA861C34D7A26C347/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Segmental Arc test.jpg" title="Segmental Arc test.jpg" /&gt;</description>
      <pubDate>Sun, 03 Sep 2006 04:19:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76428#M32769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-03T04:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Segmental Arc Trigonometry</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76429#M32770</link>
      <description>Well, I came up with something that appears to work.&lt;BR /&gt;
The variable "num" calculates where to start and end the arc.&lt;BR /&gt;
It is an unhappy cludge partly because it has to round off&lt;BR /&gt;
the value calculated so that it can be used to increment.&lt;BR /&gt;
Because of the inherent inaccuracy it fails in the extreme&lt;BR /&gt;
case of a small value for the sagetta like 1 1/2".&lt;BR /&gt;
I wish I knew how to do this right.&lt;BR /&gt;
Please see attachment showing the revised code.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Tue, 05 Sep 2006 01:21:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76429#M32770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-05T01:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Segmental Arc Trigonometry</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76430#M32771</link>
      <description>Peter, try to simplify the whole things.&lt;BR /&gt;

&lt;PRE&gt;RAD=(a^2)/(8*bul)+(bul/2)
dy=b-(RAD-bul)
alpha=asn(0.5*a/RAD)


PUT a/2,-dy
PUT -a/2,-dy

P=2*ALPHA/res
FOR Q=-ALPHA TO ALPHA+0.5*p STEP P
  PUT RAD*SIN (Q), RAD*COS (Q)
NEXT Q


ADD2 0,dy

POLY2 nsp/2,5,
       USE(nsp)

FOR i= 1 to nsp/2
	HOTSPOT2 GET(2)
NEXT i

DEL 1&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Sep 2006 03:16:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76430#M32771</guid>
      <dc:creator>LiHigh</dc:creator>
      <dc:date>2006-09-05T03:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Segmental Arc Trigonometry</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76431#M32772</link>
      <description>Hello LiHigh,&lt;BR /&gt;
Thank you very much for posting back.&lt;BR /&gt;
I will certainly try your code and much more importantly&lt;BR /&gt;
try to understand it.&lt;BR /&gt;
It is a little late now, my time, so I will wait till tomorrow&lt;BR /&gt;
to study it.&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Tue, 05 Sep 2006 03:57:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76431#M32772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-05T03:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Segmental Arc Trigonometry</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76432#M32773</link>
      <description>Hello LiHigh,&lt;BR /&gt;
I studied your code and it became obvious that I had&lt;BR /&gt;
made some conceptual mistakes as well as getting to complicated.&lt;BR /&gt;
Your code was an education for me and I want to thank you for it.&lt;BR /&gt;
I have written down all the derivations and &lt;BR /&gt;
diagramed everything for future reference.&lt;BR /&gt;
&lt;BR /&gt;
There is one thing I don't understand.&lt;BR /&gt;
Your code reads, FOR Q=-ALPHA TO ALPHA+0.5*p STEP P &lt;BR /&gt;
Why do you add 0.5*p to the final interval ?&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Thu, 07 Sep 2006 04:41:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76432#M32773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-07T04:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Segmental Arc Trigonometry</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76433#M32774</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;
There is one thing I don't understand.&lt;BR /&gt;
Your code reads, FOR Q=-ALPHA TO ALPHA+0.5*p STEP P &lt;BR /&gt;
Why do you add 0.5*p to the final interval ?&lt;/BLOCKQUOTE&gt;

"Use of real type can result in precision problem" Sound familiar!&lt;BR /&gt;
&lt;BR /&gt;
I use &lt;B&gt;0.5*p&lt;/B&gt; just to be sure. Infact &lt;B&gt;FOR Q=-ALPHA TO ALPHA+0.000001 STEP P &lt;/B&gt; works too.</description>
      <pubDate>Thu, 07 Sep 2006 06:14:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76433#M32774</guid>
      <dc:creator>LiHigh</dc:creator>
      <dc:date>2006-09-07T06:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Segmental Arc Trigonometry</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76434#M32775</link>
      <description>Thank you LiHigh,&lt;BR /&gt;
I suspected something like that.&lt;BR /&gt;
Give it a little extra to make sure AC gets to the finish line.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Peter Devlin</description>
      <pubDate>Thu, 07 Sep 2006 15:34:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Segmental-Arc-Trigonometry/m-p/76434#M32775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-07T15:34:33Z</dc:date>
    </item>
  </channel>
</rss>

