nest2D icon indicating copy to clipboard operation
nest2D copied to clipboard

Question about more complex geometry

Open vmario89 opened this issue 3 years ago • 5 comments

Hi, this repo looks really interesting. I am thinking about some inkscape extension to make off. Is it possible to handle complex geometries which are wrapped in a group or which were combined in a regular SVG path with "d" attribute? In a real life szenario you are going to nest finalized parts but not their outlines only.

Example of more complex part would be the job to nest some living hinge objects which include a lot of inner lines: grafik

regards and thanks for your efforts ! =)

vmario89 avatar Aug 17 '20 11:08 vmario89

this sounds interesting. Honestly I have no idea what you are trying to do. What I would do is check if sth. like this can be done using clipper. If yes then it can be done in Nest2D. Maybe you can compute some "outer-shape" from your data and compute the placement for these

markfink avatar Feb 08 '21 08:02 markfink

Hi. Thanks for your reply! :-)

I am working a lot with production stuff in open source hardware means and looking a lot for nesting tools and libraries to work on nesting parts to build machines, models, items, artwork, etc.

Basically the idea of nesting is clear. But imagine you want to nest more complex shapes for producing things with a laser cutter, vinyl cutter, origami/papercraft. There you always have 2D parts which have an outer contour but also some data on their surfaces, like differently colored engraving lines, images/textures (coming from UV mapping of a 3D STL/OBJ file for example) or inner contours. While nesting you will lose all those data except the outer contours.

Some example from https://bilder.pcwelt.de/3974361_950x475.jpg grafik

It shows an unfolded paper model with textures.

vmario89 avatar Feb 08 '21 19:02 vmario89

great! Looks like you are uniquely skilled to solve this. Please report back. I am already curious what you come up with.

markfink avatar Feb 09 '21 07:02 markfink

Sadly not. I am not the deepest skilled math/physics/programmer to solve the ideas with code. I am kind of maker person. I am working a lot on documenting technologies like nesting. If you are interested have a look at

  • https://fablabchemnitz.de/pages/viewpage.action?pageId=55019828
  • https://fablabchemnitz.de/pages/viewpage.action?pageId=54362426
  • https://fablabchemnitz.de/pages/viewpage.action?pageId=55018148 sorry most sites are in german

regards, Mario

vmario89 avatar Feb 09 '21 11:02 vmario89

I think one solution would be to add attributes to the Item object to allow the extraction of its new position, or (even better) the affine transformation that was applied by the nester. Then the user could apply the same transformation to the image or textures that match with each object.

fitnr avatar Feb 14 '21 18:02 fitnr