Re: Points of Regular Polygon

2016-11-29 Thread Randy Hengst
Well, this was fun. I write a question, go teach class, and come back to a very interesting conversation. Thanks all. be well, randy www.classroomFocusedSoftware.com > On Nov 29, 2016, at 1:24 PM, hh wrote: > > I should have better used the wording >"graphic of type"

Re: Points of Regular Polygon

2016-11-29 Thread hh
I should have better used the wording "graphic of type" than "graphic of style" because we can set the style of grc 1 to "polygon" for example (the function again, just for the completeness here): on mouseUp if there is no grc "poly" then create grc "poly" set style of grc "poly"

Re: Points of Regular Polygon

2016-11-29 Thread Richmond Mathewson
On 11/29/16 9:09 pm, Richard Gaskin wrote: Richmond Mathewson wrote: > Oddly enough, that may have uncovered a bug in LC 9 dp3 . . . > > I thought I would set the points of a polygon graphic to the points > of the regular polygon graphic that I had exported into a scrolling > list field. > >

Re: Points of Regular Polygon

2016-11-29 Thread Richard Gaskin
Richmond Mathewson wrote: > Oddly enough, that may have uncovered a bug in LC 9 dp3 . . . > > I thought I would set the points of a polygon graphic to the points > of the regular polygon graphic that I had exported into a scrolling > list field. > > But when I selected 'Polygon Graphic' from the

Re: Points of Regular Polygon

2016-11-29 Thread hh
Richmond M. > Setting points does no good at all. That's not true if graphics are involved. Just follow the rules. You cannot _set_ the points of a graphic of type "regular". You can _get_ the points since LC 7 (thanks to Mark Wieder). Just the same with a graphic of type "Oval" or "Rectangle"

Re: Points of Regular Polygon

2016-11-29 Thread Richmond Mathewson
Aha: the IDE just plonks a pointless polygon graphic in your card, so it is invisible. Setting points does no good at all. Richmond. On 11/29/16 8:35 pm, Richard Gaskin wrote: Richmond Mathewson wrote: > ...BUT one cannot deform a regular polygon... ...because it would then no longer be a

Re: Points of Regular Polygon

2016-11-29 Thread Richmond Mathewson
Oddly enough, that may have uncovered a bug in LC 9 dp3 . . . I thought I would set the points of a polygon graphic to the points of the regular polygon graphic that I had exported into a scrolling list field. But when I selected 'Polygon Graphic' from the Menu/Object/New Control/Polygon

Re: Points of Regular Polygon

2016-11-29 Thread hh
Why not simply computing the points by yourself? Excerpt from the the main script of Raspi stack #2: RegularPolygons3 (http://forums.livecode.com/viewtopic.php?p=98716#p98716) -- N is the number of vertices -- x0,y0 is the center of the polygon -- r is the radius of the polygon -- b is the angle

Re: Points of Regular Polygon

2016-11-29 Thread Richmond Mathewson
Indeed. Richmond. On 11/29/16 8:35 pm, Richard Gaskin wrote: Richmond Mathewson wrote: > ...BUT one cannot deform a regular polygon... ...because it would then no longer be a regular polygon. To make an irregular polygon use the polygon style. If you need it to have regular points you can

Re: Points of Regular Polygon

2016-11-29 Thread Richard Gaskin
Richmond Mathewson wrote: > ...BUT one cannot deform a regular polygon... ...because it would then no longer be a regular polygon. To make an irregular polygon use the polygon style. If you need it to have regular points you can first create a regular polygon, get its effective points,

Re: Points of Regular Polygon

2016-11-29 Thread Richmond Mathewson
That's true; BUT one cannot deform a regular polygon by doing a set the points of grc "XYZ" to fld "ABC" . . . 'Tis regular, don't cha know? Richmond. On 11/29/16 7:57 pm, Devin Asay wrote: On Nov 29, 2016, at 10:52 AM, Randy Hengst wrote: Hi All, As I’ve looked

Re: Points of Regular Polygon

2016-11-29 Thread Scott Rossi
Sounds like you want the effective points property (of grc “abc”)? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design > On Nov 29, 2016, at 9:52 AM, Randy Hengst wrote: > > Hi All, > > As I’ve looked through the list archives, I know the answer to my

Re: Points of Regular Polygon

2016-11-29 Thread Devin Asay
> On Nov 29, 2016, at 10:52 AM, Randy Hengst wrote: > > Hi All, > > As I’ve looked through the list archives, I know the answer to my quetion was > ‘no' back in 2013… just checking to see if I’ve missed something. > > Is there a way to get the points (vertices) of a a