OIPI and ELLIPSE (OpenInsight 32-Bit)
At 18 JUN 2003 01:56:40AM Deirdre Affleck wrote:
Has anyone used the ELLIPSE function in OIPI. The documentation indicates that you can give a starting arc and ending arc to print a 'pie wedge'.
Have tried many variations but always get the entire ellipse or circle.
TIA
Deirdre
At 18 JUN 2003 05:09PM Oystein Reigem wrote:
Deirdre,
Fascinating.
I tried several variations on
stat=Set_Printer("ELLIPSE",1:@fm:1:@fm:3:@fm:3:@fm:0:@fm:n)
Sometimes there is a whole circle, sometimes nothing, and sometimes a wedge. Integers n = 9 a circle. And decimals sometimes produce wedges.
For fun (or hair-tearing frustration, or stupefying amazement) try the following wedge-producing examples:
stat=Set_Printer("ELLIPSE",1:@fm:1:@fm:3:@fm:3:@fm:0:@fm:"8.1") stat=Set_Printer("ELLIPSE",1:@fm:1:@fm:3:@fm:3:@fm:0:@fm:"8.2") stat=Set_Printer("ELLIPSE",1:@fm:1:@fm:3:@fm:3:@fm:0:@fm:"8.3") stat=Set_Printer("ELLIPSE",1:@fm:1:@fm:3:@fm:3:@fm:0:@fm:"7.1")
- Oystein -
At 18 JUN 2003 05:34PM Oystein Reigem wrote:
Couldn't tear myself away.
Btw - I get arcs, not wedges.
Seems 8.1 (and also 7.1 and others) produces a 2/5 circle's worth of arc, 8.2 twice that, i.e a 4/5 circle, 8.3 yields yet another 2/5 circle, except it's modulo 1, i.e a 1/5 circle, 8.4 yet another 2/5, i.e a 3/5 circle, and 8.5 yet another 2/5, i.e a 5/5 or whole circle.
8.6, 8.7, etc repeats the system.
Draw lines between the end points of the arcs and you get a pentagram!
- Oystein -
At 18 JUN 2003 10:29PM Deirdre Affleck wrote:
Dear Oystein,
You made my day. Haven't had a good laugh like that for a while.
Hope you had fun as well.
(Now I am going to try your integers!)
Deirdre
At 19 JUN 2003 05:49AM Oystein Reigem wrote:
Deirdre,
Had fun, although it was a little spooky with the end points "making" a pentagram.
![]()
Of course I should have used 666.1, 666.2, etc in my example, to make it even scarier.
![]()
But seriously - there must be something …uh… seriously wrong with how the arc parameteres are interpreted. Might be time for Tony Splaver and Revelation to step in.
- Oystein -
At 19 JUN 2003 07:46AM Bob Orsini wrote:
I will use your code and see what the progam is doing. Will get back to you with the results.