So I've got a couple shapes on a mesh defined in an order. For example: shape01, shape02, shape03 ... I could have any number of shapes.
To do what I want, I need to get the per-vertex squared distance between each adjacent shape.
It's relatively easy to get the vectors between the shapes: Make an array of shapes, remove the first index on one branch, remove the last index on another branch, then subtract the two branches.
The problem I have is now, how do I get the squared length of each vector?
Put another way, I have vectors in arrays like this [[v1,v2,v3,v4],[v5,v6,v7,v8] ... ], and I want to get lengths like this [[L1,L2,L3,L4],[L5,L6,L7,L8] ... ]
If worse comes to worse, I'll start digging through the api and write my own node, but I really would like to avoid that. Any help would be appreciated.
Oops, nevermind. The length node does, indeed, work. I was just visualizing it incorrectly
Sometimes just asking the question gets your answer 🙂