Alexey Vanzhula Posted June 27, 2015 Share Posted June 27, 2015 (edited) Hi. I need to convert this shape to perfect square with same orientation. Any ideas?.. http://i.imgur.com/ZRSZ366.png to_square.hipnc Edited June 27, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
Skybar Posted June 27, 2015 Share Posted June 27, 2015 Box SOP or Bound SOP, check 'Oriented Bounding Box' - could be a starting point. Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted June 27, 2015 Author Share Posted June 27, 2015 I need square, but not rectangle . For example with same perimeter Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted June 27, 2015 Author Share Posted June 27, 2015 Also source shape can be not so flat. In this situation bound SOP with orientation give me oriented not flat box, that not so good... Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted June 28, 2015 Share Posted June 28, 2015 (edited) Maybe get the primitive normal to orient it correctly and then pick one point to get circle radius and make a new square inside of this circle. Edited June 28, 2015 by fântastîque Mântragorîè 1 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted June 28, 2015 Author Share Posted June 28, 2015 (edited) Maybe get the primitive normal to orient it correctly and then pick one point to get circle radius and make a new square inside of this circle. It is very funny I need this square to get perfect circle in next stage, and you offered me to get circle first So another question: How to get perfect circle from any 4-corner polygon? Unfortunatelly Convert SOP can create non-proportional circle... Edited June 28, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted June 28, 2015 Author Share Posted June 28, 2015 So another question: How to get perfect circle from any 4-corner polygon? Unfortunatelly Convert SOP can create non-proportional circle... This is my solution for circle: circle.hip Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted June 28, 2015 Share Posted June 28, 2015 This is my solution for circle: I thought about something similar, only I would find the farthest point of your 4-corner figure from center of the circle to set this circle radius. This way I would get your figure perfectly included in a circle and only thing that's left would be to correct positions of its 3 points by using 90 degrees angles, starting from the point that was picked as a circle radius. 1 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted June 28, 2015 Author Share Posted June 28, 2015 (edited) I thought about something similar, only I would find the farthest point of your 4-corner figure from center of the circle to set this circle radius. This way I would get your figure perfectly included in a circle and only thing that's left would be to correct positions of its 3 points by using 90 degrees angles, starting from the point that was picked as a circle radius. I don`t need square any more. But any way thanx!!! SOLVED Edited June 28, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted June 28, 2015 Author Share Posted June 28, 2015 I thought about something similar, only I would find the farthest point of your 4-corner figure from center of the circle to set this circle radius. This way I would get your figure perfectly included in a circle and only thing that's left would be to correct positions of its 3 points by using 90 degrees angles, starting from the point that was picked as a circle radius. I still would like to see your solution in the form of a scene. It is very interesting Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted July 2, 2015 Share Posted July 2, 2015 I still would like to see your solution in the form of a scene. It is very interesting It's all in the picture. You have circle in a middle of your shape, oriented correctly. If you get the farthest point, to get radius, then you have one point exactly on the circle. To correct position of next point you need to move PI/2 from first point position to get next correct position on the circle. Once you have second point you need to move from it again PI/2 and so on, till you fix all points. Or you could set third point position by negating first point position thru center of a circle. So now you would get two opposite points and all you would need to do to get last two correct positions is rotate those two you have by PI/2 and correct last two points. Are you doing Perfect Circle tool? 1 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted July 2, 2015 Author Share Posted July 2, 2015 Are you doing Perfect Circle tool? Yes . It almost finished. Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted July 4, 2015 Author Share Posted July 4, 2015 Are you doing Perfect Circle tool? 1. https://youtu.be/DQQZVS_X2Jw 2. https://youtu.be/IEXoxkTnEY8 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted July 6, 2015 Author Share Posted July 6, 2015 https://youtu.be/r0eEPpMeYD8 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted July 6, 2015 Author Share Posted July 6, 2015 https://dl.dropboxusercontent.com/u/75376916/modo_RadialAlign_issue.mkv Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted July 6, 2015 Share Posted July 6, 2015 When selecting polygon island I think that it would make more sense to convert inside of the island to circle with user defined divisions rather than deforming in some way all other polygons. At least that's how I understand purpose of this tool. Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted July 6, 2015 Author Share Posted July 6, 2015 (edited) When selecting polygon island I think that it would make more sense to convert inside of the island to circle with user defined divisions rather than deforming in some way all other polygons. At least that's how I understand purpose of this tool. Override divisions already in my TODO list At least I dont want to correct rotation manually like in Mode. Just "Fix Rotation" checkbox in some cases. I think this tool more accurate. Also it will be controled via Qt events in the viewport to speedup some things... Edited July 6, 2015 by Alexey Vanzhula Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted July 6, 2015 Share Posted July 6, 2015 (edited) Fix Rotation? Not always you will have regular geometry around, so I think that i would add possibility to select look at point, so the circle would always start pointing at some direction and on top of it add user defined rotation offset. ... Also it will be controled via Qt events in the viewport to speedup some things... QT Events to speedup things? What for example? Edited July 6, 2015 by fântastîque Mântragorîè Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted July 6, 2015 Author Share Posted July 6, 2015 This is very subjective 'Fix Rotation' will need for some irregular selections. What is faster? Select destination point or toggle checkbox to automatically rotate shape a bit... I have to think! 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.