Is there an easy way to create a hollowed out extrusion?

I can imagine there are mathmatical ways of offseting the shape inwards and then adding that as a hole to the shape. But is there a more straighforward way do this? Note, I am looking for something that would work for any shape.

Image for reference: left is a regular extrusion, right is the type of extrusion I want, with a thin “wall” that I can ideally be able to set the width.

Thank you!

this is using GitHub - gkjohnson/three-bvh-csg: A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh

2 Likes

Make a hole

ExtrudedShapeWithHole

from the Collection of examples from discourse.threejs.org

1 Like

Thank you I was wondering if there was something even simpler, as the hole in shape requires me to find the offset of the shape, which can be a pain if I want thicker walls. But I suppose that’s the simplest solution three.js has to offer at the moment. Thanks for the help!

OffsetContour

4 Likes