Does object fit into box? - Grasshopper2024-03-29T14:33:40Zhttps://www.grasshopper3d.com/forum/topics/does-object-fit-into-box?commentId=2985220%3AComment%3A881736&feed=yes&xn_auth=noYes. Because the minimum boun…tag:www.grasshopper3d.com,2013-07-11:2985220:Comment:8847972013-07-11T07:56:15.062ZJack Gelardihttps://www.grasshopper3d.com/profile/JackGelardi
<p>Yes. Because the minimum bounding box script sometimes returns a box with one dimension very small, but the other exceeds 2.5m. The volume is smallest, but this is not what I want.</p>
<p></p>
<p>Finally, after a few tries, this is my workaround, maybe too difficult but it seems to be working. Take a look, anyone :-)</p>
<p></p>
<p>For short introduction: I found ideal plane for bounding box. Then I rotated it in series of -45 to 45° and created a bounding box for all of these angles. Then I…</p>
<p>Yes. Because the minimum bounding box script sometimes returns a box with one dimension very small, but the other exceeds 2.5m. The volume is smallest, but this is not what I want.</p>
<p></p>
<p>Finally, after a few tries, this is my workaround, maybe too difficult but it seems to be working. Take a look, anyone :-)</p>
<p></p>
<p>For short introduction: I found ideal plane for bounding box. Then I rotated it in series of -45 to 45° and created a bounding box for all of these angles. Then I filtered solutions with both x,y dimensions shorter than 2.5m and that's it.</p>
<p></p>
<p>I also attached the script.</p>
<p></p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768833889?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768833889?profile=RESIZE_1024x1024" width="721"/></a></p> But if the Minimum BoundingBo…tag:www.grasshopper3d.com,2013-07-05:2985220:Comment:8821302013-07-05T17:11:25.045ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>But if the Minimum BoundingBox of the object is smaller than 2.5x2.5x12, you have your answer right? So the problem here is that the minimum bounding box exceeds those limits yet it <em>is</em> possible to find a 2.5x2.5x12 box that contains the shape?</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Tirol, Austria</p>
<p>But if the Minimum BoundingBox of the object is smaller than 2.5x2.5x12, you have your answer right? So the problem here is that the minimum bounding box exceeds those limits yet it <em>is</em> possible to find a 2.5x2.5x12 box that contains the shape?</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Tirol, Austria</p> Here is the picture - it is j…tag:www.grasshopper3d.com,2013-07-05:2985220:Comment:8820942013-07-05T13:43:32.997ZJack Gelardihttps://www.grasshopper3d.com/profile/JackGelardi
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768833194?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768833194?profile=RESIZE_1024x1024" width="721"></img></a> Here is the picture - it is just a sample of the mesh. I need to check, whether the green parts fit the box (2.5x2.5x12) or not. So far I checked it with help of bounding box in Rhino (see the box in picutre), but for every part I had to find the right CPlane - this is the tedious and boring…</p>
<p><a target="_self" href="http://storage.ning.com/topology/rest/1.0/file/get/2768833194?profile=original"><img width="721" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768833194?profile=RESIZE_1024x1024" width="721"/></a>Here is the picture - it is just a sample of the mesh. I need to check, whether the green parts fit the box (2.5x2.5x12) or not. So far I checked it with help of bounding box in Rhino (see the box in picutre), but for every part I had to find the right CPlane - this is the tedious and boring part.</p>
<p></p>
<p>Thanks</p> Can you draw us a picture?
-…tag:www.grasshopper3d.com,2013-07-05:2985220:Comment:8819692013-07-05T11:16:18.013ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>Can you draw us a picture?</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Tirol, Austria</p>
<p>Can you draw us a picture?</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Tirol, Austria</p> Not knowing the nuances of yo…tag:www.grasshopper3d.com,2013-07-04:2985220:Comment:8817562013-07-04T20:45:59.651ZChris Tietjenhttps://www.grasshopper3d.com/profile/ChrisTietjen
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768833348?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768833348?profile=RESIZE_1024x1024" width="721"></img></a> Not knowing the nuances of your geometry this is about as much of a guess as I can provide. Since you have objects with a high aspect ratio you just need to come up with a way to generate a vector that describes the orientation of the bounding box. In the case of these cylinders I'm using the normal vector at the…</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768833348?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768833348?profile=RESIZE_1024x1024" width="721" class="align-full"/></a>Not knowing the nuances of your geometry this is about as much of a guess as I can provide. Since you have objects with a high aspect ratio you just need to come up with a way to generate a vector that describes the orientation of the bounding box. In the case of these cylinders I'm using the normal vector at the ends.</p> It did not work, because the…tag:www.grasshopper3d.com,2013-07-04:2985220:Comment:8818322013-07-04T17:00:49.591ZJack Gelardihttps://www.grasshopper3d.com/profile/JackGelardi
<p>It did not work, because the smallest bounding box returns a box with smallest possible length for every dimension of the box I assume. The polysurfaces/meshes are narrow and long and the script puts them in the box diagonally, if you understand.</p>
<p>It did not work, because the smallest bounding box returns a box with smallest possible length for every dimension of the box I assume. The polysurfaces/meshes are narrow and long and the script puts them in the box diagonally, if you understand.</p> Why didn't the smallest bound…tag:www.grasshopper3d.com,2013-07-04:2985220:Comment:8817362013-07-04T16:16:32.810ZChris Tietjenhttps://www.grasshopper3d.com/profile/ChrisTietjen
<p>Why didn't the smallest bounding box method work?</p>
<p>Can you supply some sample polysurfaces?</p>
<p>Why didn't the smallest bounding box method work?</p>
<p>Can you supply some sample polysurfaces?</p>