CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 13, 2017, 14:45:58 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Minimize object extrema?  (Read 106 times)
kvom
CNC Jedi
*****
Offline Offline

Posts: 1404


View Profile
« on: December 07, 2017, 10:25:30 am »

I currently have a project whose outer boundary is very irregular.  In order to get it to fit on some standard stock material I had to rotate it by eye so that the Y extreme was (approximately minimized).  It occurred to me that a plugin could probably have done this easily.
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3256



View Profile
« Reply #1 on: December 07, 2017, 11:22:06 am »

Maybe the convex hull plugin could help with this ? http://www.cambam.co.uk/forum/index.php?topic=6352.msg50971#msg50971

It creates a polyline and the extrema of that line gives the overall dimensions of everything inside it.

Edit: Sorry, I forgot that selecting one or more objects then, Tools->Get object extremas , also reports the overall dimensions of all selected objects.  Roll Eyes
« Last Edit: December 07, 2017, 11:29:43 am by EddyCurrent » Logged
jk
Storm Trooper
***
Offline Offline

Posts: 215


View Profile
« Reply #2 on: December 07, 2017, 11:53:44 am »

Computing convex hull is the first step, then you should find the oriented minimum bounded box and rotate the geometry by it's angle )

Great idea for plugin by the way. I meet this very problem more than a few times and never thought it should be automated.
Logged
jk
Storm Trooper
***
Offline Offline

Posts: 215


View Profile
« Reply #3 on: December 09, 2017, 03:18:48 am »

Did the small script just for this task:

http://www.cambam.co.uk/forum/index.php?topic=7020.0
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.106 seconds with 18 queries.

Copyright © 2008 HexRay Ltd. | Sitemap