TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Q1241274614 on October 31, 2011, 10:37:07 AM

Title: the minimum length B
Post by: Q1241274614 on October 31, 2011, 10:37:07 AM
The known: sample A1, A2 and fixed width A template.

Results: the minimum length B

[
Title: Re: the minimum length B
Post by: Crank on November 01, 2011, 02:59:29 PM
Do a search on bounding box and you find your answer.

Looking at your picture, I think B can be less when A2 is aligned with the top side.
Title: Re: the minimum length B
Post by: CAB on November 01, 2011, 06:10:22 PM
My guess is that the OP is wanting the LISP to position the shapes A1 & A2 for optimizing the BB.
Title: Re: the minimum length B
Post by: Ketxu on November 01, 2011, 10:26:48 PM
My guess is that the OP is wanting the LISP to position the shapes A1 & A2 for optimizing the BB.
and with constant A.
But i thing all member will not like the way of posting of OP
Title: Re: the minimum length B
Post by: pBe on November 02, 2011, 01:43:59 AM
My guess is that the OP is wanting the LISP to position the shapes A1 & A2 for optimizing the BB.

I second that.

Title: Re: the minimum length B
Post by: CAB on November 02, 2011, 10:17:25 AM
Looks like there are quite a few out there to choose from.
https://www.google.com/search?q=lisp+%22nesting+software%22&hl=en&num=10&lr=&ft=i&cr=&safe=images&tbs=

To design a lisp routine I think you might model it after the tetras game.
Find the largest part and place it in the bottom left corner.
Then the next largest, place it to touch the touch the first part.
Manipulate it until it makes the smallest bounding box when parts are combined.
Then move it to maintain a minimum offset distance.

Looks like bounding box would not be the best tool. A boundary may work better in evaluating the combining shapes.

Just thinking aloud.
Back to quiet mode. 8-)


PS Welcome to the Swamp Q#*#