I have a shape defined by a Bézier spline that has a width, and I want to give it an attractive force.
Is such a thing even doable without approximating it?
Edit:
To integrate the area, I think I will first have to express the answer for a line (crossection) of the path, then integrate it through the path.
Edit:
Moving into the teritory of actually answering the question, but I think I'll keep editing the question until I actually have a final answer.
So, now I want to rename the spline, it will new be defined by $$Q(t) = (1-t)^3\ Q_0+(1-t)^2t\ Q_1+(1-t)t^2\ Q_2+t^3\ Q_3$$ rearranging gives $$Q_3\ t^3+Q_2\ (t^2-t^3)+Q_1(t-2t^2+t^3)+Q_0(1-3t+3t^2-t^3)\\=\\(\underbrace{Q_3-Q_2+Q_1-Q_0}_{\mathcal{A}})\ t^3+(\underbrace{Q_2-2Q_1+3Q_0}_{\mathcal{B}})\ t^2+(\underbrace{Q_1-3Q_0}_{\mathcal{C}})\ t+Q_0$$
Finding the speed vector and its square $Q′(t)$:$$Q′(t)=3\mathcal{A}t^2+2\mathcal{B}t+\mathcal{C}$$ $$(Q′(t))^2=9\mathcal{A}^2t^4+4\mathcal{B}^2t^2+\mathcal{C}^2+12\mathcal{A}\mathcal{B}t^3+6\mathcal{A}\mathcal{C}t^2+4\mathcal{B}\mathcal{C}t$$
Now I'm going to find $P_0(t)$ and $P_1(t)$.
Then, I want to rotate the speed vector left and right, putting $P_0$ on the left side and $P_1$ on the right. Rotating a vector $(x,\ y)$ gives $(-y,\ x)$. Rotating right gives $(y,\ -x)$.
We also devide by the length of the speed vector to get a unit vector. Then multiplying with the spline width $W$.
We name the length of the speed vector $$\Gamma(t)=\sqrt{Q′_x(t)^2+Q′_y(t)^2}$$
We get $$P_0(t) = Q(t) + W{(-Q′_y(t),\ Q′_x(t))\over\Gamma(t)}\\[1.5em]P_1(t) = Q(t) + W{(Q′_y(t),\ -Q′_x(t))\over\Gamma(t)}$$
Can I now just do this? $$\iint{1 \over \lVert P(u,t)\rVert ^2}\Gamma(t)\ du\ dt$$
I'm trying to express: the force of attraction by a spline cross section times how far the cross section moves at time $t$.




Take a look at the following illustration featuring a curve similar to the one you have shown and the acceleration vectors that have the nice (ill-known) representation:
$$a=(1-t)(A-2B+C)+t(B-2C+D) \ \ \text{for} \ \ t \in [0,1]$$
Isn't it a tool for expressing what you call attraction ?
Matlab program for the figure: