Timeline for answer to How do I calculate the points within in a polygon that changes height and width to create a hollow frame shape? by Blue
Current License: CC BY-SA 4.0
Post Revisions
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 1, 2024 at 6:02 | comment | added | Panthera | Thanks. Looks like you replied while I was typing up my last reply. Glad I got it working just in time to save you the trouble. It was me who needed to double check my work. | |
| Aug 1, 2024 at 5:51 | comment | added | Panthera | It Works! Thank you for the help. I've really been stuck on this all because I wanted some fancy buttons on my website. Yes I incorrectly defined 'proportion', in my tests the math still wasn't quite working so through experimenting I used all +'s. What the issue actually seemed to be is that on the web the coordinate plane is positive going down and right. I had to adjust the definitions of A'-D' to account for this. I tried to make the math more obvious in the example. (Blue works and Red is my last experiment with all +'s wrong A'-D' values) | |
| Aug 1, 2024 at 5:44 | comment | added | Blue | @Panthera: It looks like your adjusted code works as expected, which saves me the trouble of double-checking my work. ;) ... As for the closed status of the question: I personally think it's clear enough and have voted to reopen. You could write to the "Requests for Reopen & Undeletion Votes" post in Meta to attract more attention. ... Good luck! | |
| Aug 1, 2024 at 5:28 | vote | accept | Panthera | ||
| Aug 1, 2024 at 5:12 | comment | added | Panthera | Sorry for the double comment, I don't know the etiquette around here but my question was closed for lack of details or clarity but I don't know what I'm missing. Any ideas for what I need to add? I also seem to not be able to tag you so hopefully you see these replies. | |
| Jul 31, 2024 at 7:29 | comment | added | Blue |
@Panthera: I've added a figure with a different aspect ratio to show that the geometry is quite flexible here. It "should" work, but I guarantee nothing. :) ... I'm afraid I can barely understand my own code the day after I write it, so reading someone else's isn't likely to be fruitful. (Although: In line 21, shouldn't proportion be defined as thickness/h to correspond to my q'/q? And in lines 21-29, if your ps and rs are like my $p'$s and $r'$s, shouldn't innerB and innerD use p-r?) ... Maybe I typo'd in my presentation; I'll take another look at it with fresh eyes later.
|
|
| Jul 31, 2024 at 7:12 | history | edited | Blue | CC BY-SA 4.0 |
Added figure with different aspect ratio
|
| Jul 31, 2024 at 6:41 | comment | added | Panthera | Appreciate the reply and all the visuals but unfortunately this seems to fail when height is not equal to width. I may misinterpreted something but if you'd like you can see the math in action here. The blue set is following your example. (All the math is in the JS section) | |
| Jul 30, 2024 at 8:30 | history | answered | Blue | CC BY-SA 4.0 |