Closed AgustinJB closed 10 years ago
Ok, now I think it works just like in 3d view:
It's kind of tricky to understand quaternions...
@ly29 I don't understand what you mean about the reorder of the inputs.
@AgustinJB sorry for late responce. I tested. It seems Rotation Node works ok now.
I'm glad to hear @mifth. I'll test it some more before pushing to master.
In the meanwhile I'm trying with mirror node:
Does someone know if I can use enumproperty and select various options at the same time? Or I have to use boolproperty for doing that?
@AgustinJB have a look at index visualizer (viewer_indices.py)
Thank you for the tip @zeffii!!
I've added mirror node:
It's in early stages, but it works pretty well. Maybe I should add edge and poly inputs/outputs, and maybe study clipping and merging options.
I've been looking at the source code of mirror modifier, but right now it's hard to understand to me, so I'm not sure if it could be usefull to the rest of the options.
@AgustinJB will there be mirror from plane/point? because there are three type of mirror:
Also, if set scaleX = -1.0 to Matrix.... possibly it will be like a mirror?
@mifth it is if you scale around local zero, but if you need define some other center point?
then i dunno know :(
@nortikin I'll look into that mirrors modes tomorrow. I also want to get clipping working.
I've added clipping option. It need some fixing for multiple center inputs, but it works pretty well I think.
Do you think edge/polys inputs/outputs should be added?? Right now it's needed just a list repeater.
no need to add edges and polygons, but only for flipping normal (reverse plygons indexes)
@nortikin I've been looking into those others symmetry methods. Are they the ones described in this web: http://www.mathsisfun.com/geometry/symmetry.html
Because I think the last two can be made with rotation Axis/Angle, which is in rotation node.
Maybe I can add the option to input a matrix to define an arbitrary plane of mirroring?
@AgustinJB you have to understand that 2d is not 3d https://drive.google.com/file/d/0B6KMvjWAjGiyb1k2NHVXMnJPajg/edit?usp=sharing here is explanation. as i can drew.
sorry, just
uploaded new file the same link. mirror over point fixed
Uhmm, right, I see. Yep, I'll do that!
1,2,3 points. depending on how many points it builds mirror. Or if matrix inserted in the same socket, it should consider it as plane, as three points. it is my proposal, but you make as you see
total - two sockets - one for vertices, one for point/line/plane/matrix
or three - for polygons to make them reverse slice polygon[::-1]
Ok, I got the three methods now:
It needs some testing, but my first tests were ok. I'm not sure if clipping has sense now.
WOW!!!!!! will test
Traceback (most recent call last):
File "/home/nikitron/.config/blender/2.71/scripts/addons/sverchok-master/nodes/basic_view/viewer.py", line 217, in update
cache_viewer_baker[n_id+'m'] = dataCorrect(propm)
File "/home/nikitron/.config/blender/2.71/scripts/addons/sverchok-master/data_structure.py", line 288, in dataCorrect
if dept < 2:
TypeError: unorderable types: NoneType() < int()
when matrix not connected Everything works well
Oh, right, I forgot to add a default matrix. I'll add it later.
I've been testing all the new nodes again and they seem to work properly. If you are ok, I will merge this branch with master, leaving new nodes in beta tab.
yes
Hi guys!
I know that matrix is a very powerful tool, but sometimes it's kind of difficult to use and understand. Thinking in that, I've made two nodes for general rotation and scaling in space. Both based on a center point, and rotation also in an arbitrary direction.
I've made a new branch so you can test it and tell me what you think.
![rotate](https://cloud.githubusercontent.com/assets/5990821/3693635/d25c59ba-1369-11e4-8564-f4993e025fd8.jpg)