Hello everyone,
I’m looking for some ideas on how align/project some vertices belonging to a group on general axis passing through two specific vertices A and B (just to give them a name)
I was thinking to place the cursor on A, rotate the local coord system in order to get X (or Y or Z) axis pointing to B and then scale the vertex of the group.
But I0m not quite sure it would work plus get the correct rotation of the system is not so simple…
yes, almost. I mean, let’s consider a shirt XXXS size to be adapted on a guy XXXL: shrinwrap modifier will project the shirt vertices on the guy, but you will get just a little tattoo in the middle of the chest of the big guy
You will need first to strecth the shirt boundaries and after that shrinkwrap modifier can do the job.
To do that I thought an algorithm as written in my previous post
Not sure i follow since your last post, but for aligning verts to an arbitrary line you could construct a space aligned to that line and bring the verts to that space.
x = (B - A).normalized()
y = Vector([0,0,1]).cross(x).normalized()
z = x.cross(y).normalized()
line_space = Matrix(x,y,z)
You can use this space to translate verts on an axis aligned with your input line. Here your line would be the x axis of the matrix, so to align you simply null yz or give them all the same yz value.
To use, go in edit mode on a mesh and select some verts (>2).
The first and last selected verts are the A and B points. The other verts will be snapped to this line.
After selecting, just run the script.