Random 2D Pattern using PDF/SVG

Next
 From:  Andy (ANDYA)
9903.1 
I would like to import a 2D outline (ideally Inkscape PDF) and then create a pattern on a surface using it. The pattern would be made up of multiple non-overlapping copies of the design in random sizes and rotations, covering the surface.

Is there a script already available to do this?

If not does the API have the necessary functionality to write a script to do this?

I know this could be done by hand but I've tried it and it's very tedious. It would be nice to keep hitting a button until a script generates a "pleasing" result.

Thanks, Andy
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9903.2 In reply to 9903.1 
Hi Andy, I'm not aware of a script that will do that currently. There is probably enough functionality set up in the node editor to do something like that, you would probably want to use the Flow command to apply a 2D planar pattern onto a surface.

But it will probably take a pretty considerable effort to make an automated process to do that, especially the part about generating non-overlapping copies.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9903.3 
Try Elephant for that ! ;)
English version on the right!
https://moiscript.weebly.com/biblio-elephant.html
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9903.4 In reply to 9903.1 
Hi Andy, also the problem of placing objects into a container without overlapping existing ones is called "packing" : https://en.wikipedia.org/wiki/Packing_problems that's what you would want to search for to find research papers for related algorithms.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 9903.5 deleted 21 Aug 2020 by MICHAEL GIBSON
 

Reply to All Reply to All