Computer Aided Design

You are not logged in. [ Login ] Why log in
(NOTE: Login is not required to post)

Replacing fence panels, 1D nesting

11/4/13       
Gordon Haverland  Member

I have been asked to replace the fence panels in a 20 or so year old fence. The field of boards in the panels, is mostly vertical 1x6. Probably lots of fences like that around. How this one is different, is that the length of the panels is not constant, or even close to constant. The smallest span is 34 inches, and the longest is 129 inches. The average is a bit over 9 feet.

I wrote a program (in perl) to calculate the gaps: all boards the same width, the edge boards can be smaller or the center board can be smaller. And it seems to work quite nicely, producing gaps of quite close to 0.5 inches across the 51 panels I presented it with.

In the program, are nominal and actual sizes for many kinds of planed 1x6. If I change to rough lumber, I'll need to alter the program for the larger size of rough lumber.

You may not know the Perl environment well, but it isn't unusual to find perl programs and libraries distributed freely, which is what I am intending.

Are there other things this program should do?

The image shows 3 smoothed histograms of the gaps produced: Try 1 (red) is all boards being the same width (5.5 inches). Try 2 is sometimes using 3.5 inch wide edge boards. Try 3 is sometimes using 3.5 inch edge boards or sometimes using a 3.5 inch board in the center of the panel.


View higher quality, full size image (640 X 480)

11/13/13       #2: Replacing fence panels, 1D nesting ...
Gordon Haverland  Member

Talking to myself. I suspect symmetry is important to fence panels. I wrote a number of subroutines to fit narrower boards into a field of full width boards. Some subroutines only work for special circumstance.

If the number of boards is odd, putting a narrower board in the center of the field.

If the number of boards is even, putting a pair of narrower boards in the center. If the number of boards is a multiple of 3, putting a pair of narrower boards at the 1/3 and 2/3 position. If the number of boards is greater than 1, putting a pair of narrower boards at the two edges.

Triplets: if the number of boards is odd, a board on each edge and a board in the center. If the number of boards is a multiple of 4, putting boards at 1/4, 2/4 and 3/4.

Quadruplets: If the number of boards is a multiple of 3, boards at 0/3, 1/3, 2/3 and 3/3.

Other patterns could be examined for, but I thought that was enough to start.

The gaps were evaluated by comparing them to the gap preferred and calculating a penalty based on the ratio of widths for the narrower board, and how many substitutions were being made.

I have 37 unique panel widths (out of 52) in a fence I can walk a few feet to examine, ranging from 34 to 129 inches, but few below 100 or above 120.

With all these different methods, and different sizes of boards, lots of possibilities come up. With S4S lumber, I seen 646 different solutions for gaps between 0.25 and 0.75 inches, preferring 0.5 inches. Using kind of a magic way of evaluating all these solutions, what seems to catch most situations is to accept all boards being full width, if that is the best solution calculated. The next solution to try, is to replace the two edge boards with narrower boards. Third choice is to replace the center board with a narrower one, if the number of boards is odd. What was left after this, was the 34 inch wide panel. None of the remaining solutions was appetizing, so after walking to the fence section and measuring it more closely, I think the best solution is to custom rip edge boards (4.75 inches). So, another subroutine to do this is in the works.

I repeated the run, assuming "rough" lumber (actual width equals nominal width). The same 3 mechanisms adequately handle all 37 panel widths (only 553 different solutions to look through).


Post a Response
  • Notify me of responses to this thread
  • Subscribe to email updates on this Forum
  • To receive email notification of additions to this forum thread,
    enter your name and email address, and then click the
    "Keep Me Posted" button below.

    Please Note: If you have posted a message or response,
    do not submit this request ... you are already signed up
    to receive notification!

    Your Name:
    E-Mail Address:
    Enter the correct numbers into the field below:
     

    Date of your Birth:



    Return to top of page

    Buy & Sell Exchanges | Forums | Galleries | Site Map

    FORUM GUIDELINES: Please review the guidelines below before posting at WOODWEB's Interactive Message Boards (return to top)

  • WOODWEB is a professional industrial woodworking site. Hobbyist and homeowner woodworking questions are inappropriate.
  • Messages should be kept reasonably short and on topic, relating to the focus of the forum. Responses should relate to the original question.
  • A valid email return address must be included with each message.
  • Advertising is inappropriate. The only exceptions are the Classified Ads Exchange, Machinery Exchange, Lumber Exchange, and Job Opportunities and Services Exchange. When posting listings in these areas, review the posting instructions carefully.
  • Subject lines may be edited for length and clarity.
  • "Cross posting" is not permitted. Choose the best forum for your question, and post your question at one forum only.
  • Messages requesting private responses will be removed - Forums are designed to provide information and assistance for all of our visitors. Private response requests are appropriate at WOODWEB's Exchanges and Job Opportunities and Services.
  • Messages that accuse businesses or individuals of alleged negative actions or behavior are inappropriate since WOODWEB is unable to verify or substantiate the claims.
  • Posts with the intent of soliciting answers to surveys are not appropriate. Contact WOODWEB for more information on initiating a survey.
  • Excessive forum participation by an individual upsets the balance of a healthy forum atmosphere. Individuals who excessively post responses containing marginal content will be considered repeat forum abusers.
  • Responses that initiate or support inappropriate and off-topic discussion of general politics detract from the professional woodworking focus of WOODWEB, and will be removed.
  • Participants are encouraged to use their real name when posting. Intentionally using another persons name is prohibited, and posts of this nature will be removed at WOODWEB's discretion.
  • Comments, questions, or criticisms regarding Forum policies should be directed to WOODWEB's Systems Administrator
    (return to top).

    Carefully review your message before clicking on the "Send Message" button - you will not be able to revise the message once it has been sent.

    You will be notified of responses to the message(s) you posted via email. Be sure to enter your email address correctly.

    WOODWEB's forums are a highly regarded resource for professional woodworkers. Messages and responses that are crafted in a professional and civil manner strengthen this resource. Messages that do not reflect a professional tone reduce the value of our forums.

    Messages are inappropriate when their content: is deemed libelous in nature or is based on rumor, fails to meet basic standards of decorum, contains blatant advertising or inappropriate emphasis on self promotion (return to top).

    Libel:   Posts which defame an individual or organization, or employ a tone which can be viewed as malicious in nature. Words, pictures, or cartoons which expose a person or organization to public hatred, shame, disgrace, or ridicule, or induce an ill opinion of a person or organization, are libelous.

    Improper Decorum:   Posts which are profane, inciting, disrespectful or uncivil in tone, or maliciously worded. This also includes the venting of unsubstantiated opinions. Such messages do little to illuminate a given topic, and often have the opposite effect. Constructive criticism is acceptable (return to top).

    Advertising:   The purpose of WOODWEB Forums is to provide answers, not an advertising venue. Companies participating in a Forum discussion should provide specific answers to posted questions. WOODWEB suggests that businesses include an appropriately crafted signature in order to identify their company. A well meaning post that seems to be on-topic but contains a product reference may do your business more harm than good in the Forum environment. Forum users may perceive your references to specific products as unsolicited advertising (spam) and consciously avoid your web site or services. A well-crafted signature is an appropriate way to advertise your services that will not offend potential customers. Signatures should be limited to 4-6 lines, and may contain information that identifies the type of business you're in, your URL and email address (return to top).

    Repeated Forum Abuse: Forum participants who repeatedly fail to follow WOODWEB's Forum Guidelines may encounter difficulty when attempting to post messages.

    There are often situations when the original message asks for opinions: "What is the best widget for my type of shop?". To a certain extent, the person posting the message is responsible for including specific questions within the message. An open ended question (like the one above) invites responses that may read as sales pitches. WOODWEB suggests that companies responding to such a question provide detailed and substantive replies rather than responses that read as a one-sided product promotion. It has been WOODWEB's experience that substantive responses are held in higher regard by our readers (return to top).

    The staff of WOODWEB assume no responsibility for the accuracy, content, or outcome of any posting transmitted at WOODWEB's Message Boards. Participants should undertake the use of machinery, materials and methods discussed at WOODWEB's Message Boards after considerate evaluation, and at their own risk. WOODWEB reserves the right to delete any messages it deems inappropriate. (return to top)


  • Forum Posting Help
    Your Name The name you enter in this field will be the name that appears with your post or response (return to form).
    Your Website Personal or business website links must point to the author's website. Inappropriate links will be removed without notice, and at WOODWEB's sole discretion. WOODWEB reserves the right to delete any messages with links it deems inappropriate. (return to form)
    E-Mail Address Your e-mail address will not be publicly viewable. Forum participants will be able to contact you using a contact link (included with your post) that is substituted for your actual address. You must include a valid email address in this field. (return to form)
    Subject Subject may be edited for length and clarity. Subject lines should provide an indication of the content of your post. (return to form)
    Thread Related Link and Image Guidelines Thread Related Links posted at WOODWEB's Forums and Exchanges should point to locations that provide supporting information for the topic being discussed in the current message thread. The purpose of WOODWEB Forums is to provide answers, not to serve as an advertising venue. A Thread Related Link that directs visitors to an area with inappropriate content will be removed. WOODWEB reserves the right to delete any messages with links or images it deems inappropriate. (return to form)
    Thread Related File Uploads Thread Related Files posted at WOODWEB's Forums and Exchanges should provide supporting information for the topic being discussed in the current message thread. Video Files: acceptable video formats are: .MOV .AVI .WMV .MPEG .MPG .MP4 (Image Upload Tips)   If you encounter any difficulty when uploading video files, E-mail WOODWEB for assistance. The purpose of WOODWEB Forums is to provide answers, not to serve as an advertising venue. A Thread Related File that contains inappropriate content will be removed, and uploaded files that are not directly related to the message thread will be removed. WOODWEB reserves the right to delete any messages with links, files, or images it deems inappropriate. (return to form)