Git Product home page Git Product logo

nesting's Introduction

nesting

Graphical algorithm to find a possible solutions to 2D nesting problems.

#Definition of nesting problems

Irregular Strip Packing problems are a type of Cutting and Packing problems where the small pieces have non-regular and complex shapes, usually known as irregular shapes. In these problems, also known as Nesting problems, the small pieces cannot overlap each other and must be placed inside a stock sheet. The goal is to minimise the unused stock space inbetween the placed pieces, this is, the overall waste.

#Geometry processing as nesting algorithms bottleneck

Most nesting algorithms improve existing solutions iteratively, searching the neighbourhood of the given solutions, by moving some pieces to different places. Main bottleneck constraining these moves is the computational cost of geometry processing.

Polygonal representations of the layout (stock sheet with placed pieces) have a greater computational cost when solving problems with complex shapes, due to repetitive and slow trigonometric calculations. Raster representations, despite being less precise, can be rendered by the GPU on an period of time that is practically independent of the shapes complexity.

This approach uses a raster representation of the layout, generated by the GPU, in order to reduce run time.

#Implementation

Current implementation generates a feasible layout for a problem, iteratively placing the pieces one by one according to a minimizing waste criteria. Layout is rendered in the graphical device (using OpenGL) and the image produced is processed. The image processing step detects feasible placements for a piece (using OpenCV). Also, generated images of the layout are stored and reused, saving rendering time as well.

nesting's People

Contributors

sasam2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.