Tessellation
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Tessellation
http://www.shodor.org/interactivate/act ... essellate/
I wonder how easy this would be to implement in LiveCode.
I wonder how easy this would be to implement in LiveCode.
Last edited by richmond62 on Mon Jan 16, 2023 12:30 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
While it is relatively easy to set up a polygonal graphic with these points, the thing that I have got stuck with is the tessellation.
Of course if one enters the vertices given by the web page directly one ends up with one's shape being upside down because
Bill Atkinson DROPPED the acid, rather than LIFTED it.
- -
The second column (Length) appears to be redundant.
Last edited by richmond62 on Mon Jan 16, 2023 12:32 pm, edited 2 times in total.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
Last edited by richmond62 on Mon Jan 16, 2023 12:30 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
Last edited by richmond62 on Mon Jan 16, 2023 12:31 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
Last edited by richmond62 on Mon Jan 16, 2023 12:31 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
This:
http://www.shodor.org/interactivate/act ... essellate/
is written in Java, so anyone who can:
1. Get a look at the code (? ethical consideration here, possibly ?).
2. Convert Java into LiveCode.
could . . .
ALL I can do is try to mimic the functionality.
http://www.shodor.org/interactivate/act ... essellate/
is written in Java, so anyone who can:
1. Get a look at the code (? ethical consideration here, possibly ?).
2. Convert Java into LiveCode.
could . . .
ALL I can do is try to mimic the functionality.
Last edited by richmond62 on Mon Jan 16, 2023 12:31 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
This, even if a bit more simplistic:
https://www.theedkins.co.uk/jo/tess/sqtile.htm
- -
should be easily replicable in LiveCode.
https://www.theedkins.co.uk/jo/tess/sqtile.htm
- -
should be easily replicable in LiveCode.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
Meanwhile, between beating English into tiny brains:
-
-
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
As promised:
- -
- -
- Attachments
-
- Tessellate 1.livecode.zip
- Stack.
- (11.34 KiB) Downloaded 64 times
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
Well, after my fairly goofy side-trip, I'd like to return to this:
http://www.shodor.org/interactivate/act ... essellate/
and note that when one chooses Edit Edges, on clicking one of the lines of the vector shape it is cut into 2 lines, as is the line (vertex ?)
opposite it:
- - -
Of course what this does, regardless of how one mucks around with the vector shape is ensures that the area it borders
never changes size.
http://www.shodor.org/interactivate/act ... essellate/
and note that when one chooses Edit Edges, on clicking one of the lines of the vector shape it is cut into 2 lines, as is the line (vertex ?)
opposite it:
- - -
Of course what this does, regardless of how one mucks around with the vector shape is ensures that the area it borders
never changes size.
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
And here's a happy little polygon graphic
[No, that's NOT a Regular Polygon, that one of those Polygon Graphics that are a complete and utter pain in the bum
because. when they are created on a card they are invisible (which they used not to be) and one has to piss around
with the property inspector to start adding points for vertices to them.]
In fact, I would prefer just to call is a GONE graphic.
Anyway, post-rant (no, didn't smoke a cigarette) . . .
How the Flying Fudge, on clicking on a vertex would one code things to insert a new points line into the points list
inwith the property inspector of the polygon grPhic so as to create a new line?
Oh, and while I'm here, and while I'm in a relatively obtuse frame of mind, perhaps I should point out that at work I am constrained to
LC 8.1.10 on MacOS 10.7.5.
No that I have noticed anything that has changed between 8.1.10 & 9.6.* in terms of polygon graphics.
-
Last edited by richmond62 on Sat Feb 04, 2023 6:25 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 4028
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Tessellation
If I understand correctly what you are trying to do then:How the Flying Fudge, on clicking on a vertex would one code things to insert a new points line into the points list
inwith the property inspector of the polygon grpahic so as to create a new line?
If you have a polygon graphic select it and choose "Reshape Graphic" from the Object Menu.
If you click on a vertex while the option key is down you create a new vertex which you can drag to where you want.
If however you want to make lines of a polygon graphic to be split as to appear unconnected then insert an empty line in the points list.
Kind regards
Bernd
-
- Livecode Opensource Backer
- Posts: 9455
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Tessellation
Super! Thank you very much.If you click on a vertex while the option key is down you create a new vertex which you can drag to where you want.
I wonder if there is a way to fake the Option key being down so that would happen when an end user does a left-click
(i.e. standard mouse-click on a line)?