I have a node setup as in the screen below. I try to create a curve line between every two instances (at index and index+1) given by the "Instance on points" node. When I try to do it for the specific two indices - it works as expected, but once I connect the "Index" node, the Sample at Index node output, become a function, and Quadratic Bezier does not accept it's result anymore. I understand why it's happening and this is indeed expected, but I have no idea how to achieve my goal - is it even possible? I use Blender 3.5.0
I don't know if something more concise or shorter can be done. But that may be a solution.
Here is the result from six mesh points:
The group input has three slots:
- the mesh line
- the resolution for each quadratic line
- a Z delta for the bottom part of the quadratic line
From the input geometry, it creates a mesh line that as a vertex count that is the resolution multiplied by the vertex amount (one resolution amount for each interval + one for the last vertex).
The "set position" is calculated below.
This is calculating the vertex position from the quadratic formula given three points.
The formula (parametric on "t") is the following:
P(t) = P0*t^2 + P1*2*t*(1-t) + P2*(1-t)^2
Next, calculating the 3 points we need for each segment of the initial shape/mesh:
which cuts the indices into chunks that are at the resolution size. Then takes mesh points and their middle lowered on Z by the input parameter.
PS: I would be very interested to see a solution that uses only three points on a bezier curve with the good tuning of the handles to have the same result. Is it possible? What is the math?