sessionbeer Posted December 14, 2021 Share Posted December 14, 2021 (edited) Given a rectangular polygon of any size and width, is there a way to work out the number of Rows and Columns to cut it up into near-perfect squares as possible? The second image is manually guessing Rows and Columns to achieve as close to square as possible. Edited December 14, 2021 by sessionbeer Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 14, 2021 Share Posted December 14, 2021 You could use channel references to the size parameters and a multiplier like so: Quote Link to comment Share on other sites More sharing options...
sessionbeer Posted December 14, 2021 Author Share Posted December 14, 2021 Thanks, @konstantin magnus I had tried something like that but couldn't get the Rows and Columns to be more square (not stretched) Quote Link to comment Share on other sites More sharing options...
dleonhardt Posted December 14, 2021 Share Posted December 14, 2021 I would use this expression: ch("rows") * (ch("sizex") / ch("sizey")) on the column parameter. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 14, 2021 Share Posted December 14, 2021 5 hours ago, sessionbeer said: Rows and Columns to be more square You have confused X and Y. Just look at my image closely. Quote Link to comment Share on other sites More sharing options...
sessionbeer Posted December 15, 2021 Author Share Posted December 15, 2021 Thank you @konstantin magnus and @dleonhardt Both your methods work great! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.