2
$\begingroup$

Suppose I have a mesh containing, among other things, two cubes of different sizes, both oriented so that the main axes of these cubes are parallel to the world axes.

what I have

How can I align these cubes so that the top planes are at the same z coordinate, leaving other coordinates unchanged?

what I want

One way to do it is to separate these cubes into two different objects, and to align these, but the original object contains a lot more than the two cubes, so it needs to be reconstructed after the alignment, which is too much effort.

$\endgroup$
2
  • 2
    $\begingroup$ could you please make some screenshots to make it more understandable? $\endgroup$
    – moonboots
    Dec 28 '20 at 11:09
  • $\begingroup$ moonboots is right, indeed. Pictures added. $\endgroup$
    – eezacque
    Dec 28 '20 at 12:02
2
$\begingroup$

Use Snapping.

Select the vertices you want to move.

Enable snapping (magnet icon) and set it to Snap to Vertices.

In a lateral Orthographic view move the vertices you want to align.

enter image description here

Other tools to be aware of:

Scaling to zero.

Select all of the vertces and scale to $0$ on the axis you need.

In this example all of the vertices are scaled on the z axis, this is done pressing SZ$0$:

enter image description here

For a more precise alignment, copy the coordinates of a vertex in a given axis, and make the selected vertices be at such coordinates using the Item > Transform tab.

You can set the coordinates to global.

enter image description here

To copy and paste values, just move the cursor over to the value you want to copy and press Ctrl+C to copy and Ctrl+V to paste

$\endgroup$
4
  • $\begingroup$ Took me a while to understand the semantics of the various snapping options, but this is exactly what I need! Thanks for sorting me out $\endgroup$
    – eezacque
    Dec 29 '20 at 15:47
  • $\begingroup$ @eezacque Hey :). If susu's answer solved your issue, please mark it as accepted . $\endgroup$ Dec 29 '20 at 19:31
  • $\begingroup$ @JachymMichal I like your answer better. $\endgroup$
    – susu
    Dec 29 '20 at 19:35
  • $\begingroup$ Thanks :) Perhaps I'll get the sweet sweet green checkmark next time :) $\endgroup$ Dec 29 '20 at 20:59
2
$\begingroup$

You can also use active vertex for snapping

  1. Select the vertices you want to move
  2. Use Pivot > Active Element and enable Vertex snapping
  3. The last selected vertex will be used for snapping

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.