The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraphSketcher General (http://forums.omnigroup.com/forumdisplay.php?f=53)
-   -   Circles? (http://forums.omnigroup.com/showthread.php?t=20040)

1939mars 2011-02-07 09:16 AM

Circles?
 
Have not found a reference to this one. Is there a way to make circles in OGS? I see places where folks have oversampled sine-waves, etc. Unfortunately I always end up with circles that look a little odd, even with oversampling. So, I am wondering if there is just a point-radius type of circle available.

Thanks,
Scott

dave_m 2011-02-08 07:12 AM

1 Attachment(s)
There's no way to add a circle shape to the graph currently, but we do have a feature request open in the development database.

If you really need a circle, the best workaround is to use numbers or some other program to sample *a lot* of points. 36 (one every ten degrees) seems to get around the "bump" at the start/finish pretty well. I've attached an .xls file.

dave_m 2011-02-09 02:55 PM

1 Attachment(s)
Okay, the new best method for plotting circles is to use the attached AppleScript.

This AppleScript and corresponding python script calculate a number of points in a circle given that circle's center and radius, and paste those points into OmniGraphSketcher using system events. The default number of points is 36, and can be changed by editing the variable "segments" in line 7 of circle.py. To connect the points plotted by this script, use the "Connect Points" button at the bottom of the Data inspector.

To add as a toolbar button in OmniGraphSketcher, place the entire Circle folder in the directory ~/Library/Scripts/Applications/OmniGraphSketcher/ (where ~ is your user directory), then add the button using View > Customize Toolbar...

The the .scpt and .py files must be in the same directory for the script to work. Feedback is welcome; please [EMAIL="OmniGraphSketcher@omnigroup.com"]email OmniGraphSketcher@omnigroup.com[/EMAIL] with your questions or concerns.

edit: outdated script removed

dave_m 2011-08-11 10:25 AM

I've updated the circle-plotting script to work with locales using ',' as a decimal separator, while keeping support for the US and other locales using '.'. It has a new home:

[URL="http://people.omnigroup.com/dave/circle.html"]http://people.omnigroup.com/dave/circle.html[/URL]


All times are GMT -8. The time now is 09:00 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.