2
$\begingroup$

I've been trying to solve this problem for days now and i'm stuck. I want to align this cylinders center line with the selected line.

  1. I tried to use the location information/coordinates of the line end points on the cylinder but it did not work.

  2. I tried to use the snap tools but only got it align with pivot points, the cylinder did not take the transformation of the line. (the way I got these lines is by selecting two cube vertices and filling the diagonals in Edit Mode)

  3. The second picture is just me "eyeballing" it.

Thanks!

I want to align this cylinders center line with the selected line.

And this is how it should look like, aligned with cylinder center line.

$\endgroup$

3 Answers 3

1
$\begingroup$

Assuming you want to align in object mode, without moving / re-orienting the cylinder's mesh with respect to its object origin...

A "classic" approach to this is to parent the object to a suitably-aligned Empty, and snap the Empty to the target. The Empty can be placed and aligned by numerous methods... usually involving combinations of Shift+S > Cursor to Selected, and Selection to Cursor, and Face-snapping with Align Rotation to Target checked.

In this example, for speed, only vertex-snapping, with alignment, is used. The top face of the cylinder has been poked to put a vertex at its centre (whose normal is the same as the original face)

..the Empty is snapped to the vertex: the cylinder is Ctrl+P parented to the Empty: the Empty is snapped to the ends of the lines.

When done, the Cylinder is Alt+P un-parented, with Keep Transform selected.

$\endgroup$
1
  • $\begingroup$ Thanks, q, for the edit.. is there a Meta with a recommended style-guide? Maybe we need one. $\endgroup$
    – Robin Betts
    Apr 26 at 16:47
0
$\begingroup$

I wonder if duplicated edge segment could be pulled on X or Y while holding Ctrl so that it gets dragged by a single unit of what snap option is set to make.

Then by separating it from the mesh as seperate object, and followed by applying skin modifier to hit Alt+C to make mesh out of it. Then I guess Ctrl+Shift+C could centre the origin point.

Select end face of what skin mod has made after Alt+C, then hit E to extrude to collapse with Alt+M while the face is still selected. It will give you a centred geometry point which you can Ctrl+B,V from centre to extrude again and collapse with Alt+M.

Just keep in mind subdivisions of geometry to make square as round by selecting geometry added after subdividing to scale it enough to make round.

By the way I'm using only 2.79b so I am not sure if the shortcuts are the same in the one which you are using.

$\endgroup$
0
$\begingroup$

Hmm...

Try setting your 3D Cursor to the edge you have selected, then on the cylinder, select it, press Shift+S, then Move Object to active Cursor. You might have to do some adjusting but that'll get you there.

If you can't move the cursor to the plane, you could subdivide and add a vertices in the middle that can be used.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .