nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.25k stars 233 forks source link

rollout uv texture to 3d #634

Closed nortikin closed 3 years ago

nortikin commented 9 years ago

https://gist.github.com/nortikin/1d316cc7d945e521996b this is working scripted node to output coordinates from layout to 3D. One thing left to make - handle proportions. it can be achived as coeffitient avarage from every edge length for example. or area coef. What do you think? i need to make layout as dxf file. could it be handy? i afraid it have too much theshold deviations. do not know initial code of Unwrapping.

zeffii commented 9 years ago

@nortikin, UV is one those things I have zero practical experience with in Blender. Maybe now is time for me to learn :)

nortikin commented 9 years ago

i will experiment in modelling, i have my own thoughts of it - algorythm from 5 steps:

  1. ordering polygons with order by vertex orientation
  2. separate triangles, indexing all
  3. define angles on diagonals and polygon' sides
  4. find formula to define exact edge length to be unfolded, rolled out.
  5. out to 3d

but if i can use uvlayout from blender, so why not?

Kosvor commented 9 years ago

my attempt: 23434 cant do polygons this way and every polygon corner outputed as another vertice, so nortikin's way better.

nortikin commented 9 years ago

my way not completed fully, will finish later, not now.

Kosvor commented 9 years ago

without script node: 444

nortikin commented 9 years ago

Спасибо, Костя )))