How to rotate rectangular component such that two edges are touching outer rectangle

As in the title. I am using the rotate tool, but can’t get the shape to just “snap” onto the outer rectangle. If you zoom in closely enough, neither of the two edges of the inner rectangle are actually touching the edges of the outer rectangle, but I would dearly like them to.

The rationale for this is that the outer rectangle is 575 mm by 155mm, and the inner is 500mm by 115mm, and the rest of the dimensions are not known.

The trick is to use the Pie tool to create an intersection point to snap to.
GIF 27-02-2024 11-29-37 AM

1 Like

I made the pie but it’s not entirely accurate unfortunately…

Yes, I was just checking that, it’s the nature of sketchup curves. If you scale everything up by 100 and use 48 segments in the pie you can get it very very very close.
This is scaled back to size and zoomed right in.

I did some thinking and fortunately I do not need it to be perfectly precise on the edge. So while it is irritating and may trigger OCD, looks like this will work well enough. Thanks.

@dominikw, there is no need to scale up or use that many segments.
Here I used the dimentions you mentioned for both rectangles and only two segments for the pie arc. (could have been any number that SketchUp allows you to use)

You need to carefully wait for the red cross intersection to show up. That will create an accurate endpoint where the arc ends on the large edge.

You can now snap the rotation to this new pie endpoint.


Indeed that works. Very nice.

One thing to note in these demos is that the inner rectangle must be grouped or a component before the operation or it will be entangled with the arc. That causes a very confusing phenomenon in which the target snap point vanishes when the arc comes to have zero length (don’t ask how I know that)!

1 Like

I think my downfall was when the segment error came up I extended the arc to make it work which meant the vertex wasn’t falling at the correct point (the edge) and there may have been amber liquid involved.

1 Like

In my example I have both rectangles separately grouped.
The arc is basic geometry. Always good to keep things (objects) apart.

1 Like

I’ll take your word for that.
I purposely addressed my answer to @dominikw.
For I know you advised the correct workflow in te passed.

Overshoting the pie arc doesn’t give you an accurate intersection.

I have chiseled that into my stone brain now.


Without using arcs. See this SU file for ideas.

Rotating rectangle.skp (203.0 KB)

Yes, a relatively precise snap.
But the ‘Arc Pie’ tool is a native tool in all SketchUp versions for the last few years.
The ‘Pie Arc’ tool will give you an accurate snap location without scaling v.s. your solution that is almost precise. It is off by 0.00022 mm at 10x. So 0.000022 mm when scaling down again.

I have the red cross point but it’s raising an error, see below:

Change the number of sides by typing (for example) 2s right after you activate the tool.

1 Like

So I am able to make the 2 segmented arc, but the same problem persists → it refuses to snap into place. I even tried the tape measure tool to make that endpoint more prominent. Yet this is as close as I get without overshooting.

Update: I grouped the second rectangle as noted above and now it does snap into place. I don’t quite understand why grouping is necessary,but it does indeed work.

Why it does not work with both the “source” endpoint and the target endpoint being in the same context? SketchUp can’t inference one endpoint of an edge towards the other endpoint (same context). Nor can it drop one endpoint of a curve onto the endpoint on the other side of the curve (same context). That is basicly what you have been trying to do in your first attempt.
Grouping the smaller rectangle leaves the pie arc and its endpoint in tact.

1 Like

This seems pretty simple, unless I’m not getting something. How about this process:

-Draw the two rectangles, bigger above the smaller.

-Group them both individually

-Use the Rotate tool to tilt the bottom, smaller rectangle a random amount.

-Move the top corner of the small rectangle until it snaps to the upper edge of the bigger rectangle

-Move the smaller rectangle sideways until it’s in the desired location

-Use the Rotate tool from the upper corner of the smaller rectangle. Drag the bottom corner until it snaps to the big rectangle’s lower edge.


Edit: Oops, I spoke too soon. Zooming in I see the problem. The second corner misses slightly.