There was a discussion between regis and me on a way to create 2D patterns which can be transformed to 3D Patterns
The starting point should be a drawing (a sketch or a svg image). In next steps the segments should become configurable array objects.
Here is my first prototype.
it creates a pattern on top of a sketch.
pattern generator
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: pattern generator
wowow this is really cool. Thanks a bunch. I would like to know how you did this in the code. really impressive and starting to look great.
Does it also work with draft objects?
Does it also work with draft objects?
Re: pattern generator
Interesting development!
Re: pattern generator
Looks great! Can this also be used to fill a 3D surface? For example to clad organic shaped buildings?
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: pattern generator
I split the functionality in 3 methods
1. combine some drawings (Sketcher/Draft 2D) to an array
2. calculate the cut points
3. delete edges by selection
4. generate pattern
next steps:
* make objects/steps 1,2,4 parametric
* look for an idea to get step 3 parametric too - but it's the topo naming curse on it
* map the patterns onto a 3D surface
for testing: the methods are in the nurbs wb
feedback welcome
demo file https://www.dropbox.com/s/lm1jyfk5fa4yq ... FCStd?dl=0
script: https://github.com/microelly2/freecad-n ... tern_v2.py
EDIT:
for the script networkx is required
sudo apt-get install python-networkx
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: pattern generator
pattern on surfaces - inspired by sverchok
started with two simples sketches and my pattern generator
started with two simples sketches and my pattern generator
Re: pattern generator
Jesus, You are pretty wild.
There is no limit to your creativity
If on linux and it doesn't work probably might need to install these in terminal
There is no limit to your creativity
If on linux and it doesn't work probably might need to install these in terminal
Code: Select all
sudo apt install python-pip
Code: Select all
sudo apt-get install python-networkx
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: pattern generator
Done.microelly2 wrote: ↑Tue Feb 12, 2019 4:11 pm next steps:
* make objects/steps 1,2,4 parametric
* look for an idea to get step 3 parametric too - but it's the topo naming curse on it
* map the patterns onto a 3D surface
Now the qeustion is: what are use cases of the mapping of the pattern to the surface?
We can create bump maps, surfaces patches
or simply have the pattern for texturing purposes.