*** POST PART 1 ***
Hi All!
I am having quite a few issues with this seemingly ridiculously
simple object, and need to figure this out ASAP due to a deadline.
I will load all info in this and the next posts...
* * * * *
The SEGMENT object belongs to a set of "Area Calculating Objects"
I am developing to help AC comply with the Israeli codes for
building permit requests.
In short, each of these objects (Rectangle, Triangle, Circle etc.)
can "report" the mathematical function, parameters and results
into the Interactive Schedule, including showing dimensions to enable
a manual check of the calculus.
In this first post you will see the basic logic used to create the
SEGMENT object, as derived from two parameters, the Chord (A)
and the Bulge (B) - both stretchy.
When finalized, the object will only show the filled area, while the rest
would be dashed lines.
To create this object from A & B alone, the following math was used
to derive the Angle & Radius, courtesy of David Nicholson-Cole:
hangl= (90-ATN((A/2)/B))*2
rad= (A/2)SIN(angl)
(cont.)