Cutting out a rectangular shape from a cylinder?

I’ve been trying to find the best way to create this sort of effect below, where a rectangular shape is cut from a cylinder.
image

I’m having a lot of trouble with the topology however. So far this is the closest I could get to keeping the rectangular shape while keeping the surface smooth.
image
But even here I’m still having some shading issues such as this (matcap for easier view):
image

Any tips on how I can make my topology smoother? I’ve also tried edge creasing , beveling, and adding loop cuts, but none of these seem to work either.

It is the geometry in the corners causing that pinching, looks like pesky triangles from here. I’d suggest selecting the faces you want to extrude and invert first.

two ways of achieving this, modifier way or project.

modifier

add a cube then resize till it fit in right place.
position it in the where you want the hole.
select the cylinder and add BOOLEAN modifier select the cube as target object and choose difference.
hit ALT + Z to go into transperant view. move cube till you are satisfied with it is position and the hole it will make.
hit apply.
get rid of the cube.
select the edges of the new hole and use BEVEL tool.

project

add a cube then resize till it fit in right place.
position it in the where you want the hole.
when satisfied of place and size select the cube and make it into a 2D shape.
now select the shape then the cylinder and go into front view.
go into edit mode and go to MESH then KNIFE PROJECT.
EXTRUDE the resulting mesh back.
select the edges of the new hole and use BEVEL tool.

you can also cut the shape of the hole on a plain object by using KNIFE tool then using the project way.
hope one of those give satisfactory results for ya.

Like, invert the normals?

That sort of works, it’s usually when I use smooth shading that things start to look odd. :thinking:

1 Like

pinching then
follow this tut

happy bl

Apologies, should of read inset, not invert. Keyboard shortcut ‘I’.

More topology in this example but still a little pinching.

See attached video, this is how i would go about doing it.

3 Likes

glad it sort of worked

This really helps!! Thank you so much!

This is really well done! I think this is definitely a good way to do it.
Thanks! :slight_smile:

ohh gotcha.