A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Cyrus » Tue Apr 26, 2011 8:59 am
Hi,
I am creating a software which facilitates optimized packing of objects in a container.
I start to place an object at a empty location which is closest to the bottom-rear-left of a container
Is there way to find a position which is closest to the bottom-rear-left of a container? If the container is empty then I am using the starting position as the location where the container was placed with a small buffer for the container's wall thickness. But if there objects already present in the container, then how can I find the empty position nearest to bottom-rear-left of the container?
Thanks in advance.
Cyrus
-
Cyrus
-
- Posts: 49
- Joined: Mon May 17, 2010 1:04 am
by JernejL » Tue Apr 26, 2011 1:48 pm
you could use convex cast to probe how distant a object can be placed based on a certain projection line.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by Julio Jerez » Tue Apr 26, 2011 10:41 pm
This is a comple problemto solve exactly, and it fall into thePM complete call of computational geometry.
I have done it for 2d in only fo AABB of irragulat shape, and it is not an eassy solution, also they are no best solutio either
Like Delfi say , maybe you can settle for a good solution by using Convex Cast.
what are you doing this for?
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by JernejL » Wed Apr 27, 2011 9:15 am
You could scale up the collision you are placing and create larger projection, scanning a larger area - any location within the result will be a balid non-colliding place to put the body.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 3 guests