Closed enzyme69 closed 10 years ago
try to list split vertices in number of units and than UV connect you may even not unwrap, and connect UV connection in 2 level!
@nortikin used to be able to do this.
We don't have it anymore.
Thanks @nortikin !!! the Sverchok Jedi.
![Uploading PrtScr capture_32.png . . .]()
List Split heh... I missed that :D
спасибі Никита @nortikin !!!! This clear up 3 Sverchok Concepts for me.
@zeffii does Lathe does Vectorized Input? Hmm... curious.
О, Боже мій! бабуся Лялька, це працює!
@ly29 @zeffii @nortikin Furthermore, any idea how I could arrange those Doll nicely in a structure kind of way?
Imagine each doll has Bounding Box. And I want to arrange it from left to right, so that the spacing fits the Bounding Box quite nicely.
[] [----] [-----] [---------] [-------------] [--------------] and so on.....
this too you will figure out.
oh my God, you speaking Russian!! OMG did you know, that Japan has own traditional boxes-in_boxes concept? there are same principle for that.
fibbonachi range and geometrical range could handle some kind simple way
I'm ukrainian, but now i hate Ukraine. Ukrainian fashistic government killing people in own country... sad. Study Russian better. Russia have not it's army on others territory
Yes the Fibonacci pattern ...hmm. It's like dejavu.
I have a Houdini friend he said:
But how to make sense of all this ( brain thinking... )
@zeffii I hope so.
@nortikin There is some kind of similar brain wave pattern between Japan and Russia. Yes in the way, in any country, I found government is corrupt. Let's talk politics in private emails :] I want to study Russian.
I think what my Houdini friend talking is: Fibonacci range and geometrical range indeed.
In my case, I need Bounding Box, but I cheated using just the first last point and then measure from 0,0,0. Hopefully though, the first / last point is at the bottom, not the one at the top. Close approximation. But to think about ...not very elegant, probably Bounding Box way is better.
This is the second time I encounter the same problem: the need of placing and distributing object nicely next to each other with "gap" between them.
Ok, looking at the BBOX vertices, I can sort of get the distance I needed. And just need gap.
Once I figure out, you help making it nicer please.
Weird.
It's weird.
Rounded, I found the radius of M dolls: 4,7,11,14,17,20,23
This means, when distributed properly: -4, 4, 7, 7, 11, 11, 14, 14, 17, 17, 20,20,23,23
The 1st doll center pivot should be at (0,0,0) 2nd = (11,0,0) 3rd = (29,0,0) 4th = (54,0,0) and so on...
I used to be pretty good at this in high school. But brain quite never understand it.
Must have a loose screw.
Crap, I miscalculated, that's not the Radius, that's the actual Diameter of each doll, because I use Bounding Box. Need to divide it by two.
Rounded, I found the radius of M dolls: 2,3,5,6,7,10,11
When laid out on the X: (2),2,3,3,5,5,7,7,8,8,10,10,11,11
Get Radius of 7 Dolls R0,R1,R2,R3,R4,R5,R6
Distance is: (R0 + R1), (R1+R2), (R2 + R3), (R3 + R 4 ) ... and so on. => wrong
2+3 = 5 2+3+3+5 = 13 2+3+3+5+5+7 = 25 2+3+3+5+5+7+7+8 = 40 ....
Stupid, I should not use rounding.
Get Radius of 7 Dolls R0,R1,R2,R3,R4,R5,R6
Laid out dolls on the X axis: -R0 | R0 R1 | R1 R2 | R2 R3 | R3 R4 | R4 R5 | R5 R6 | R6
Location for each doll to get distance: 0 R0+R1 R0+R1+R1+R2 R0+R1+R1+R2+R2+R3 R0+R1+R1+R2+R2+R3+R3+R4 R0+R1+R1+R2+R2+R3+R3+R4+R4+R5 R0+R1+R1+R2+R2+R3+R3+R4+R4+R5+R5+R6
dist0 = 0 dist1 = dist0+R0+R1 dist2 = dist1+R1+R2 dist3 = dist2+R2+R3 dist4 = dist3+R3+R4 dist5 = dist4+R4+R5 dist6 = dist5+R5+R6
I failed the math, trying the more Sverchok way.
List Slice node did not take Vectorized Input ....
Correction: List Slice does take Vectorized Input, probably didn't update properly. List Sum did not take Vectorized Input :p
List Sum need to have "Vectorized Input" enabled.
Feel I am not very smart with Math.
I can do it for 7 M-Dolls, but that manual List Join and lots of List Repeats makes me thinking. Those 30+ nodes can be simplified to simple Math or Scripted Node.
However, next time I encounter this again, I will be prepared.
There must be a more efficient way to achieve Fibonaccci style of list
I also need to have ability to add "gap" between dolls.
I shelf this for now.
if I have a bit more time sitting in front of computer, I either
I will go out and do some drawing.
jimmy got a link to a latest .blend, you look close and i'd like to try.. but am lazy to setup own dolls etc.
On Sun, Jun 22, 2014 at 4:55 AM, Jimmy Gunawan notifications@github.com wrote:
if I have a bit more time sitting in front of computer, I either
- Vectorized the List Sum node
- Make SN node that does Vectorized Sum
- simplify all those ugly with Math formula
I will go out and do some drawing.
- Jimmy Gunawan http://blendersushi.blogspot.com.au http://mayaspiral.blogspot.com.au http://houdoodles.blogspot.com.au http://puppetar.blogspot.com.au
— Reply to this email directly or view it on GitHub https://github.com/nortikin/sverchok/issues/244#issuecomment-46771030.
List sum and cumulative sum sounds like two modes that are needed for the List Math node. The list sum just sums all numbers in a list.
22 jun 2014 kl. 06:56 skrev "Dealga McArdle" notifications@github.com:
jimmy got a link to a latest .blend, you look close and i'd like to try.. but am lazy to setup own dolls etc.
On Sun, Jun 22, 2014 at 4:55 AM, Jimmy Gunawan notifications@github.com wrote:
if I have a bit more time sitting in front of computer, I either
- Vectorized the List Sum node
- Make SN node that does Vectorized Sum
- simplify all those ugly with Math formula
I will go out and do some drawing.
- Jimmy Gunawan http://blendersushi.blogspot.com.au http://mayaspiral.blogspot.com.au http://houdoodles.blogspot.com.au http://puppetar.blogspot.com.au
— Reply to this email directly or view it on GitHub https://github.com/nortikin/sverchok/issues/244#issuecomment-46771030.
— Reply to this email directly or view it on GitHub.
Hi Dealga, as soon as I got home, I will send you the file.
The Sum node is not Vectorized.
Reading this now... http://www.mathsisfun.com/algebra/sequences-sums-arithmetic.html
On Sunday, June 22, 2014, Dealga McArdle notifications@github.com wrote:
jimmy got a link to a latest .blend, you look close and i'd like to try.. but am lazy to setup own dolls etc.
On Sun, Jun 22, 2014 at 4:55 AM, Jimmy Gunawan <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
if I have a bit more time sitting in front of computer, I either
- Vectorized the List Sum node
- Make SN node that does Vectorized Sum
- simplify all those ugly with Math formula
I will go out and do some drawing.
- Jimmy Gunawan http://blendersushi.blogspot.com.au http://mayaspiral.blogspot.com.au http://houdoodles.blogspot.com.au http://puppetar.blogspot.com.au
— Reply to this email directly or view it on GitHub https://github.com/nortikin/sverchok/issues/244#issuecomment-46771030.
— Reply to this email directly or view it on GitHub https://github.com/nortikin/sverchok/issues/244#issuecomment-46772572.
@ly29 yes, that will be nice. I thought we have that already. cumulative sum will probably make this easier. this problem brings back my high school Math memory.
I may be close to the answer, that formula that does the placement and distribution automatically, because there is simple pattern.
Easier than having to distribute and alight objects with random shapes, right?
Align Node is probably next in mind.
For now, hopefully the dolls can align itself with X gap.
Known diameters of 7 dolls: D1,D2,D3,D4,D5,D6,D7
Sequence of placement pattern is like this: D1/2 + D2/2 D1/2 + D2 + D3/2 D1/2 + D2 + D3 + D4/2 D1/2 + D2 + D3 + D4 + D5/2 D1/2 + D2 + D3 + D4 + D5 + D6/2 D1/2 + D2 + D3 + D4 + D5 + D6 + D7/2
If I multiply all by two: 0.5 * (D1 + D2) 0.5 * (D1 + 2_D2 + D3) 0.5 * (D1 + 2_D2 + 2_D3 + D4) 0.5 * (D1 + 2_D2 + 2_D3 + 2_D4 + D5) 0.5 * (D1 + 2_D2 + 2_D3 + 2D4 + 2 D5 + D6) 0.5 * (D1 + 2_D2 + 2_D3 + 2D4 + 2 D5 + 2* D6 + D7)
Another word: 0.5 * (D1 + D2) 0.5 * (D1 + 2D2 + D3) 0.5 * (D1 + 2(D2 + D3) + D4) 0.5 * (D1 + 2(D2 + D3 + D4) + D5) 0.5 * (D1 + 2(D2 + D3 + D4 + D5) + D6) 0.5 * (D1 + 2*(D2 + D3 + D4 + D5 + D6) + D7)
yeah, list math should get an accumulator, i would also argue for a dimensions node, to accompany bbox, so you get convenient width+height+depth
Another word: 0 R1 + R2 R1 + 2R2 + R3 R1 + 2(R2+R3) + R4 R1 + 2(R2+R3+R4) + R5 R1 + 2(R2+R3+R4+R5) + R6 R1 + 2*(R2+R3+R4+R5+R6) + R7
If we know the radius of 7 dolls (r1-r7), the center of: doll1 = 0 doll2 = sum of r1-r2 doll3 = sum of r1-r3 + sum of r2 doll4 = sum of r1-r4 + sum of r2-r3 doll5 = sum of r1-r5 + sum of r2-r4 doll6 = sum of r1-r6 + sum of r2-r5 doll7 = sum of r1-r7 + sum of r2-r6
Yes I think recursive and multi sum will help and this is probably close to be solved.
Another word: 0 R1 + R2 R1 + R2 + R3 + (R2) R1 + R2 + R3 + R4 + (R2 + R3) R1 + R2 + R3 + R4 + R5 + (R2 + R3 + R4) R1 + R2 + R3 + R4 + R5 + R6 + (R2 + R3 + R4 + R5) R1 + R2 + R3 + R4 + R5 + R6 + R7 + (R2 + R3 + R4 + R5 + R6)
SN is the only answer for now.
it's good to have the gut feeling on relatively simple conceptual problems "hey, this is easy, and this uses way too many nodes", generally I think that gut reaction is correct. If it's tricky on simple setups then imagine the node-soup you'd end up with if the problem was more complicated.
Yes, good that I use my brain a bit on this. This is simple after all.
or accumulate list
node
Also, would it be necessary to have First Last node also output Others in between?
Although List Slice is kind of doing it and it works for Vectorized Input, it might still be handy.
I have a feeling that for this case, we can also graph the interpolation and then project it to get a nice geometry bounding box distribution.
[1, -1] should be fine on slice node, I agree it's border-case useful to have a drop FirstLast node
. Would we need it because we have to compensate for the lack of some other node, or is it a really useful node. Making the node, as usual, is not difficult -- but is it atomic enough?
Aha, yes get to index with -1.
I am stuck with this, very embarrassing. UV Connect is not doing what I expected to.
Of maybe separating UV Plane into U lines and V lines (?)
https://www.dropbox.com/s/msoq2rcpmwgtikd/Matryoshka_007.blend