Closed Durman closed 7 years ago
that will be because the Vectors/Vertices that are read by Objects In Mk3 don't read the radius of the Bezier/Splines. It might make sense to have a dedicated Curve In node, there are a lot of interesting ways to interpret curve data, so it's not a small development
Curve In node is good idea but i do not use radius parameter of curve yet. I just think how to improve vector attraction node. By radius I meant distance between attraction point and mesh. It is helpful to have maximum distance where attraction point could not to influence to mesh. Possible behavior of attraction point:
I see. I will continue with Curve Input node anyway. Maybe you can keep elaborating eventually I will understand (or someone reading this)
May be more interesting to use normal vector direction for attraction.
I managed to do correct behavior of point attraction.
But I did not use Proportional edit fall off node I forgot about it.)) For this goal it need have two analyzers nodes that absent in Sverchek now. The first must look for closest polygon to vector. The second must measure distance between plane of polygon and vector. For this I found perfect function in mathutils that can give even negative distance.
from mathutils.geometry import distance_point_to_plane
def get_dist(pt,pl_co,pl_no):
return distance_point_to_plane(pt,pl_co,pl_no)
for c,i in enumerate(faces):
dist.append(get_dist(point,verts[i[0]],normal_f[c]))
dist = [dist]
May be it will be useful to have such nodes in Sverchek.
I have some result it most likely work as I wanted. I use for this Proportional edit fall off node it is perfect but have some weaknesses: can't have negative values if speak about concave surface, absent possibility to set strength (altitude) of bulging. I used nodes next way:
And something strange.))
Interesting behavior of positive and negative vectors.
It is just some thoughts about this theme. I thought about vector attraction node it is normal working but have some limitation. At first it have not radius of action, all mesh are attracted by attraction points. In the Second attraction points having different direction of attraction reduce influence each other to the mesh. I have some result with my own script but it does not work perfectly.
I investigated that all points was moving to attraction point so with this way it is possible to have only concave curve.
May be it will be better to have parallel attraction. In this case will possible to have bulging curves.